Function at 0x4a4040
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov edx, 4
xor ecx, ecx
push edi
push esi
push ebx
sub esp, 0x2ec
mov dword [esp], 4
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
call sym._newSeqPayload_12
mov edx, 0x40
sub esp, 4
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], eax
call sym._initHashSet__OOZOOZOOZcompilerZoptions_u2564_4
mov eax, dword [esp + 0x50]
mov dword [esp], 0x4db1c8
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x8c], eax
call sym.___emutls_get_address
movzx ebx, byte [eax]
mov ebp, eax
test bl, bl
jne 0x4a48c0
mov eax, dword [0x4ee5a0]
mov edx, dword [0x4ee5a4]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x300]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x304]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._nosjoinPath_16
sub esp, 0x10
cmp byte [ebp], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], edx
jne 0x4a48d0
xor eax, eax
lea edi, [esp + 0x90]
mov ecx, 0x94
mov edx, dword [0x4ee594]
rep stosd dword es:[edi], eax
mov eax, dword [0x4ee590]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
call sym._nosjoinPath_16
movzx ebx, byte [ebp]
sub esp, 0x10
mov dword [esp + 0x28], edx
test bl, bl
jne 0x4a4760
mov dword [esp], eax
mov eax, dword [esp + 0x28]
lea edi, [esp + 0x90]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
call sym._findFirstFile__stdZprivateZoscommon_u22_12
sub esp, 0xc
cmp byte [ebp], 1
mov dword [esp + 0x24], eax
je 0x4a4760
lea eax, [esp + 0x84]
cmp dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], eax
je 0x4a4380
cmp word [esp + 0xbc], 0x2e
je 0x4a432d
test bl, bl
jne 0x4a4370
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0xbc]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov ebx, eax
and eax, 0x400
shr ebx, 4
and ebx, 1
add ebx, ebx
cmp eax, 1
sbb bl, 0xff
call sym._dollar___stdZwidestrs_u385_4
cmp byte [ebp], 0
mov esi, edx
jne 0x4a42ae
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._nosextractFilename_8
sub esp, 8
cmp byte [ebp], 0
mov edi, edx
jne 0x4a42ae
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], edx
mov dword [esp], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
call sym._nosjoinPath_16
sub esp, 0x10
cmp byte [ebp], 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edx
jne 0x4a42b2
test edi, edi
je 0x4a4272
test dword [edi], 0x40000000
je 0x4a4810
test esi, esi
je 0x4a4282
test dword [esi], 0x40000000
je 0x4a4828
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x6c]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._eqsink___stdZassertions_u36_12
sub esp, 8
lea ecx, [esp + 0x74]
call sym._eqwasMoved___stdZassertions_u27_4
test bl, bl
je 0x4a4410
mov edx, dword [esp + 0x78]
test edx, edx
je 0x4a42c2
test dword [edx], 0x40000000
je 0x4a4750
cmp byte [ebp], 0
jne 0x4a4370
lea eax, [esp + 0x90]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call dword [0x519130]
sub esp, 8
test eax, eax
jne 0x4a43f8
call dword [0x519158]
cmp eax, 0x12
je 0x4a4370
mov esi, dword [0x4ee34c]
mov edi, dword [0x4ee350]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], edi
call sym._raiseOSError__stdZoserrors_u122
movzx ebx, byte [ebp]
test bl, bl
jne 0x4a4370
cmp word [esp + 0xbc], 0x2e
jne 0x4a41da
movzx eax, word [esp + 0xbe]
test ax, ax
je 0x4a4360
cmp ax, 0x2e
jne 0x4a41d2
movzx eax, word [esp + 0xc0]
test bl, bl
jne 0x4a4370
test ax, ax
je 0x4a42cc
jmp 0x4a41da
test bl, bl
je 0x4a42cc
lea esi, [esi]
nop
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call dword [0x51912c]
sub esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4a4399
mov eax, dword [eax]
mov dword [esp + 0x24], eax
test eax, 0x40000000
je 0x4a4708
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4a43b2
mov eax, dword [eax]
mov dword [esp + 0x24], eax
test eax, 0x40000000
je 0x4a46f0
mov eax, dword [esp + 0x70]
test eax, eax
je 0x4a43c6
test dword [eax], 0x40000000
je 0x4a4720
movzx ebx, byte [ebp]
mov byte [ebp], 0
mov ecx, dword [esp + 0x30]
call sym._eqdestroy___OOZOOZOOZcompilerZoptions_u2871_4
cmp byte [ebp], 0
jne 0x4a43e0
mov byte [ebp], bl
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
add esp, 0x2ec
pop ebx
pop esi
pop edi
pop ebp
ret 8
cmp word [esp + 0xbc], 0x2e
movzx ebx, byte [ebp]
je 0x4a432d
jmp 0x4a41d2
mov eax, dword [0x4ee57c]
mov edx, dword [0x4ee580]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x70]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._nsuEndsWith_16
mov edx, eax
movzx eax, byte [ebp]
sub esp, 0x10
xor eax, 1
and al, dl
mov byte [esp + 0x47], al
je 0x4a42ae
mov eax, dword [esp + 0x34]
add eax, 1
mov dword [esp + 0x40], eax
seto al
movzx eax, al
mov dword [esp + 0x3c], eax
jo 0x4a48a0
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._parseFile__pureZjson_u5641_8
movzx ebx, byte [ebp]
sub esp, 8
mov dword [esp + 0x38], eax
test bl, bl
jne 0x4a47e1
mov dword [esp + 0x60], 0
movzx ecx, byte [eax + 1]
cmp cl, 6
je 0x4a4582
call sym._dollar___pureZjson_u20_4
lea ecx, [eax + 0x54]
mov dword [esp + 0x34], edx
mov ebx, eax
call sym._rawNewString_4
mov esi, dword [0x4ee524]
lea ecx, [eax + edx + 4]
mov dword [ecx], esi
lea edi, [ecx + 4]
mov esi, dword [0x4ee575]
and edi, 0xfffffffc
mov dword [ecx + 0x51], esi
sub ecx, edi
mov esi, 0x4ee524
sub esi, ecx
add ecx, 0x55
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov esi, eax
add esi, 0x54
jo 0x4a49c8
test ebx, ebx
jle 0x4a4536
mov eax, ebx
add eax, 1
jo 0x4a4a23
test eax, eax
js 0x4a4950
mov edi, dword [esp + 0x34]
lea ecx, [esi + edx + 4]
mov dword [esp + 8], eax
mov dword [esp], ecx
add edi, 4
mov dword [esp + 0x48], edx
mov dword [esp + 4], edi
call sym._memcpy
mov eax, ebx
mov edx, dword [esp + 0x48]
add eax, esi
jo 0x4a4a23
mov esi, eax
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 0x48], edx
call sym._failedAssertImpl__stdZassertions_u270_8
movzx ebx, byte [ebp]
sub esp, 8
test bl, bl
jne 0x4a47bf
mov edx, dword [esp + 0x48]
test edx, edx
je 0x4a4569
test dword [edx], 0x40000000
je 0x4a4940
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4a4582
mov eax, dword [eax]
mov dword [esp + 0x48], eax
test eax, 0x40000000
je 0x4a48f0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
movzx ecx, byte [eax + 1]
mov eax, ecx
and eax, 7
cmp al, 6
jne 0x4a4770
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x7c]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._eqcopy___pureZjson_u276_12
movzx ebx, byte [ebp]
sub esp, 8
test bl, bl
jne 0x4a4798
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x3c]
mov byte [esp + 0x3c], bl
mov dword [esp + 0x34], eax
cmp esi, dword [esp + 0x34]
jge 0x4a4991
mov eax, dword [esp + 0x7c]
test esi, esi
js 0x4a4880
cmp esi, eax
jge 0x4a4880
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x60]
mov edx, dword [eax + esi*4 + 4]
call sym._eqcopy___pureZjson_u343_8
movzx eax, byte [ebp]
test al, al
jne 0x4a46e9
mov ecx, dword [esp + 0x60]
call sym._fromJson__packagesjson_u35_4
mov edi, eax
movzx eax, byte [ebp]
mov byte [esp + 0x48], al
test al, al
jne 0x4a4835
test edi, edi
je 0x4a4920
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._containsOrIncl__packagesjson_u150_12
movzx ecx, byte [ebp]
sub esp, 8
mov byte [esp + 0x48], cl
test cl, cl
jne 0x4a49e2
lea ebx, [esi + 1]
test al, al
jne 0x4a49eb
mov edx, edi
lea ecx, [esp + 0x64]
call sym._add__packagesjson_u250_8
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x7c]
je 0x4a46a6
mov eax, dword [0x4ee254]
mov edx, dword [0x4ee258]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._failedAssertImpl__stdZassertions_u270_8
sub esp, 8
movzx edx, byte [ebp]
mov byte [ebp], dl
test dl, dl
jne 0x4a48e0
test esi, esi
jns 0x4a4878
mov edi, ebx
movzx ebx, byte [esp + 0x3c]
cmp edi, dword [esp + 0x34]
jge 0x4a4798
mov eax, dword [esp + 0x7c]
mov dword [esp], edi
sub eax, 1
mov dword [esp + 4], eax
call sym._raiseIndexError2
movzx eax, byte [ebp]
test al, al
je 0x4a46c4
mov ebx, eax
jmp 0x4a4798
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._deallocShared
jmp 0x4a43b2
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sym._deallocShared
jmp 0x4a4399
mov dword [esp], eax
call sym._deallocShared
jmp 0x4a43c6
mov edx, dword [esp + 0x78]
test edx, edx
je 0x4a4370
test dword [edx], 0x40000000
jne 0x4a4370
lea esi, [esi]
nop
mov dword [esp], edx
call sym._deallocShared
jmp 0x4a42c2
lea eax, [esp + 0x84]
mov dword [esp + 0x30], eax
jmp 0x4a4380
call sym._dollar___pureZjson_u20_4
mov dword [esp + 8], eax
mov eax, dword [0x4ee4a8]
mov dword [esp + 0xc], edx
mov edx, dword [0x4ee4ac]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._raiseFieldErrorStr
movzx ebx, byte [ebp]
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov byte [ebp], 0
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._eqdestroy___pureZjson_u273_8
movzx eax, byte [ebp]
sub esp, 8
test al, al
cmovne ebx, eax
mov byte [ebp], 0
mov ecx, dword [esp + 0x60]
call sym._eqdestroy___pureZjson_u340_4
cmp byte [ebp], 0
jne 0x4a4908
mov byte [ebp], bl
test bl, bl
jne 0x4a4908
mov eax, dword [esp + 0x40]
mov dword [esp + 0x34], eax
mov byte [ebp], 0
mov ecx, dword [esp + 0x38]
call sym._eqdestroy___pureZjson_u340_4
cmp byte [ebp], 0
jne 0x4a4730
mov byte [ebp], bl
jmp 0x4a42ae
mov dword [esp], edi
call sym._deallocShared
test esi, esi
jne 0x4a4276
jmp 0x4a4282
mov dword [esp], esi
call sym._deallocShared
jmp 0x4a4282
mov byte [ebp], 0
test edi, edi
je 0x4a4a35
mov ebx, esi
mov edx, dword [edi - 8]
mov eax, edx
shr eax, 4
je 0x4a49a0
sub edx, 0x10
jo 0x4a4a3f
mov dword [edi - 8], edx
movzx edx, byte [ebp]
test dl, dl
jne 0x4a48e0
movzx eax, byte [esp + 0x48]
mov byte [ebp], al
test al, al
jne 0x4a46e9
lea esi, [esi]
mov esi, ebx
jmp 0x4a45e3
sub eax, 1
mov dword [esp], esi
mov ebx, esi
mov dword [esp + 4], eax
call sym._raiseIndexError2
movzx edx, byte [ebp]
jmp 0x4a46aa
call sym._raiseOverflow
mov dword [esp + 0x38], 0
movzx ebx, byte [ebp]
jmp 0x4a47e9
lea eax, [esp + 0x84]
mov dword [esp + 0x30], eax
jmp 0x4a43ca
lea eax, [esp + 0x84]
mov dword [esp + 0x30], eax
jmp 0x4a4399
mov eax, edx
mov ebx, eax
jmp 0x4a4798
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call sym._deallocShared
jmp 0x4a4582
mov eax, dword [esp + 0x40]
movzx ebx, byte [esp + 0x47]
mov dword [esp + 0x34], eax
jmp 0x4a47e9
mov eax, dword [esp + 0x34]
lea ebx, [esi + 1]
cmp eax, dword [esp + 0x7c]
jne 0x4a468c
jmp 0x4a46b5
mov dword [esp], edx
call sym._deallocShared
jmp 0x4a4569
mov dword [esp + 0x10], 0x7fffffff
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp], 0x80000000
mov dword [esp + 4], 0xffffffff
mov dword [esp + 0x48], edx
call sym._raiseRangeErrorI
mov edx, dword [esp + 0x48]
jmp 0x4a4536
movzx ebx, byte [esp + 0x3c]
jmp 0x4a4798
mov ecx, edi
call sym._eqdestroy___packagesjson_u50_4
movzx edx, byte [ebp]
test dl, dl
jne 0x4a48e0
mov edx, 4
mov ecx, edi
call sym._nimRawDispose_8
jmp 0x4a485d
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], eax
call sym._raiseOverflow
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
jmp 0x4a44f0
mov byte [ebp], 0
jmp 0x4a4841
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x7c]
je 0x4a4843
mov eax, dword [0x4ee254]
mov edx, dword [0x4ee258]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._failedAssertImpl__stdZassertions_u270_8
push eax
push eax
movzx eax, byte [ebp]
mov byte [ebp], 0
mov byte [esp + 0x48], al
jmp 0x4a4843
mov dword [esp + 0x48], edx
call sym._raiseOverflow
mov edx, dword [esp + 0x48]
jmp 0x4a4536
movzx ebx, byte [esp + 0x48]
jmp 0x4a4798
call sym._raiseOverflow
jmp 0x4a485d