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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x4d897c]
xor eax, esp
mov dword [esp + 0x60], eax
mov edx, dword [ebp + 0xc]
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.0041d210
mov ecx, dword [esi + 0x15c]
sub ecx, dword [esi + 0x4b8]
mov edi, dword [esi + 0x154]
mov edx, dword [esi + 0x158]
mov eax, dword [esi + 0x160]
add edi, dword [esi + 0x4b0]
add edx, dword [esi + 0x4b4]
sub eax, dword [esi + 0x4bc]
mov dword [ebp + 0x10], ecx
mov ecx, dword [esi + 0x4c8]
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x14], eax
test ecx, ecx
je 0x458e90
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x458e90
mov ecx, dword [esi + 0x4c8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x58]
call edx
sub dword [ebp + 0x10], eax
mov ecx, dword [esi + 0x4cc]
test ecx, ecx
je 0x458eb8
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x458eb8
mov ecx, dword [esi + 0x4cc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x60]
call edx
sub dword [ebp + 0x14], eax
cmp dword [esi + 0x4a8], 0
jne 0x458ec8
push 0
jmp 0x4592fe
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
sub edi, dword [ebp + 8]
sub ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x4cc]
xor edx, edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
cmp ecx, edx
je 0x458f08
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x458f06
mov eax, dword [esi + 0x4cc]
add edi, dword [eax + 0x4a4]
mov dword [esp + 0x30], edi
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edx
cmp dword [esi + 0x4a8], edx
jle 0x45900c
mov ecx, dword [esi + 0x4a4]
mov edx, dword [esp + 0x1c]
mov edi, dword [ecx + edx*4]
mov eax, dword [edi]
mov edx, dword [eax + 0xc8]
mov ecx, edi
call edx
test al, al
je 0x458ff1
mov eax, dword [edi]
mov edx, dword [eax + 0xf4]
mov ecx, edi
call edx
test al, al
jne 0x458ff1
mov ecx, dword [esp + 0x30]
mov eax, dword [edi]
mov eax, dword [eax + 0x114]
push ebx
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, edi
call eax
cmp dword [esp + 0x14], 0
jne 0x458f7f
inc dword [esp + 0x24]
jmp 0x458fbd
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
cmp dword [esp + 0x14], eax
jge 0x458f9b
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
mov dword [esp + 0x14], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
cmp dword [esp + 0x14], eax
jle 0x458fbd
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
mov dword [esp + 0x14], eax
mov edx, dword [edi]
mov edx, dword [edx + 0x48]
lea eax, [esp + 0x5c]
push eax
mov ecx, edi
call edx
lea ebx, [eax + 0xc]
mov eax, dword [edi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, edi
call edx
mov eax, dword [eax + 4]
add eax, dword [esp + 0x14]
add eax, dword [ebx]
mov ebx, dword [esp + 0x34]
add dword [esp + 0x18], eax
inc dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esi + 0x4a8]
jl 0x458f26
mov ecx, dword [esp + 0x24]
xor edx, edx
mov eax, dword [esp + 0x20]
mov edi, dword [esi + 0x4c0]
dec eax
imul edi, eax
add dword [esp + 0x18], edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x3c], edx
cmp ecx, edx
jle 0x459045
mov eax, ebx
sub eax, dword [esp + 0x18]
cdq
idiv ecx
xor ecx, ecx
test eax, eax
sets cl
dec ecx
and ecx, eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x4c8]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x1c], edi
test ecx, ecx
je 0x459074
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x459074
mov ecx, dword [esi + 0x4c8]
sub edi, dword [ecx + 0x4a8]
mov dword [esp + 0x1c], edi
mov ecx, dword [esi + 0x4cc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x2c], edi
test ecx, ecx
je 0x4590a3
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x4590a3
mov ecx, dword [esi + 0x4cc]
sub edi, dword [ecx + 0x4a8]
mov dword [esp + 0x2c], edi
mov edx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], eax
cmp dword [esi + 0x4a8], eax
jle 0x4592ee
mov eax, dword [esi + 0x4a4]
mov ecx, dword [esp + 0x18]
mov edi, dword [eax + ecx*4]
mov edx, dword [edi]
mov eax, dword [edx + 0xc8]
mov ecx, edi
call eax
test al, al
je 0x4592d9
mov edx, dword [edi]
mov eax, dword [edx + 0xf4]
mov ecx, edi
call eax
test al, al
je 0x459108
mov edx, dword [esi]
mov eax, dword [esp + 0x18]
mov edx, dword [edx + 0x1a8]
push eax
mov ecx, esi
call edx
jmp 0x4592d9
mov eax, dword [edi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, edi
call edx
sub ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x30]
mov edx, dword [edi]
mov edx, dword [edx + 0x114]
push ebx
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov dword [esp + 0x54], ebx
call edx
cmp dword [esp + 0x14], 0
jne 0x4591aa
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], ecx
cmp eax, dword [esp + 0x24]
jne 0x45916a
sub ebx, dword [esp + 0x58]
mov edx, 0
sub ebx, dword [esp + 0x20]
sets dl
dec edx
and edx, ebx
mov dword [esp + 0x14], edx
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
mov ecx, edi
call edx
cmp dword [esp + 0x14], eax
jge 0x459186
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
mov ecx, edi
call edx
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x80]
mov ecx, edi
call edx
cmp dword [esp + 0x14], eax
jle 0x4591f0
mov eax, dword [edi]
mov edx, dword [eax + 0x80]
mov ecx, edi
call edx
mov dword [esp + 0x14], eax
jmp 0x4591f0
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
mov ecx, edi
call edx
cmp dword [esp + 0x14], eax
jge 0x4591c6
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
mov ecx, edi
call edx
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x80]
mov ecx, edi
call edx
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jle 0x4591ec
mov eax, dword [edi]
mov edx, dword [eax + 0x80]
mov ecx, edi
call edx
mov ecx, eax
mov dword [esp + 0x14], ecx
sub dword [esp + 0x20], ecx
mov eax, dword [edi]
mov edx, dword [eax + 0x58]
mov ecx, edi
call edx
mov dword [esp + 0x10], eax
test eax, eax
jne 0x459213
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x54]
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
test eax, eax
jns 0x45921d
mov dword [esp + 0x10], 0
mov eax, dword [edi]
mov edx, dword [eax + 0x68]
mov ecx, edi
call edx
cmp dword [esp + 0x10], eax
jge 0x459239
mov eax, dword [edi]
mov edx, dword [eax + 0x68]
mov ecx, edi
call edx
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x70]
mov ecx, edi
call edx
cmp dword [esp + 0x10], eax
jle 0x459255
mov eax, dword [edi]
mov edx, dword [eax + 0x70]
mov ecx, edi
call edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
lea edx, [eax + ecx]
add eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x50]
add eax, dword [esp + 0x2c]
add ebx, ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x58]
sub esp, 0x10
add eax, ecx
add eax, dword [esp + 0x2c]
mov ecx, esp
mov dword [ecx], edx
mov dword [esp + 0x70], ebx
mov edx, dword [esp + 0x70]
mov ebx, dword [edi]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x74]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov eax, dword [ebx + 0x34]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x58]
mov eax, dword [esi + 0x4c0]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x48]
lea edi, [eax + ecx]
add edi, edx
add edi, dword [esp + 0x50]
add eax, ecx
add dword [esp + 0x1c], edi
lea edi, [ecx + edx]
add edi, dword [esp + 0x50]
add eax, edx
add dword [esp + 0x28], edi
sub ebx, eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esi + 0x4a8]
jl 0x4590c1
mov eax, dword [esi + 0x4c0]
imul eax, dword [esp + 0x40]
add eax, dword [esp + 0x28]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x1ac]
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
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00494bb0
mov esp, ebp
pop ebp
ret 0x10