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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov edx, dword [ebp + 0xc]
sub esp, 0x54
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 8]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.0043dcf0
mov ecx, dword [esi + 0x184]
sub ecx, dword [esi + 0x5f4]
mov edi, dword [esi + 0x17c]
mov edx, dword [esi + 0x180]
mov eax, dword [esi + 0x188]
add edi, dword [esi + 0x5ec]
add edx, dword [esi + 0x5f0]
sub eax, dword [esi + 0x5f8]
mov dword [ebp + 0x10], ecx
mov ecx, dword [esi + 0x610]
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x14], eax
test ecx, ecx
je 0x458115
mov eax, dword [ecx]
mov edx, dword [eax + 0xd4]
call edx
test al, al
je 0x458115
mov ecx, dword [esi + 0x610]
mov eax, dword [ecx]
mov edx, dword [eax + 0x58]
call edx
sub dword [ebp + 0x10], eax
mov ecx, dword [esi + 0x614]
test ecx, ecx
je 0x45813d
mov eax, dword [ecx]
mov edx, dword [eax + 0xd4]
call edx
test al, al
je 0x45813d
mov ecx, dword [esi + 0x614]
mov eax, dword [ecx]
mov edx, dword [eax + 0x60]
call edx
sub dword [ebp + 0x14], eax
cmp dword [esi + 0x5e4], 0
jne 0x45814d
push 0
jmp 0x458507
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
sub edi, dword [ebp + 8]
sub ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x614]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
test ecx, ecx
je 0x458189
mov eax, dword [ecx]
mov edx, dword [eax + 0xd4]
call edx
test al, al
je 0x458189
mov eax, dword [esi + 0x614]
add edi, dword [eax + 0x5e0]
mov dword [esp + 0x30], edi
xor ecx, ecx
xor edi, edi
cmp dword [esi + 0x5e4], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ecx
jle 0x458291
mov ecx, dword [esi + 0x5e0]
mov edx, dword [esp + 0x14]
mov edi, dword [ecx + edx*4]
mov eax, dword [edi]
mov edx, dword [eax + 0xd4]
mov ecx, edi
call edx
test al, al
je 0x458274
mov eax, dword [edi]
mov edx, dword [eax + 0x108]
mov ecx, edi
call edx
test al, al
jne 0x458274
mov ecx, dword [esp + 0x30]
mov eax, dword [edi]
mov eax, dword [eax + 0x154]
push ebx
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call eax
cmp dword [esp + 0x2c], 0
jne 0x458202
inc dword [esp + 0x10]
jmp 0x458240
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
cmp dword [esp + 0x2c], eax
jge 0x45821e
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
mov dword [esp + 0x2c], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
cmp dword [esp + 0x2c], eax
jle 0x458240
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
mov dword [esp + 0x2c], eax
mov edx, dword [edi]
mov edx, dword [edx + 0x48]
lea eax, [esp + 0x50]
push eax
mov ecx, edi
call edx
lea ebx, [eax + 0xc]
mov eax, dword [edi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call edx
mov eax, dword [eax + 4]
add eax, dword [ebx]
mov ebx, dword [esp + 0x34]
add eax, dword [esp + 0x2c]
add dword [esp + 0x18], eax
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esi + 0x5e4]
mov dword [esp + 0x14], eax
jl 0x4581a9
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x5fc]
dec eax
imul edx, eax
mov dword [esp + 0x24], eax
xor eax, eax
add ecx, edx
cmp edi, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
jle 0x4582c8
mov eax, ebx
sub eax, ecx
cdq
idiv edi
xor ecx, ecx
test eax, eax
setl cl
dec ecx
and ecx, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x610]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x10], edi
test ecx, ecx
je 0x4582f7
mov edx, dword [ecx]
mov eax, dword [edx + 0xd4]
call eax
test al, al
je 0x4582f7
mov ecx, dword [esi + 0x610]
sub edi, dword [ecx + 0x5e4]
mov dword [esp + 0x10], edi
mov ecx, dword [esi + 0x614]
mov edi, dword [ebp + 8]
mov dword [esp + 0x1c], edi
test ecx, ecx
je 0x458326
mov edx, dword [ecx]
mov eax, dword [edx + 0xd4]
call eax
test al, al
je 0x458326
mov ecx, dword [esi + 0x614]
sub edi, dword [ecx + 0x5e4]
mov dword [esp + 0x1c], edi
cmp dword [esi + 0x5e4], 0
mov dword [esp + 0x14], 0
jle 0x4584f7
mov edx, dword [esi + 0x5e0]
mov eax, dword [esp + 0x14]
mov edi, dword [edx + eax*4]
mov edx, dword [edi]
mov eax, dword [edx + 0xd4]
mov ecx, edi
call eax
test al, al
je 0x4584e2
mov edx, dword [edi]
mov eax, dword [edx + 0x108]
mov ecx, edi
call eax
test al, al
je 0x458382
mov edx, dword [esi]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 0x1f8]
push eax
mov ecx, esi
call edx
jmp 0x4584e2
mov eax, dword [edi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call edx
sub ebx, dword [esp + 0x44]
mov edx, dword [edi]
mov edx, dword [edx + 0x154]
push ebx
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x34]
mov eax, ebx
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call edx
cmp dword [esp + 0x2c], 0
mov ecx, edi
jne 0x4583c2
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
call eax
cmp dword [esp + 0x2c], eax
jge 0x4583dc
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
mov dword [esp + 0x2c], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
cmp dword [esp + 0x2c], eax
jle 0x4583fe
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
mov dword [esp + 0x2c], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x58]
mov ecx, edi
call eax
mov dword [esp + 0x28], eax
test eax, eax
jne 0x45841f
mov eax, ebx
sub eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov dword [esp + 0x28], eax
test eax, eax
jge 0x458429
mov dword [esp + 0x28], 0
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
cmp dword [esp + 0x28], eax
jge 0x458445
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
mov dword [esp + 0x28], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x70]
mov ecx, edi
call eax
cmp dword [esp + 0x28], eax
jle 0x458461
mov edx, dword [edi]
mov eax, dword [edx + 0x70]
mov ecx, edi
call eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
add ebx, eax
add edx, ecx
mov dword [esp + 0x54], ebx
mov ebx, dword [esp + 0x28]
add ecx, ebx
mov ebx, dword [esp + 0x2c]
add ecx, dword [esp + 0x1c]
add eax, ebx
add eax, dword [esp + 0x10]
mov ebx, dword [edi]
mov dword [esp + 0x5c], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x64]
mov dword [eax + 4], edx
mov edx, dword [ebx + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0xc], ecx
mov ecx, edi
call edx
mov ecx, dword [esp + 0x4c]
mov eax, dword [esi + 0x5fc]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
lea edi, [eax + ecx]
add edi, edx
add edi, dword [esp + 0x44]
add eax, ecx
add dword [esp + 0x10], edi
lea edi, [ecx + edx]
add edi, dword [esp + 0x44]
add eax, edx
add dword [esp + 0x18], edi
sub ebx, eax
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esi + 0x5e4]
mov dword [esp + 0x14], eax
jl 0x45833b
mov eax, dword [esi + 0x5fc]
imul eax, dword [esp + 0x24]
add eax, dword [esp + 0x18]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x1fc]
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0xc], ecx
mov ecx, esi
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10