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

Disassembly:
sub esp, 0x60
push ebp
mov ebp, dword [esp + 0x68]
lea eax, [esp + 0xc]
push edi
push 0
push eax
push 0x20
push ebp
mov dword [esp + 0x20], 0
call fcn.00461100
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x459342
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x30], eax
add ecx, 1
mov dword [esp + 0x34], eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x74]
adc eax, edi
mov edi, dword [esp + 0x10]
push eax
push ecx
push 1
push edi
call fcn.0043bf40
mov eax, dword [esp + 0x88]
cdq
push edx
push eax
push 2
push edi
call fcn.0043bf40
push edi
call fcn.0043d520
add esp, 0x24
cmp eax, 0x64
jne 0x459351
push ebx
push esi
push 1
push edi
call fcn.0043e080
push 2
push edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
call fcn.0043e080
mov ebx, dword [esp + 0x9c]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x38], edx
lea esi, [ebx + 0x28]
push esi
push eax
push 3
push edi
call fcn.0045dd20
mov eax, dword [esi + 4]
add esp, 0x20
mov ecx, dword [esi]
test eax, eax
jg 0x458f60
jl 0x458f54
test ecx, ecx
jae 0x458f60
neg ecx
mov dword [esi], ecx
adc eax, 0
neg eax
mov dword [esi + 4], eax
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x458f6e
mov eax, 1
jmp 0x458f70
xor eax, eax
push 4
push edi
mov byte [ebx + 0x30], al
call fcn.0043dba0
push 4
push edi
mov dword [esp + 0x24], eax
call fcn.0043daf0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x50]
push dword [esp + 0x50]
push ebp
call fcn.0045b640
mov edi, eax
add esp, 0x20
test edi, edi
jne 0x45932e
mov esi, dword [esp + 0x10]
test esi, esi
je 0x45932e
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x34]
push dword [esp + 0x3c]
push ebp
call fcn.0048a020
mov ebp, dword [esp + 0x34]
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x459055
push dword [esp + 0x20]
lea eax, [esp + 0x44]
push ebp
push eax
call fcn.0046a4d0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x45901a
lea ecx, [ecx]
cmp dword [esp + 0x40], 0
je 0x45901a
lea eax, [esp + 0x40]
push eax
call fcn.0046a530
mov edi, eax
add esp, 4
test edi, edi
je 0x459000
push dword [esp + 0x5c]
mov esi, dword [esp + 0x5c]
push esi
push dword [esp + 0x90]
push dword [esp + 0x90]
call fcn.004614f0
xor ecx, ecx
test eax, eax
mov eax, dword [esp + 0x20]
setle cl
dec ecx
and eax, ecx
push esi
mov dword [esp + 0x40], eax
call fcn.00438320
mov esi, dword [esp + 0x40]
add esp, 0x14
push ebp
call fcn.00438320
add esp, 4
test edi, edi
jne 0x45932e
test esi, esi
je 0x45932e
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
movsx ebp, byte [eax]
mov eax, ecx
sub eax, esi
mov dword [ebx + 0x20], ecx
inc eax
mov dword [ebx + 0x18], esi
cdq
and edx, 0xf
lea ecx, [ebp + 1]
add eax, edx
sar eax, 4
mov dword [ebx], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x78]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x7c]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x80]
mov dword [ebx + 0x10], eax
cmp ecx, 0x10
jge 0x4590eb
mov eax, ecx
lea esi, [ebx + 0x38]
shl eax, 5
add esi, eax
jmp 0x4590d0
mov eax, dword [ebx]
lea esi, [esi + 0x20]
imul eax, ecx
cdq
add eax, dword [ebx + 0x18]
adc edx, dword [ebx + 0x1c]
inc ecx
mov dword [esi - 0x20], eax
mov dword [esi - 0x1c], edx
cmp ecx, 0x10
jl 0x4590d0
mov eax, ebp
lea ecx, [ebx + 0x38]
shl eax, 5
add ecx, eax
mov eax, dword [ebx]
imul eax, ebp
mov dword [esp + 0x30], ecx
cdq
add eax, dword [ebx + 0x18]
adc edx, dword [ebx + 0x1c]
mov dword [ecx], eax
mov eax, dword [esp + 0x74]
mov dword [ecx + 4], edx
add ecx, 0x14
mov edx, dword [esp + 0x14]
mov esi, ecx
mov dword [esp + 0x20], ecx
mov eax, dword [eax + 0xe0]
mov dword [esp + 0x10], eax
cmp edx, eax
jle 0x45912f
mov eax, edx
mov dword [esp + 0x10], eax
cmp eax, dword [esi + 8]
jle 0x459173
mov eax, dword [esi]
mov dword [esp + 0x34], eax
call fcn.004b3380
test eax, eax
jne 0x4591e4
mov ecx, dword [esp + 0x10]
test ecx, ecx
sets al
dec eax
and eax, ecx
cdq
push edx
push eax
push dword [esp + 0x3c]
call fcn.004992d0
add esp, 0xc
test eax, eax
je 0x4591e4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi + 8], ecx
mov dword [esi], eax
mov eax, dword [esp + 0x20]
push edx
push dword [esp + 0x28]
push dword [eax]
call sub.MSVCRT.dll_memcpy
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x18], ecx
test ebp, ebp
js 0x45932e
lea esi, [ebp + 2]
shl esi, 5
add esi, ebx
test edi, edi
jne 0x45932e
push 0x30
lea eax, [esp + 0x44]
push edi
push eax
call sub.MSVCRT.dll_memset
mov ecx, dword [esi + 0xc]
add esp, 0xc
mov eax, dword [esi + 0x10]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
cmp byte [ecx], 0
je 0x4591eb
lea eax, [esp + 0x50]
push eax
lea eax, [ecx + 1]
push eax
call fcn.00488000
add esp, 8
inc eax
mov dword [esp + 0x48], eax
jmp 0x4591f3
mov edi, 7
jmp 0x459191
mov dword [esp + 0x48], 1
lea eax, [esp + 0x40]
push eax
call fcn.0046a530
add esp, 4
mov edi, eax
cmp dword [esp + 0x40], 0
je 0x45922e
lea esp, [esp]
test edi, edi
jne 0x459318
lea eax, [esp + 0x40]
push eax
call fcn.0046a530
add esp, 4
mov edi, eax
cmp dword [esp + 0x40], 0
jne 0x459210
test edi, edi
jne 0x459318
mov ebx, dword [esp + 0x5c]
cmp ebx, dword [esi + 8]
jle 0x459276
mov eax, dword [esi]
mov dword [esp + 0x34], eax
call fcn.004b3380
test eax, eax
jne 0x45934a
test ebx, ebx
sets al
dec eax
and eax, ebx
cdq
push edx
push eax
push dword [esp + 0x3c]
call fcn.004992d0
add esp, 0xc
test eax, eax
je 0x45934a
mov dword [esi + 8], ebx
mov dword [esi], eax
push ebx
push dword [esp + 0x5c]
push dword [esi]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [esi + 4], ebx
test ebp, ebp
jle 0x459318
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x24]
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x74]
push 0
push edx
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push edx
push eax
push ecx
push ebx
mov dword [esp + 0x3c], 0
mov dword [esi - 0x28], ecx
mov dword [esi - 0x24], eax
call fcn.0048a020
mov dword [esp + 0x38], eax
add esp, 0x18
mov eax, dword [ebx + 0xe0]
mov ebx, dword [esp + 0x24]
cmp ebx, eax
jle 0x4592dd
mov eax, ebx
lea edx, [esp + 0x20]
push edx
lea ecx, [esi - 0x14]
push eax
push ecx
call fcn.00445be0
mov edi, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [esp + 0x14]
test edi, edi
jne 0x45930f
push ebx
push eax
push dword [esi - 0x14]
call sub.MSVCRT.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esi - 0x10], ebx
push eax
call fcn.00438320
add esp, 4
push dword [esp + 0x58]
call fcn.00438320
add esp, 4
sub esi, 0x20
dec ebp
jns 0x4591a1
push dword [esp + 0x18]
call fcn.0043e460
add esp, 4
pop esi
pop ebx
test edi, edi
jne 0x459342
mov edi, eax
mov eax, edi
pop edi
pop ebp
add esp, 0x60
ret
mov edi, 7
jmp 0x459318
push edi
call fcn.0043e460
add esp, 4
pop edi
pop ebp
add esp, 0x60
ret