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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x81c
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x4b8a23
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0x81c
ret 0x10
mov ecx, dword [0x4aa9e8]
mov eax, dword [eax + 0x54]
push ecx
push eax
call fcn.004b5b20
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4b8a4d
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
add esp, 0x81c
ret 0x10
mov ax, word [ebp + 0x44]
test ax, ax
je 0x4b8e14
cmp ax, 0xffff
je 0x4b8e14
xor edx, edx
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov dword [esp + 0x38], edx
xor ecx, ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
lea edx, [esp + 0x38]
movsx eax, word [ebp + 0x5a]
mov cx, word [ebp + eax*2 + 0x46]
push ecx
push 0x4a72bc
push edx
call esi
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x50], eax
lea edx, [esp + 0x50]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov cx, word [ebp + 0x44]
push ecx
push 0x4a72bc
push edx
call esi
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x50]
push eax
push ecx
push 2
push 0x4a72b4
call fcn.004be3f0
mov edx, eax
add esp, 0x28
test edx, edx
jne 0x4b8ae8
push ebp
push 0x4a
call fcn.004b4b50
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret 0x10
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x37c]
lea ebx, [esp + 0x37c]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
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 edx, [esp + 0x54]
xor ecx, ecx
lea eax, [esp + 0x380]
push edx
mov dword [esp + 0x58], ecx
push eax
push 0x4a73c4
mov dword [esp + 0x64], ecx
push 3
push 0x4a71b0
mov dword [esp + 0x70], ecx
call fcn.004be3f0
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x4b8b72
push ebp
push 0x4a
call fcn.004b4b50
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret 0x10
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x1ec]
lea esi, [esp + 0x1ec]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
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 + 0x1f0]
push ecx
call fcn.004be4d0
mov edx, eax
add esp, 8
test edx, edx
jne 0x4b8bdd
push ebp
push 0x4a
call fcn.004b4b50
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret 0x10
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x1ec]
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
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x60]
lea edx, [esp + 0x1f0]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x60]
push ecx
push ebp
push edx
call fcn.004bb7a0
add esp, 0x10
test ax, ax
je 0x4b8c4b
push ebp
push eax
call fcn.004b4a80
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret 0x10
lea eax, [esp + 0x5c]
push eax
call fcn.004be1c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4b8c76
push ebp
push 0x42
call fcn.004b4b50
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret 0x10
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x50c]
lea edx, [esp + 0x69c]
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x69c]
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x5c]
lea eax, [esp + 0x50c]
push ecx
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 0x4b8ce6
push ebp
push 0x42
call fcn.004b4b50
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret 0x10
mov esi, 0x4a72ac
lea eax, [esp + 0x50c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4b8d1a
test cl, cl
je 0x4b8d16
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4b8d1a
add eax, 2
add esi, 2
test cl, cl
jne 0x4b8cf2
xor eax, eax
jmp 0x4b8d1f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4b8d48
lea eax, [esp + 0x69c]
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, 0x81c
ret 0x10
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x20], ecx
xor eax, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x64]
push eax
push ecx
push 3
push 0x4a72b4
call fcn.004be020
add esp, 0x18
test ax, ax
je 0x4b8db2
push ebp
push 0x42
call fcn.004b4b50
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret 0x10
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
lea edx, [esp + 0x20]
push edx
call esi
mov ecx, dword [esp + 0x838]
lea edx, [esp + 0x30]
push edx
mov word [ecx], ax
call esi
mov ecx, dword [esp + 0x840]
lea edx, [esp + 0x1c]
push edx
mov word [ecx], ax
call esi
mov ecx, dword [esp + 0x848]
lea esi, [ebp + 0x68]
push esi
mov word [ecx], ax
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, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret 0x10
pop edi
pop esi
pop ebp
mov ax, 0x47
pop ebx
add esp, 0x81c
ret 0x10