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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x850
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x4b8e53
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0x850
ret 8
mov ecx, dword [0x4aa9e8]
mov eax, dword [eax + 0x54]
push ecx
push eax
call fcn.004b5b20
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4b8e7d
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
add esp, 0x850
ret 8
mov ebp, dword [esp + 0x868]
cmp bp, word [ebx + 0x1a4]
ja 0x4b926b
cmp bp, 7
ja 0x4b8ea8
pop edi
pop esi
pop ebp
mov ax, 4
pop ebx
add esp, 0x850
ret 8
mov ax, word [ebx + 0x44]
test ax, ax
je 0x4b925a
cmp ax, 0xffff
je 0x4b925a
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x220]
xor edx, edx
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x3b0]
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x90]
rep stosd dword es:[edi], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x3c], eax
xor ecx, ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], eax
movsx ecx, word [ebx + 0x5a]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x38]
mov dx, word [ebx + ecx*2 + 0x46]
push edx
push 0x4a72bc
push eax
call esi
xor ecx, ecx
lea edx, [esp + 0x38]
mov cx, word [ebx + 0x44]
push ecx
push 0x4a72bc
push edx
call esi
and ebp, 0xffff
lea eax, [esp + 0x38]
push ebp
push 0x4a72bc
push eax
call esi
mov ecx, dword [ebx + 0x1a8]
lea edx, [esp + 0x38]
push ecx
push 0x4a72b8
push edx
call esi
add esp, 0x30
cmp word [ebx + 0x1ac], 0
jne 0x4b8f9e
push 0
lea eax, [esp + 0x18]
push 0x4a72b8
push eax
call esi
add esp, 0xc
cmp word [ebx + 0x1ac], 1
jne 0x4b8fc3
cmp word [ebx + 0x1ae], 0
jne 0x4b8fc3
push 0
lea ecx, [esp + 0x18]
push 0x4a72b8
push ecx
call esi
add esp, 0xc
mov eax, dword [esp + 0x864]
lea edx, [esp + 0x50]
push 0x40
push edx
push eax
call fcn.004b44d0
test ax, ax
jne 0x4b926f
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
push 4
push 0x4a72b4
call fcn.004be3f0
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x4b9021
push ebx
push 0x4a
call fcn.004b4b50
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 8
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x3b0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebp
mov ebp, 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 ebp
lea ecx, [esp + 0x48]
lea edx, [esp + 0x3b4]
push ecx
push edx
push 0x4a73d4
push 3
push 0x4a71b0
call fcn.004be3f0
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x4b908f
push ebx
push 0x4a
call fcn.004b4b50
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 8
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x90]
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 ebp
lea ecx, [esp + 0x94]
push ecx
call fcn.004be4d0
mov edx, eax
add esp, 8
test edx, edx
jne 0x4b90ec
push ebx
push 0x4a
call fcn.004b4b50
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 8
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x90]
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 ebp
lea ecx, [esp + 0x224]
lea edx, [esp + 0x94]
push ecx
push ebx
push edx
call fcn.004bb7a0
add esp, 0x10
test ax, ax
je 0x4b9150
push ebx
push eax
call fcn.004b4a80
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 8
lea eax, [esp + 0x220]
push eax
call fcn.004be1c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4b917e
push ebx
push 0x42
call fcn.004b4b50
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 8
lea ecx, [esp + 0x220]
lea edx, [esp + 0x6d0]
push ecx
lea eax, [esp + 0x544]
push edx
push eax
push esi
push 3
push 0x4a71b0
call fcn.004be020
push esi
mov edi, eax
call ebp
add esp, 0x1c
test di, di
je 0x4b91c8
push ebx
push 0x42
call fcn.004b4b50
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 8
mov edi, 0x4a72ac
lea esi, [esp + 0x540]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x4b91fc
test al, al
je 0x4b91f8
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x4b91fc
add esi, 2
add edi, 2
test al, al
jne 0x4b91d4
xor eax, eax
jmp 0x4b9201
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4b922a
lea eax, [esp + 0x6d0]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
push ebx
push eax
call fcn.004b4b50
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 8
mov ecx, dword [ebx + 0x5c]
lea esi, [ebx + 0x68]
inc ecx
push esi
mov dword [ebx + 0x5c], ecx
call dword [sym.imp.MSVCRT.dll_time]
mov edi, dword [esi]
push ebx
add edi, 0x78
push 0
mov dword [esi], edi
call fcn.004b4b50
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 8
pop edi
pop esi
pop ebp
mov ax, 0x47
pop ebx
add esp, 0x850
ret 8
mov ax, 5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 8