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

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
mov ebx, eax
mov esi, dword [ebx + 0x3c]
xor ebp, ebp
push edi
xor edi, edi
cmp byte [ebx + 3], 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], ebp
jne 0x4582b9
lea edi, [ebp + 4]
cmp byte [ebx + 4], 0
je 0x4582df
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
add eax, ecx
cdq
push edx
mov edx, dword [esp + 0x58]
push eax
lea ecx, [edi + edx]
call fcn.0042e420
add esp, 8
add edi, eax
jmp 0x4582e7
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebp
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
push eax
push ecx
lea ecx, [edi + edx]
call fcn.0042e420
mov ecx, dword [esp + 0x5c]
add edi, eax
push ebx
lea eax, [esp + 0x3c]
call fcn.00431d00
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
add eax, ecx
add esp, 0xc
cmp byte [ebx + 2], 0
mov dword [esp + 0x10], eax
je 0x458338
mov edx, dword [esp + 0x64]
mov dword [esp + 0x14], edx
mov edx, ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x68], ebp
jmp 0x458370
cmp dword [esp + 0x60], ebp
jg 0x45851d
mov ecx, dword [esp + 0x5c]
jl 0x458354
cmp ecx, 0x7fffffff
ja 0x45851d
mov edx, dword [esp + 0x58]
test edx, edx
je 0x45851d
add eax, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x6c], ecx
mov edx, ecx
movzx ecx, word [esp + 0x4a]
mov ebx, dword [esp + 0x70]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x54]
movzx ebx, word [esp + 0x46]
add edi, ecx
movzx ecx, word [esp + 0x48]
add ecx, dword [esp + 0x54]
mov dword [esp + 0x24], ecx
test eax, eax
jg 0x4583bc
mov eax, dword [esp + 0x18]
call fcn.00457120
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x6c]
test ebx, ebx
jne 0x458496
mov dword [esp + 0x2c], ebp
cmp byte [esi + 0x15], bl
je 0x4583f1
mov ebx, dword [0x4afc6c]
inc ebp
mov ecx, ebp
mov edi, esi
call fcn.00431c70
cmp eax, ebp
je 0x4583d3
xor edx, edx
mov eax, ebx
div dword [esi + 0x24]
inc eax
cmp ebp, eax
je 0x4583d3
mov dword [esp + 0x1c], ebp
push 0
push ebp
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.004578d0
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
add esp, 0x14
cmp byte [esi + 0x15], 0
mov ebx, eax
mov dword [esp + 0x54], ebx
je 0x458454
test ebx, ebx
jne 0x45850a
mov eax, dword [esp + 0x2c]
test eax, eax
lea ecx, [esp + 0x54]
push ecx
setne dl
push eax
add dl, 3
movzx eax, dl
push eax
mov eax, ebp
mov ecx, esi
call fcn.00456f50
mov ebx, dword [esp + 0x60]
add esp, 0xc
test ebx, ebx
je 0x45845c
mov eax, edi
call fcn.00457120
test ebx, ebx
jne 0x45850a
mov ecx, dword [esp + 0x24]
mov eax, ebp
call fcn.0042e7b0
mov eax, dword [esp + 0x18]
call fcn.00457120
mov ecx, dword [edi + 0x40]
xor eax, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], ecx
call fcn.0042e7b0
mov edi, dword [edi + 0x40]
mov ebx, dword [esi + 0x28]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x6c]
add edi, 4
sub ebx, 4
cmp eax, ebx
mov esi, eax
jle 0x45849e
mov esi, ebx
test edx, edx
jle 0x4584b6
cmp esi, edx
jle 0x4584a8
mov esi, edx
mov ecx, dword [esp + 0x14]
push esi
push ecx
push edi
call fcn.00478f00
jmp 0x4584bf
push esi
push 0
push edi
call fcn.00477c40
mov eax, dword [esp + 0x78]
sub dword [esp + 0x1c], esi
add dword [esp + 0x20], esi
sub eax, esi
add esp, 0xc
add edi, esi
sub ebx, esi
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x4584ec
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x14], eax
cmp dword [esp + 0x10], 0
jg 0x4583b0
mov eax, dword [esp + 0x18]
call fcn.00457120
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
mov eax, dword [esp + 0x18]
call fcn.00457120
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x40
ret
push 0xd0a6
call fcn.004448f0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret