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

Disassembly:
sub esp, 0x85c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x86c]
test esi, esi
push edi
je 0x4b88ca
mov ecx, dword [0x4aa9e8]
mov eax, dword [esi + 0x54]
push ecx
push eax
call fcn.004b5b20
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4b84b3
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
add esp, 0x85c
ret 0x14
mov eax, dword [esp + 0x874]
test eax, eax
je 0x4b88ca
mov eax, dword [esp + 0x878]
test eax, eax
je 0x4b88ca
mov eax, dword [esp + 0x87c]
test eax, eax
je 0x4b88ca
mov eax, dword [esp + 0x880]
test eax, eax
je 0x4b88ca
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x22c]
xor edx, edx
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x3bc]
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x9c]
mov dword [esp + 0x2c], edx
push 0x40
rep stosd dword es:[edi], eax
mov dword [esp + 0x34], edx
xor ecx, ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x54], ecx
lea edx, [esp + 0x60]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x58], ecx
push edx
push esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x64], ecx
call fcn.004b44d0
test ax, ax
jne 0x4b88ce
mov al, byte [esp + 0x5c]
test al, al
jne 0x4b85b7
mov eax, dword [0x4a64d8]
mov ecx, dword [0x4a64dc]
mov edx, dword [0x4a64e0]
mov dword [esp + 0x5c], eax
mov ax, word [0x4a64e4]
mov dword [esp + 0x60], ecx
mov cl, byte [0x4a64e6]
mov dword [esp + 0x64], edx
mov word [esp + 0x68], ax
mov byte [esp + 0x6a], cl
push 0x280
lea edx, [esp + 0x54]
push 0x4a72bc
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x5c]
push eax
push ecx
push 2
push 0x4a72b4
call fcn.004be3f0
mov edx, eax
add esp, 0x1c
test edx, edx
jne 0x4b8603
push ebp
push 0x4a
call fcn.004b4b50
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x85c
ret 0x14
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x3bc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebx
mov ebx, dword [sym.imp.MSVCRT.dll_free]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
lea ecx, [esp + 0x30]
lea edx, [esp + 0x3c0]
push ecx
push edx
push 0x4a73a0
push 3
push 0x4a71b0
call fcn.004be3f0
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x4b8671
push ebp
push 0x4a
call fcn.004b4b50
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x85c
ret 0x14
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x9c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
lea ecx, [esp + 0xa0]
push ecx
call fcn.004be4d0
mov edx, eax
add esp, 8
test edx, edx
jne 0x4b86ce
push ebp
push 0x4a
call fcn.004b4b50
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x85c
ret 0x14
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x9c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
lea ecx, [esp + 0x230]
lea edx, [esp + 0xa0]
push ecx
push ebp
push edx
call fcn.004bb7a0
add esp, 0x10
test ax, ax
je 0x4b8732
push ebp
push eax
call fcn.004b4a80
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x85c
ret 0x14
lea eax, [esp + 0x22c]
push eax
call fcn.004be1c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4b8760
push ebp
push 0x42
call fcn.004b4b50
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x85c
ret 0x14
lea ecx, [esp + 0x22c]
lea edx, [esp + 0x6dc]
push ecx
lea eax, [esp + 0x550]
push edx
push eax
push esi
push 3
push 0x4a71b0
call fcn.004be020
push esi
mov edi, eax
call ebx
add esp, 0x1c
test di, di
je 0x4b87aa
push ebp
push 0x42
call fcn.004b4b50
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x85c
ret 0x14
push 0
call ebx
add esp, 4
mov esi, 0x4a72ac
lea eax, [esp + 0x54c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4b87e5
test cl, cl
je 0x4b87e1
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4b87e5
add eax, 2
add esi, 2
test cl, cl
jne 0x4b87bd
xor eax, eax
jmp 0x4b87ea
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4b8813
lea eax, [esp + 0x6dc]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
push ebp
push eax
call fcn.004b4b50
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x85c
ret 0x14
lea ecx, [esp + 0x14]
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x4c]
push eax
lea edx, [esp + 0x238]
push ecx
push edx
push 4
push 0x4a72b4
call fcn.004be020
add esp, 0x1c
test ax, ax
je 0x4b885b
push ebp
push 0x42
call fcn.004b4b50
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x85c
ret 0x14
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
lea eax, [esp + 0x44]
push eax
call esi
mov ecx, dword [esp + 0x878]
lea edx, [esp + 0x24]
push edx
mov byte [ecx], al
call esi
mov ecx, dword [esp + 0x880]
lea edx, [esp + 0x40]
push edx
mov byte [ecx], al
call esi
mov ecx, dword [esp + 0x888]
lea edx, [esp + 0x20]
push edx
mov byte [ecx], al
call esi
mov ecx, dword [esp + 0x890]
lea esi, [ebp + 0x68]
push esi
mov byte [ecx], al
call dword [sym.imp.MSVCRT.dll_time]
mov edi, dword [esi]
push ebp
add edi, 0x78
push 0
mov dword [esi], edi
call fcn.004b4b50
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x85c
ret 0x14
mov ax, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x85c
ret 0x14