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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 0x5c
and esp, 0xfffffff8
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], ecx
fld qword [0x4c9210]
mov eax, ecx
fcomp qword [eax + 0x8e0]
fnstsw ax
and ah, 0x44
cmp ah, 0x40
jne 0x45ee30
mov eax, esi
lea edi, [eax + eax*8]
lea edi, [edi + edi*2]
add edi, eax
mov eax, dword [esp + 4]
mov dword [eax + edi + 0x88], edx
mov byte [eax + edi + 0x78], 1
jmp 0x45f1fa
mov ecx, esi
inc ecx
mov eax, dword [esp + 4]
cmp ecx, dword [eax + 0x77c]
jl 0x45ee50
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, esi
lea ebx, [eax + eax*8]
lea ebx, [ebx + ebx*2]
add ebx, eax
mov eax, dword [esp + 4]
sub edx, dword [eax + ebx + 0x88]
add dword [eax + ebx + 0x88], edx
mov eax, ecx
lea esi, [eax + eax*8]
lea esi, [esi + esi*2]
add esi, eax
mov eax, dword [esp + 4]
sub dword [eax + esi + 0x88], edx
mov eax, dword [eax + 0x77c]
dec eax
cmp eax, ecx
jne 0x45ee96
mov eax, dword [esp + 4]
sub dword [eax + 0x8c4], edx
mov eax, dword [esp + 4]
mov eax, dword [eax + ebx + 0x7c]
mov dword [esp + 0x40], eax
test eax, eax
je 0x45eead
mov ecx, eax
call fcn.0040b9a0
lea eax, [esp + 0x40]
push eax
call fcn.0045de60
pop ecx
mov byte [esp + 0x1c], al
cmp dword [esp + 0x40], 0
je 0x45eecc
mov ecx, dword [esp + 0x40]
call fcn.0040b9e0
mov eax, dword [esp + 4]
mov eax, dword [eax + esi + 0x7c]
mov dword [esp + 0x44], eax
test eax, eax
je 0x45eee3
mov ecx, eax
call fcn.0040b9a0
lea eax, [esp + 0x44]
push eax
call fcn.0045de60
pop ecx
mov byte [esp + 0x14], al
cmp dword [esp + 0x44], 0
je 0x45ef02
mov ecx, dword [esp + 0x44]
call fcn.0040b9e0
xor cl, cl
cmp byte [esp + 0x1c], 2
jne 0x45ef10
mov cl, 1
jmp 0x45ef19
mov eax, dword [esp + 4]
mov byte [eax + ebx + 0x78], 1
cmp byte [esp + 0x14], 2
jne 0x45ef24
mov cl, 1
jmp 0x45ef2d
mov eax, dword [esp + 4]
mov byte [eax + esi + 0x78], 1
test cl, cl
je 0x45f1fa
mov dword [esp + 0x30], 0x10
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
or dword [esp + 0x10], 0xffffffff
or dword [esp + 0x18], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
jmp 0x45f082
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ecx + 0x7c]
mov dword [esp + 0x48], eax
test eax, eax
je 0x45ef8f
mov ecx, eax
call fcn.0040b9a0
lea eax, [esp + 0x48]
push eax
call fcn.0045de60
pop ecx
mov bl, al
cmp dword [esp + 0x48], 0
je 0x45efac
mov ecx, dword [esp + 0x48]
call fcn.0040b9e0
cmp bl, 2
jne 0x45f079
jmp 0x45f017
mov eax, edi
add eax, dword [esp + 0x30]
mov ebx, eax
cmp ebx, edi
je 0x45f017
lea eax, [eax*4]
push eax
call fcn.00494600
pop ecx
mov esi, eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x45f00f
mov edi, eax
mov edx, esi
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
jb 0x45efe9
mov ecx, ebx
lea ecx, [ecx*4]
add ecx, eax
cmp eax, ecx
jae 0x45f004
mov eax, dword [edi]
mov dword [edx], eax
add edi, 4
add edx, 4
cmp edi, ecx
jb 0x45eff6
mov eax, dword [esp + 0x34]
push eax
call fcn.00494620
pop ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], ebx
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
cmp esi, edi
jae 0x45efb7
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0xc]
mov dword [edx + esi*4], eax
inc dword [esp + 0x38]
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
mov ecx, dword [eax + ecx + 0x88]
mov eax, dword [eax + 0x77c]
dec eax
cmp eax, dword [esp + 0xc]
jne 0x45f058
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x8c4]
cmp dword [esp + 0x18], 0xffffffff
jne 0x45f063
test ecx, ecx
jg 0x45f06d
cmp ecx, dword [esp + 0x10]
jge 0x45f079
test ecx, ecx
jle 0x45f079
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
add dword [esp + 8], 0x1c
inc dword [esp + 0xc]
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
cmp eax, dword [ecx + 0x77c]
jl 0x45ef74
cmp dword [esp + 0x10], 0xffffffff
jne 0x45f0a5
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fstp qword [esp + 0x20]
xor ebx, ebx
jmp 0x45f1dd
cmp esi, eax
jb 0x45f0cb
mov eax, ebx
inc eax
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + ebx*4]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [esp + 4]
mov ecx, dword [eax + edx*4 + 0x88]
cmp esi, dword [esp + 0x38]
jb 0x45f0f3
mov eax, ebx
inc eax
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x77c]
dec eax
cmp eax, dword [edx + ebx*4]
jne 0x45f111
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x8c4]
push 7
push 0xffffffffffffffff
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
fdiv qword [esp + 0x28]
push eax
push eax
fstp qword [esp]
lea eax, [esp + 0x5c]
push eax
call fcn.00467350
add esp, 0x14
mov dword [esp + 0x50], 0
push 0x4c92e6
call fcn.0040ca30
pop ecx
push eax
push 0x4c92e6
lea ecx, [esp + 0x58]
call fcn.0040bb00
cmp dword [esp + 0x50], 0
je 0x45f168
mov ecx, dword [esp + 0x50]
mov eax, dword [0x4bf2dc]
mov dword [ecx + 0x10], eax
lea eax, [esp + 0x50]
push eax
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.0040c300
add esp, 0xc
cmp esi, dword [esp + 0x38]
jb 0x45f18c
mov eax, ebx
inc eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x54]
push eax
mov esi, dword [esp + 0x38]
mov eax, dword [esi + ebx*4]
lea ecx, [eax + eax*8]
lea ecx, [ecx + ecx*2]
add ecx, eax
add ecx, dword [esp + 8]
add ecx, 0x7c
call fcn.0040bbd0
cmp dword [esp + 0x54], 0
je 0x45f1bc
mov ecx, dword [esp + 0x54]
call fcn.0040b9e0
cmp dword [esp + 0x50], 0
je 0x45f1cc
mov ecx, dword [esp + 0x50]
call fcn.0040b9e0
cmp dword [esp + 0x4c], 0
je 0x45f1dc
mov ecx, dword [esp + 0x4c]
call fcn.0040b9e0
inc ebx
mov eax, dword [esp + 0x38]
mov esi, ebx
cmp esi, eax
jb 0x45f0c0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x45f1fa
push eax
call fcn.00494620
pop ecx
mov eax, dword [esp + 4]
cmp byte [eax + 0x779], 0
je 0x45f21e
lea edx, [eax + 0x784]
push edx
mov eax, dword [eax + 0x77c]
push eax
mov ecx, dword [esp + 0xc]
call fcn.0045d2b0
mov ecx, dword [esp + 4]
call fcn.0040b130
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8