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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x526cef
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x55609c]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
test esi, esi
mov ebx, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x38], eax
mov dword [ebx + 0x398], ecx
je 0x4acf02
lea edi, [ebx + 0x3a4]
push esi
mov ecx, edi
call dword [0x52e398]
mov edx, dword [esi + 0x1c]
lea eax, [esi + 0x20]
push eax
lea ecx, [edi + 0x20]
mov dword [edi + 0x1c], edx
call dword [0x52e398]
lea ecx, [esi + 0x3c]
push ecx
lea ecx, [edi + 0x3c]
call dword [0x52e398]
mov edx, dword [esi + 0x58]
mov dword [edi + 0x58], edx
mov al, byte [esi + 0x5c]
mov byte [edi + 0x5c], al
mov cl, byte [esi + 0x5d]
mov byte [edi + 0x5d], cl
lea edi, [esp + 0x20]
call fcn.004af770
push 0
mov dword [esp + 0x16c], 0
mov ecx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x24]
push 5
push ecx
push eax
mov dword [ebx + 0x2c8], eax
mov dword [ebx + 0x2cc], ecx
call fcn.00515a70
mov edi, eax
mov esi, edx
push 0
push 0x4c4b40
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], esi
call fcn.0047d900
add esp, 8
cmp edx, esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edx
jg 0x4acf66
jl 0x4acf60
cmp eax, edi
jae 0x4acf66
lea eax, [esp + 0x3c]
jmp 0x4acf6a
lea eax, [esp + 0x5c]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebx + 0x2c0], edx
mov dword [ebx + 0x2c4], eax
mov dword [esp + 0x5c], 0
call fcn.005147f0
mov ebx, dword [ebx + 0x298]
lea esi, [esp + 0x2c]
mov dword [esp + 0x60], eax
call fcn.0047d960
mov edi, dword [eax + 4]
mov edx, dword [eax]
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x2c8]
mov ecx, dword [esi + 0x2cc]
add eax, edx
adc ecx, edi
mov dword [esp + 0x40], ecx
lea ecx, [esi + 0x2a0]
mov dword [esp + 0x3c], eax
push ecx
lea eax, [ebx + 0x14]
lea ecx, [esp + 0x60]
lea ebx, [esp + 0x40]
call fcn.0046dbd0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
sub esp, 8
mov eax, esp
xor ebx, ebx
cmp ecx, ebx
mov dword [eax], edx
mov dword [esp + 0x34], esp
mov dword [eax + 4], ecx
je 0x4acffb
add ecx, 8
mov eax, 1
lock xadd dword [ecx], eax
movzx ecx, byte [0x55de7f]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.004afbd0
mov byte [esp + 0x178], 1
mov edi, dword [eax]
mov edx, dword [esi + 0x298]
add esp, 4
mov ecx, esp
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [ecx + 4], edi
mov eax, dword [eax + 8]
cmp eax, ebx
mov dword [esp + 0x38], esp
mov dword [ecx + 8], eax
je 0x4ad044
add eax, 8
mov ecx, 1
lock xadd dword [eax], ecx
add edx, 0x14
lea edi, [esi + 0x2a0]
push edx
call fcn.00476250
mov byte [esp + 0x168], bl
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x4ad077
mov ecx, eax
add eax, 8
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x4ad077
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
lea edi, [esi + 0x158]
mov byte [esi + 0x2e1], bl
call fcn.00506e30
mov edi, dword [esi + 0x2c]
cmp dword [esi + 0x28], edi
lea ebx, [esi + 0x24]
jbe 0x4ad099
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
mov dword [esp + 0x2c], eax
jbe 0x4ad0af
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x2c]
push edi
push ebx
push eax
push ebx
lea eax, [esp + 0x4c]
push eax
call fcn.00407a00
mov eax, dword [esp + 0x5c]
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
mov edx, eax
neg edx
sbb edx, edx
test edx, fcn.004b2590
mov dword [esi + 0x144], ebx
mov dword [esi + 0x424], ecx
je 0x4ad1cf
mov edi, dword [esp + 0x60]
push edi
mov edi, dword [esp + 0x24]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x34]
xor edx, edx
cmp edi, ebx
mov ecx, fcn.004ae900
mov dword [esp + 0x28], esp
mov dword [eax + 4], edi
je 0x4ad117
lea eax, [edi + 4]
mov ebx, 1
lock xadd dword [eax], ebx
push edx
push ecx
push 0
lea ecx, [esp + 0x98]
push 0
push ecx
call fcn.004afa10
add esp, 0x24
mov byte [esp + 0x168], 2
mov edx, dword [esi + 0x148]
mov ecx, dword [edx + 0xc]
push ecx
mov ecx, eax
call fcn.004afb70
mov byte [esp + 0x168], 0
mov eax, dword [esp + 0x88]
test eax, eax
je 0x4ad185
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4ad185
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4ad185
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
test edi, edi
mov dword [esp + 0x168], 0xffffffff
je 0x4ad8d0
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4ad8d0
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4ad8d0
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
jmp 0x4ad8d0
lea ecx, [esi + 0x38]
mov dword [esp + 0x2c], ecx
call fcn.004d17b0
test al, al
je 0x4ad2a2
mov eax, dword [esp + 0x28]
mov edi, dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push eax
lea ecx, [esi + 0x2e4]
push ecx
call edi
add esp, 8
test al, al
je 0x4ad2a2
mov edx, dword [esp + 0x34]
push edx
lea eax, [esi + 0x300]
push eax
call edi
mov edi, dword [esp + 0x24]
add esp, 8
test al, al
je 0x4ad2a6
mov cl, byte [esi + 0x404]
cmp cl, byte [ebp + 0x18]
jne 0x4ad2a6
lea edx, [esi + 0x408]
mov ecx, edi
call fcn.00439100
test al, al
je 0x4ad2a6
sub esp, 8
lea ecx, [esp + 0x28]
mov eax, esp
mov edi, 0x4aeb70
mov dword [esp + 0x20], esp
call fcn.0041a450
movzx edx, byte [0x55de7f]
push ebx
push edi
push edx
lea eax, [esp + 0x70]
push eax
call fcn.004afd20
mov edi, eax
lea ecx, [esi + 8]
lea eax, [esp + 0x54]
mov byte [esp + 0x180], 3
call fcn.004afd00
mov ecx, dword [esp + 0x44]
push eax
push ecx
mov ecx, edi
call fcn.004afe40
add esp, 0x20
lea eax, [esp + 0x5c]
mov byte [esp + 0x168], 0
call fcn.0045e530
jmp 0x4ad8bc
mov edi, dword [esp + 0x1c]
mov dl, byte [ebp + 0x18]
mov byte [esi + 0x404], dl
mov eax, dword [edi]
mov dword [esi + 0x408], eax
mov ecx, dword [edi + 4]
lea ebx, [esi + 0x408]
mov dword [ebx + 4], ecx
mov edx, dword [edi + 8]
mov dword [ebx + 8], edx
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [ebx + 0x10], ecx
mov edx, dword [edi + 0x14]
mov dword [ebx + 0x14], edx
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x18], eax
mov dword [esp + 0x3c], 0
call fcn.005147f0
mov edi, dword [esp + 0x2c]
mov ecx, edi
mov dword [esp + 0x40], eax
call fcn.004d17b0
test al, al
je 0x4ad30c
lea ecx, [esp + 0x3c]
mov edx, edi
call fcn.004d18f0
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x13], 0
jb 0x4ad322
add eax, 4
mov eax, dword [eax]
jmp 0x4ad325
add eax, 4
push 0x2e
push eax
call dword [sym.imp.MSVCR80.dll_strrchr]
add esp, 8
test eax, eax
je 0x4ad43b
mov edi, str..i2p
mov esi, eax
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov esi, dword [esp + 0x14]
jne 0x4ad43b
mov edi, dword [esp + 0x38]
test edi, edi
je 0x4ad43b
push edx
mov dword [esi + 0x140], edi
mov eax, dword [esi + 0x2cc]
mov ecx, dword [esi + 0x2c8]
push 4
push eax
push ecx
mov byte [esp + 0x23], 1
call fcn.00515b20
push 0
mov dword [esi + 0x2c8], eax
mov dword [esi + 0x2cc], edx
mov edx, dword [esi + 0x2c4]
mov eax, dword [esi + 0x2c0]
push 4
push edx
push eax
call fcn.00515b20
mov dword [esi + 0x2c0], eax
mov dword [esi + 0x2c4], edx
cmp dword [edi + 0x60], 6
je 0x4ad43b
mov esi, fcn.004ae900
xor edi, edi
call fcn.004014b0
push eax
mov ecx, 0xa0
push ecx
mov ecx, dword [esp + 0x28]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
test ecx, ecx
mov dword [esp + 0x28], esp
mov dword [eax + 4], ecx
je 0x4ad3f2
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
push edi
push esi
push 0
lea eax, [esp + 0x98]
push 0
push eax
call fcn.004afa10
add esp, 0x24
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x168], 4
mov edx, dword [ecx + 0x148]
mov ecx, dword [edx + 0xc]
push ecx
mov ecx, eax
call fcn.004afb70
lea eax, [esp + 0x7c]
mov byte [esp + 0x168], 0
call fcn.0045e530
jmp 0x4ad8bc
cmp byte [esp + 0x13], 0
mov edi, dword [esp + 0x18]
je 0x4ad44d
mov edi, dword [esp + 0x38]
add edi, 8
test edi, edi
je 0x4ad466
mov eax, dword [edi + 0x58]
cmp eax, 4
je 0x4ad45e
cmp eax, 5
jne 0x4ad466
cmp byte [ebp + 0x18], 0
jne 0x4ad466
xor edi, edi
lea eax, [esp + 0x9c]
push eax
call fcn.00421100
test edi, edi
mov byte [esp + 0x168], 5
jne 0x4ad486
lea edi, [esp + 0x9c]
mov eax, dword [esp + 0x2c]
push 0
push 0
mov ecx, edi
call fcn.004e3fa0
xor eax, eax
xor edi, edi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
add esp, 8
lea eax, [esp + 0x5c]
mov ecx, ebx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x74], edi
call fcn.00438e40
test al, al
je 0x4ad5bd
mov dword [esp + 0x5c], edi
call fcn.005147f0
cmp dword [ebx], edi
mov dword [esp + 0x60], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 2
je 0x4ad4f0
mov dword [esp + 0x1c], 0x17
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x5c]
push ecx
push eax
call fcn.004d1870
xor ecx, ecx
mov edi, ebx
lea esi, [esp + 0x7c]
call fcn.00439600
lea edx, [esp + 0x5c]
push edx
mov edx, dword [esp + 0x30]
mov eax, esi
push eax
call fcn.004d1bd0
mov eax, dword [esp + 0x5c]
mov ecx, eax
neg ecx
sbb ecx, ecx
test ecx, fcn.004b2590
je 0x4ad5b7
mov esi, dword [esp + 0x60]
push esi
mov esi, dword [esp + 0x24]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x34]
xor edx, edx
test esi, esi
mov ecx, fcn.004ae900
mov dword [esp + 0x28], esp
mov dword [eax + 4], esi
je 0x4ad566
add esi, 4
mov eax, 1
lock xadd dword [esi], eax
push edx
push ecx
push 0
lea ecx, [esp + 0x98]
push 0
push ecx
call fcn.004afa10
add esp, 0x24
mov edx, dword [esp + 0x14]
mov byte [esp + 0x168], 6
mov ecx, dword [edx + 0x148]
mov ecx, dword [ecx + 0xc]
push ecx
mov ecx, eax
call fcn.004afb70
lea eax, [esp + 0x7c]
mov byte [esp + 0x168], 5
call fcn.0045e530
lea edx, [esp + 0x9c]
push edx
jmp 0x4ad8af
mov esi, dword [esp + 0x14]
xor edi, edi
mov eax, dword [esp + 0x3c]
mov ecx, eax
neg ecx
sbb ecx, ecx
test ecx, fcn.004b2590
je 0x4ad643
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x24]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
cmp ecx, edi
mov edx, fcn.004ae900
mov dword [esp + 0x28], esp
mov dword [eax + 4], ecx
je 0x4ad600
add ecx, 4
mov eax, 1
lock xadd dword [ecx], eax
push edi
push edx
push edi
lea ecx, [esp + 0x98]
push edi
push ecx
call fcn.004afa10
add esp, 0x24
mov byte [esp + 0x168], 7
mov edx, dword [esi + 0x148]
mov ecx, dword [edx + 0xc]
push ecx
mov ecx, eax
call fcn.004afb70
lea eax, [esp + 0x7c]
mov byte [esp + 0x168], 5
call fcn.0045e530
jmp 0x4ad8a7
cmp byte [esp + 0x13], 0
je 0x4ad6e5
mov ecx, dword [esp + 0x20]
sub esp, 0x20
mov dword [esp + 0x38], esp
mov dword [esp + 0x4c], esp
sub esp, 0x10
mov dword [esp + 0x4c], esp
mov dword [esp + 0x48], esp
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
cmp ecx, edi
mov edx, 0x4adf60
mov dword [esp + 0x54], esp
mov dword [eax + 4], ecx
je 0x4ad68f
add ecx, 4
mov eax, 1
lock xadd dword [ecx], eax
movzx ecx, byte [0x55de81]
mov eax, dword [esp + 0x50]
push edi
push edx
movzx edx, byte [0x55de7f]
push ecx
push edx
push eax
call fcn.004b0530
mov edi, dword [esp + 0x78]
add esp, 0x1c
call fcn.004aff30
mov edi, dword [esp + 0x48]
cmp dword [edi + 0x18], 0x10
jb 0x4ad6d3
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x58]
push eax
call fcn.00494ac0
jmp 0x4ad889
mov ecx, dword [esp + 0x58]
lea eax, [edi + 4]
push eax
call fcn.00494ac0
jmp 0x4ad889
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x4ad793
cmp byte [eax + 0x5c], 0
je 0x4ad793
mov eax, dword [eax + 0x58]
cmp eax, 2
je 0x4ad70c
cmp eax, 3
jne 0x4ad793
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esi + 0x2e4]
call dword [0x52e398]
mov ebx, dword [esp + 0x34]
push ebx
lea ecx, [esi + 0x300]
call dword [0x52e398]
cmp dword [ebx + 0x18], 0x10
jb 0x4ad739
mov ebx, dword [ebx + 4]
jmp 0x4ad73c
add ebx, 4
xor eax, eax
push ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edi
call dword [sym.imp.MSVCR80.dll_atoi]
movzx ecx, ax
add esp, 4
lea edi, [esp + 0x3c]
lea esi, [esp + 0x7c]
call fcn.00439600
mov esi, dword [esp + 0x14]
lea ebx, [esi + 0x354]
lea eax, [esp + 0x7c]
call fcn.004af8c0
mov ecx, esi
call fcn.004ae3b0
jmp 0x4ad885
add esi, 0x354
call fcn.0050dbc0
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
lea esi, [esp + 0xfc]
call fcn.0046be10
sub esp, 8
mov bl, 8
mov byte [esp + 0x170], bl
mov ecx, dword [esp + 0x28]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
xor esi, esi
test ecx, ecx
mov edx, 0x4ae120
mov dword [esp + 0x20], esp
mov dword [eax + 4], ecx
je 0x4ad7e8
add ecx, 4
mov eax, 1
lock xadd dword [ecx], eax
movzx ecx, byte [0x55de81]
push esi
push edx
movzx edx, byte [0x55de7f]
push ecx
push edx
lea eax, [esp + 0x54]
push eax
call fcn.004b0530
mov edx, dword [esp + 0x30]
mov byte [esp + 0x184], 9
mov edi, dword [eax]
mov esi, dword [edx + 0x148]
add esp, 0xc
mov ecx, esp
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [ecx + 4], edi
mov edi, dword [eax + 8]
mov dword [ecx + 8], edi
mov eax, dword [eax + 0xc]
test eax, eax
mov dword [esp + 0x28], esp
mov dword [ecx + 0xc], eax
je 0x4ad845
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
lea eax, [esp + 0x10c]
push eax
add edx, 0x14c
push edx
lea ecx, [esi + 0x14]
call fcn.004b2660
lea eax, [esp + 0x3c]
mov byte [esp + 0x168], bl
call fcn.0045e530
lea ecx, [esp + 0xfc]
push ecx
mov byte [esp + 0x16c], 5
call fcn.00459c10
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
push edi
lea ecx, [esi + 0x2e4]
call dword [0x52e398]
mov edx, dword [esp + 0x34]
push edx
lea ecx, [esi + 0x300]
call dword [0x52e398]
lea eax, [esp + 0x9c]
push eax
mov byte [esp + 0x16c], 0
call fcn.00422540
lea eax, [esp + 0x20]
mov dword [esp + 0x168], 0xffffffff
call fcn.004e0b50
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00515015
mov esp, ebp
pop ebp
ret 0x24