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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
cmp dword [0x82d1f0], 0
push ebx
push esi
push edi
lea ebx, [ebp - 4]
mov esi, dword [ebp + 0x28]
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x10], eax
je 0x64577e
cmp dword [0x82d1e0], 0
je 0x645786
or eax, 0xffffffff
jmp 0x646ade
cmp edi, dword [ebp + 0x10]
je 0x645793
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp + 0x14]
jne 0x64579b
or eax, 0xffffffff
jmp 0x646ade
cmp dword [0x874160], 0
jne 0x6457a9
call fcn.00652a48
cmp dword [ebp + 0x30], 0
je 0x6457c3
cmp dword [0x94e7b8], 1
jne 0x6457bc
xor edx, edx
jmp 0x6457c5
mov edx, 2
jmp 0x6457c5
xor edx, edx
or edx, dword [ebp + 0x2c]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x50]
mov edx, dword [eax + 0x2c]
mov eax, dword [esi + 0xc]
add eax, 8
call fcn.00640c9c
mov eax, dword [0x82d3c4]
lea ecx, [esi + 0x48]
mov dword [ebp - 0x48], eax
mov eax, dword [0x94e7b4]
mov edx, dword [esi + 0x44]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x4c], eax
fld dword [ebp + 0x20]
fsub dword [ebp + 0x18]
fild dword [esi + 0x2c]
fdivp st(1)
fstp dword [ebp - 0x1c]
fld dword [ebp + 0x24]
fsub dword [ebp + 0x1c]
fild dword [esi + 0x30]
fdivp st(1)
fstp dword [ebp - 0x20]
fld dword [ebp - 0x1c]
fcomp dword [0x646ae8]
fnstsw ax
sahf
setb dl
and edx, 1
fld dword [ebp - 0x20]
fcomp dword [0x646ae8]
fnstsw ax
sahf
setb cl
and ecx, 1
cmp dl, cl
setne dl
and edx, 1
mov dword [ebp - 0x24], edx
fld dword [0x646aec]
fsubr dword [ebp + 0x18]
fstp dword [ebp + 0x18]
fld dword [0x646aec]
fsubr dword [ebp + 0x1c]
fstp dword [ebp + 0x1c]
cmp edi, dword [ebp + 0x10]
jle 0x64586f
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp + 0x10], edi
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x14]
jle 0x645889
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x14], ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0xc], eax
mov edx, dword [0x94e698]
mov ecx, dword [ebp + 0x10]
inc edx
lea eax, [edi + 1]
sub ecx, edx
mov edx, dword [0x94e690]
sub edx, eax
mov eax, dword [0x94e69c]
and ecx, edx
mov edx, dword [ebp + 0x14]
inc eax
sub edx, eax
mov eax, dword [ebp + 0xc]
and ecx, edx
inc eax
mov edx, dword [0x94e694]
sub edx, eax
and ecx, edx
test ecx, 0x80000000
je 0x6460d6
mov ecx, dword [0x82d3ac]
dec ecx
je 0x645d3f
dec ecx
jne 0x646adc
xor eax, eax
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x14]
jge 0x646adc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x5c]
mov edx, dword [eax]
cmp edx, dword [0x86cfcc]
je 0x64596c
mov ecx, dword [ebp - 0xc]
cmp dword [0x82d1f0], 0
mov eax, dword [ecx + 0x5c]
mov edx, dword [eax]
mov dword [ebp - 0x54], edx
je 0x64596c
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [0x86cfcc]
jne 0x64592a
cmp dword [0x8fca94], 0
jne 0x64592a
xor eax, eax
jmp 0x64596c
call fcn.00652ec8
mov dword [0x874184], 1
cmp dword [0x86cfcc], 0
jne 0x645948
cmp dword [ebp - 0x54], 0
jne 0x645957
cmp dword [0x86cfcc], 0
je 0x645961
cmp dword [ebp - 0x54], 0
jne 0x645961
mov dword [0x874180], 1
mov edx, dword [ebp - 0x54]
xor eax, eax
mov dword [0x86cfcc], edx
cmp dword [0x874180], 0
jne 0x64597e
cmp dword [0x874184], 0
je 0x64598c
push 1
push 0
push 0
call fcn.0063d310
add esp, 0xc
cmp dword [0x82d3a4], 1
je 0x6459c7
cmp dword [0x82d3b0], 4
jne 0x6459c7
mov edx, dword [0x82d3a4]
lea edx, [edx + edx*2]
lea ecx, [edx*4 + 0x6c39ec]
mov eax, dword [0x82d3ac]
mov edx, dword [ecx + eax*4]
mov ecx, dword [0x82d3a8]
add ecx, 6
cmp edx, ecx
jg 0x645b42
cmp dword [0x82d3a8], 0
je 0x645b28
mov eax, dword [0x82d3a4]
lea eax, [eax + eax*2]
lea edx, [eax*4 + 0x6c3a04]
mov ecx, dword [0x82d3ac]
mov eax, dword [edx + ecx*4]
cmp eax, dword [0x8741b0]
je 0x645a3a
mov edx, dword [0x82d3a4]
mov eax, dword [0x82d3ac]
lea edx, [edx + edx*2]
lea ecx, [edx*4 + 0x6c3a04]
mov edx, dword [ecx + eax*4]
mov ecx, dword [0x82d1f0]
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x164]
mov edx, dword [0x82d3a4]
lea edx, [edx + edx*2]
lea ecx, [edx*4 + 0x6c3a04]
mov eax, dword [0x82d3ac]
mov edx, dword [ecx + eax*4]
mov dword [0x8741b0], edx
cmp dword [0x82d3a4], 0
je 0x645a4e
push 0x6c3a34
call fcn.0063ed84
pop ecx
mov ecx, dword [0x82d3a4]
mov edx, dword [0x82d3ac]
cmp dword [0x82d3b0], 4
lea ecx, [ecx + ecx*2]
lea eax, [ecx*4 + 0x6c3a1c]
mov ecx, dword [eax + edx*4]
mov eax, dword [0x82d3a4]
push ecx
mov ecx, dword [0x82d3ac]
lea eax, [eax + eax*2]
lea edx, [eax*4 + 0x77be70]
mov eax, dword [edx + ecx*4 + 0xb151c]
push eax
jne 0x645a9d
mov eax, dword [0x82d3a8]
mov ecx, 3
cdq
idiv ecx
jmp 0x645afd
cmp dword [0x82d3b0], 2
jne 0x645ab4
mov eax, dword [0x82d3a8]
sar eax, 1
jns 0x645afd
adc eax, 0
jmp 0x645afd
cmp dword [0x82d3b0], 6
jne 0x645ac7
mov eax, dword [0x82d3a8]
add eax, 0xfffffffe
jmp 0x645afd
cmp dword [0x82d3b0], 5
jne 0x645ada
mov eax, dword [0x82d3a8]
add eax, 0xfffffffe
jmp 0x645afd
cmp dword [0x82d3b0], 3
jne 0x645aeb
mov eax, dword [0x82d3a8]
dec eax
jmp 0x645afd
cmp dword [0x82d3b0], 1
jne 0x645afb
mov eax, dword [0x82d3a8]
jmp 0x645afd
xor eax, eax
push eax
mov edx, dword [0x82d3b0]
push edx
mov ecx, dword [0x82d1f0]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14c]
cmp dword [0x82d3a4], 0
je 0x645b28
push 0x94e85c
call fcn.0063ed84
pop ecx
xor edx, edx
mov dword [0x82d3a8], edx
mov ecx, dword [0x82d3ac]
mov eax, dword [ecx*4 + 0x82d38c]
mov dword [0x82d3c8], eax
xor edx, edx
mov dword [0x82d3a4], edx
mov dword [0x82d3b0], 4
mov ecx, dword [0x82d3c8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0xc]
add eax, 0x18
mov dword [edx + 0x88], ecx
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], ecx
fld dword [eax]
fmul dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
fadd dword [ebp + 0x18]
fst dword [edx]
mov ecx, dword [ebp - 8]
fst dword [ecx + 0x50]
mov edx, dword [ebp - 8]
fstp dword [edx + 0xa0]
fld dword [eax + 0x10]
fmul dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
fadd dword [ebp + 0x18]
fst dword [ecx + 0x28]
mov edx, dword [ebp - 8]
fst dword [edx + 0x78]
mov ecx, dword [ebp - 8]
fstp dword [ecx + 0xc8]
fld dword [eax + 4]
fmul dword [ebp - 0x20]
mov edx, dword [ebp - 8]
fadd dword [ebp + 0x1c]
fst dword [edx + 4]
mov ecx, dword [ebp - 8]
fst dword [ecx + 0x2c]
mov edx, dword [ebp - 8]
fstp dword [edx + 0xcc]
fld dword [eax + 0x24]
fmul dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
fadd dword [ebp + 0x1c]
fst dword [ecx + 0x54]
mov edx, dword [ebp - 8]
fst dword [edx + 0x7c]
mov ecx, dword [ebp - 8]
fstp dword [ecx + 0xa4]
fild dword [0x94e7d4]
mov edx, dword [ebp - 8]
fadd dword [eax]
fmul dword [0x82d3bc]
fst dword [edx + 0x18]
mov ecx, dword [ebp - 8]
fst dword [ecx + 0x68]
mov edx, dword [ebp - 8]
fstp dword [edx + 0xb8]
fild dword [0x94e7d4]
mov ecx, dword [ebp - 8]
fadd dword [eax + 0x10]
fmul dword [0x82d3bc]
fst dword [ecx + 0x40]
mov edx, dword [ebp - 8]
fst dword [edx + 0x90]
mov ecx, dword [ebp - 8]
fstp dword [ecx + 0xe0]
fild dword [0x94e7d8]
mov edx, dword [ebp - 8]
fadd dword [eax + 4]
fmul dword [0x82d3c0]
fst dword [edx + 0x1c]
mov ecx, dword [ebp - 8]
fst dword [ecx + 0x44]
mov edx, dword [ebp - 8]
fstp dword [edx + 0xe4]
fild dword [0x94e7d8]
mov ecx, dword [ebp - 8]
fadd dword [eax + 0x24]
fmul dword [0x82d3c0]
fst dword [ecx + 0x6c]
mov edx, dword [ebp - 8]
fst dword [edx + 0x94]
mov ecx, dword [ebp - 8]
fstp dword [ecx + 0xbc]
mov edx, dword [ebp - 8]
fld dword [eax + 8]
fst dword [edx + 0x20]
mov ecx, dword [ebp - 8]
fst dword [ecx + 0x70]
mov edx, dword [ebp - 8]
fstp dword [edx + 0xc0]
mov ecx, dword [ebp - 8]
fld dword [eax + 0x18]
fst dword [ecx + 0x48]
mov edx, dword [ebp - 8]
fst dword [edx + 0x98]
mov ecx, dword [ebp - 8]
fstp dword [ecx + 0xe8]
mov edx, dword [ebp - 8]
fld dword [eax + 0xc]
fst dword [edx + 0x24]
mov ecx, dword [ebp - 8]
fst dword [ecx + 0x4c]
mov edx, dword [ebp - 8]
fstp dword [edx + 0xec]
fld dword [eax + 0x2c]
mov eax, dword [ebp - 8]
fst dword [eax + 0x74]
mov ecx, dword [ebp - 8]
fst dword [ecx + 0x9c]
mov eax, dword [ebp - 8]
fstp dword [eax + 0xc4]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x4c]
mov dword [edx + 0xd0], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 0xa8], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 0x80], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 0x58], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 0x30], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ecx
inc dword [ebp - 0x18]
add dword [ebp - 0xc], 0x60
add dword [0x82d3c8], 0xf0
add dword [0x82d3a8], 6
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x14]
jl 0x6458ee
jmp 0x646adc
xor eax, eax
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x14]
jge 0x646adc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x5c]
mov edx, dword [eax]
cmp edx, dword [0x86cfcc]
je 0x645dce
mov ecx, dword [ebp - 0xc]
cmp dword [0x82d1f0], 0
mov eax, dword [ecx + 0x5c]
mov edx, dword [eax]
mov dword [ebp - 0x58], edx
je 0x645dce
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [0x86cfcc]
jne 0x645d8c
cmp dword [0x8fca94], 0
jne 0x645d8c
xor eax, eax
jmp 0x645dce
call fcn.00652ec8
mov dword [0x874184], 1
cmp dword [0x86cfcc], 0
jne 0x645daa
cmp dword [ebp - 0x58], 0
jne 0x645db9
cmp dword [0x86cfcc], 0
je 0x645dc3
cmp dword [ebp - 0x58], 0
jne 0x645dc3
mov dword [0x874180], 1
mov edx, dword [ebp - 0x58]
xor eax, eax
mov dword [0x86cfcc], edx
cmp dword [0x874180], 0
jne 0x645de0
cmp dword [0x874184], 0
je 0x645dee
push 1
push 0
push 0
call fcn.0063d310
add esp, 0xc
cmp dword [0x82d3a4], 1
je 0x645e29
cmp dword [0x82d3b0], 4
jne 0x645e29
mov edx, dword [0x82d3a4]
lea edx, [edx + edx*2]
lea ecx, [edx*4 + 0x6c39ec]
mov eax, dword [0x82d3ac]
mov edx, dword [ecx + eax*4]
mov ecx, dword [0x82d3a8]
add ecx, 6
cmp edx, ecx
jg 0x645fa4
cmp dword [0x82d3a8], 0
je 0x645f8a
mov eax, dword [0x82d3a4]
lea eax, [eax + eax*2]
lea edx, [eax*4 + 0x6c3a04]
mov ecx, dword [0x82d3ac]
mov eax, dword [edx + ecx*4]
cmp eax, dword [0x8741b0]
je 0x645e9c
mov edx, dword [0x82d3a4]
mov eax, dword [0x82d3ac]
lea edx, [edx + edx*2]
lea ecx, [edx*4 + 0x6c3a04]
mov edx, dword [ecx + eax*4]
mov ecx, dword [0x82d1f0]
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x164]
mov edx, dword [0x82d3a4]
lea edx, [edx + edx*2]
lea ecx, [edx*4 + 0x6c3a04]
mov eax, dword [0x82d3ac]
mov edx, dword [ecx + eax*4]
mov dword [0x8741b0], edx
cmp dword [0x82d3a4], 0
je 0x645eb0
push 0x6c3a34
call fcn.0063ed84
pop ecx
mov ecx, dword [0x82d3a4]
mov edx, dword [0x82d3ac]
cmp dword [0x82d3b0], 4
lea ecx, [ecx + ecx*2]
lea eax, [ecx*4 + 0x6c3a1c]
mov ecx, dword [eax + edx*4]
mov eax, dword [0x82d3a4]
push ecx
mov ecx, dword [0x82d3ac]
lea eax, [eax + eax*2]
lea edx, [eax*4 + 0x77be70]
mov eax, dword [edx + ecx*4 + 0xb151c]
push eax
jne 0x645eff
mov eax, dword [0x82d3a8]
mov ecx, 3
cdq
idiv ecx
jmp 0x645f5f
cmp dword [0x82d3b0], 2
jne 0x645f16
mov eax, dword [0x82d3a8]
sar eax, 1
jns 0x645f5f
adc eax, 0
jmp 0x645f5f
cmp dword [0x82d3b0], 6
jne 0x645f29
mov eax, dword [0x82d3a8]
add eax, 0xfffffffe
jmp 0x645f5f
cmp dword [0x82d3b0], 5
jne 0x645f3c
mov eax, dword [0x82d3a8]
add eax, 0xfffffffe
jmp 0x645f5f
cmp dword [0x82d3b0], 3
jne 0x645f4d
mov eax, dword [0x82d3a8]
dec eax
jmp 0x645f5f
cmp dword [0x82d3b0], 1
jne 0x645f5d
mov eax, dword [0x82d3a8]
jmp 0x645f5f
xor eax, eax
push eax
mov edx, dword [0x82d3b0]
push edx
mov ecx, dword [0x82d1f0]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14c]
cmp dword [0x82d3a4], 0
je 0x645f8a
push 0x94e85c
call fcn.0063ed84
pop ecx
xor edx, edx
mov dword [0x82d3a8], edx
mov ecx, dword [0x82d3ac]
mov eax, dword [ecx*4 + 0x82d38c]
mov dword [0x82d3c8], eax
xor edx, edx
mov dword [0x82d3a4], edx
mov dword [0x82d3b0], 4
mov ecx, dword [0x82d3c8]
mov dword [ebx], ecx
mov edx, dword [ebx]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0xc]
add eax, 0x18
mov dword [edx + 0x64], ecx
mov edx, dword [ebx]
mov dword [edx + 0x10], ecx
fld dword [eax]
fmul dword [ebp - 0x1c]
mov edx, dword [ebx]
fadd dword [ebp + 0x18]
fst dword [edx]
mov ecx, dword [ebx]
fst dword [ecx + 0x38]
mov edx, dword [ebx]
fstp dword [edx + 0x70]
fld dword [eax + 0x10]
fmul dword [ebp - 0x1c]
mov ecx, dword [ebx]
fadd dword [ebp + 0x18]
fst dword [ecx + 0x1c]
mov edx, dword [ebx]
fst dword [edx + 0x54]
mov ecx, dword [ebx]
fstp dword [ecx + 0x8c]
fld dword [eax + 4]
fmul dword [ebp - 0x20]
mov edx, dword [ebx]
fadd dword [ebp + 0x1c]
fst dword [edx + 4]
mov ecx, dword [ebx]
fst dword [ecx + 0x20]
mov edx, dword [ebx]
fstp dword [edx + 0x90]
fld dword [eax + 0x24]
fmul dword [ebp - 0x20]
mov ecx, dword [ebx]
fadd dword [ebp + 0x1c]
fst dword [ecx + 0x3c]
mov edx, dword [ebx]
fst dword [edx + 0x58]
mov ecx, dword [ebx]
fstp dword [ecx + 0x74]
mov edx, dword [ebx]
fld dword [eax + 8]
fst dword [edx + 0x14]
mov ecx, dword [ebx]
fst dword [ecx + 0x4c]
mov edx, dword [ebx]
fstp dword [edx + 0x84]
mov ecx, dword [ebx]
fld dword [eax + 0x18]
fst dword [ecx + 0x30]
mov edx, dword [ebx]
fst dword [edx + 0x68]
mov ecx, dword [ebx]
fstp dword [ecx + 0xa0]
mov edx, dword [ebx]
fld dword [eax + 0xc]
fst dword [edx + 0x18]
mov ecx, dword [ebx]
fst dword [ecx + 0x34]
mov edx, dword [ebx]
fstp dword [edx + 0xa4]
fld dword [eax + 0x2c]
mov eax, dword [ebx]
fst dword [eax + 0x50]
mov ecx, dword [ebx]
fst dword [ecx + 0x6c]
mov eax, dword [ebx]
fstp dword [eax + 0x88]
mov edx, dword [ebx]
mov ecx, dword [ebp - 0x4c]
mov dword [edx + 0x94], ecx
mov eax, dword [ebx]
mov dword [eax + 0x78], ecx
mov eax, dword [ebx]
mov dword [eax + 0x5c], ecx
mov eax, dword [ebx]
mov dword [eax + 0x40], ecx
mov eax, dword [ebx]
mov dword [eax + 0x24], ecx
mov eax, dword [ebx]
mov dword [eax + 8], ecx
inc dword [ebp - 0x18]
add dword [ebp - 0xc], 0x60
add dword [0x82d3c8], 0xa8
add dword [0x82d3a8], 6
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x14]
jl 0x645d50
jmp 0x646adc
inc edi
mov eax, dword [0x94e698]
sub eax, edi
mov edx, dword [0x94e690]
inc edx
mov ecx, dword [ebp + 0x10]
sub ecx, edx
and eax, ecx
mov edx, dword [ebp + 0xc]
inc edx
mov ecx, dword [0x94e69c]
sub ecx, edx
and eax, ecx
mov edx, dword [0x94e694]
inc edx
mov ecx, dword [ebp + 0x14]
sub ecx, edx
and eax, ecx
test eax, 0x80000000
je 0x646116
xor eax, eax
jmp 0x646ade
fld dword [0x94e6a0]
fsub dword [0x646aec]
fild dword [0x94e680]
faddp st(1)
fstp dword [ebp - 0x28]
fld dword [0x94e6a4]
fsub dword [0x646aec]
fild dword [0x94e684]
faddp st(1)
fstp dword [ebp - 0x30]
fld dword [0x94e6a8]
fsub dword [0x646aec]
fild dword [0x94e680]
faddp st(1)
fstp dword [ebp - 0x2c]
fld dword [0x94e6ac]
fsub dword [0x646aec]
fild dword [0x94e684]
mov eax, dword [0x82d3ac]
dec eax
faddp st(1)
fstp dword [ebp - 0x34]
je 0x64669c
dec eax
jne 0x646adc
xor edx, edx
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x14]
jge 0x646adc
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x5c]
mov ecx, dword [edx]
cmp ecx, dword [0x86cfcc]
je 0x646214
mov eax, dword [ebp - 0xc]
cmp dword [0x82d1f0], 0
mov edx, dword [eax + 0x5c]
mov ecx, dword [edx]
mov dword [ebp - 0x5c], ecx
je 0x646214
mov eax, dword [ebp - 0x5c]
cmp eax, dword [0x86cfcc]
jne 0x6461d2
cmp dword [0x8fca94], 0
jne 0x6461d2
xor edx, edx
jmp 0x646214
call fcn.00652ec8
mov dword [0x874184], 1
cmp dword [0x86cfcc], 0
jne 0x6461f0
cmp dword [ebp - 0x5c], 0
jne 0x6461ff
cmp dword [0x86cfcc], 0
je 0x646209
cmp dword [ebp - 0x5c], 0
jne 0x646209
mov dword [0x874180], 1
mov ecx, dword [ebp - 0x5c]
xor edx, edx
mov dword [0x86cfcc], ecx
cmp dword [0x874180], 0
jne 0x646226
cmp dword [0x874184], 0
je 0x646234
push 1
push 0
push 0
call fcn.0063d310
add esp, 0xc
mov eax, dword [0x82d3a4]
cmp eax, 1
je 0x64626b
cmp dword [0x82d3b0], 4
jne 0x64626b
lea ecx, [eax + eax*2]
lea edx, [ecx*4 + 0x6c39ec]
mov ecx, dword [0x82d3ac]
mov edx, dword [edx + ecx*4]
mov ecx, dword [0x82d3a8]
add ecx, 6
cmp edx, ecx
jg 0x6463e0
cmp dword [0x82d3a8], 0
je 0x6463c6
lea eax, [eax + eax*2]
lea eax, [eax*4 + 0x6c3a04]
mov edx, dword [0x82d3ac]
mov ecx, dword [eax + edx*4]
cmp ecx, dword [0x8741b0]
je 0x6462d8
mov eax, dword [0x82d3a4]
mov ecx, dword [0x82d3ac]
lea eax, [eax + eax*2]
lea edx, [eax*4 + 0x6c3a04]
mov eax, dword [edx + ecx*4]
mov edx, dword [0x82d1f0]
push eax
push edx
mov ecx, dword [edx]
call dword [ecx + 0x164]
mov eax, dword [0x82d3a4]
lea eax, [eax + eax*2]
lea edx, [eax*4 + 0x6c3a04]
mov ecx, dword [0x82d3ac]
mov eax, dword [edx + ecx*4]
mov dword [0x8741b0], eax
cmp dword [0x82d3a4], 0
je 0x6462ec
push 0x6c3a34
call fcn.0063ed84
pop ecx
mov edx, dword [0x82d3a4]
mov eax, dword [0x82d3ac]
cmp dword [0x82d3b0], 4
lea edx, [edx + edx*2]
lea ecx, [edx*4 + 0x6c3a1c]
mov edx, dword [ecx + eax*4]
mov ecx, dword [0x82d3a4]
push edx
mov edx, dword [0x82d3ac]
lea ecx, [ecx + ecx*2]
lea eax, [ecx*4 + 0x77be70]
mov ecx, dword [eax + edx*4 + 0xb151c]
push ecx
jne 0x64633b
mov eax, dword [0x82d3a8]
mov ecx, 3
cdq
idiv ecx
jmp 0x64639b
cmp dword [0x82d3b0], 2
jne 0x646352
mov eax, dword [0x82d3a8]
sar eax, 1
jns 0x64639b
adc eax, 0
jmp 0x64639b
cmp dword [0x82d3b0], 6
jne 0x646365
mov eax, dword [0x82d3a8]
add eax, 0xfffffffe
jmp 0x64639b
cmp dword [0x82d3b0], 5
jne 0x646378
mov eax, dword [0x82d3a8]
add eax, 0xfffffffe
jmp 0x64639b
cmp dword [0x82d3b0], 3
jne 0x646389
mov eax, dword [0x82d3a8]
dec eax
jmp 0x64639b
cmp dword [0x82d3b0], 1
jne 0x646399
mov eax, dword [0x82d3a8]
jmp 0x64639b
xor eax, eax
push eax
mov edx, dword [0x82d3b0]
push edx
mov ecx, dword [0x82d1f0]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14c]
cmp dword [0x82d3a4], 0
je 0x6463c6
push 0x94e85c
call fcn.0063ed84
pop ecx
xor edx, edx
mov dword [0x82d3a8], edx
mov ecx, dword [0x82d3ac]
mov eax, dword [ecx*4 + 0x82d38c]
mov dword [0x82d3c8], eax
xor edx, edx
mov dword [0x82d3a4], edx
mov dword [0x82d3b0], 4
mov ecx, dword [0x82d3c8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
fild dword [eax + 0x20]
fmul dword [ebp - 0x1c]
fdivr dword [0x646af0]
fstp dword [ebp - 0x38]
fild dword [eax + 0x24]
fmul dword [ebp - 0x20]
fdivr dword [0x646af0]
fstp dword [ebp - 0x3c]
mov ecx, dword [0x82d3bc]
mov eax, dword [0x82d3c0]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x48]
add eax, 0x18
mov dword [ecx + 0x88], ebx
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], ebx
fld dword [eax]
fmul dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
fadd dword [ebp + 0x18]
fst dword [ecx]
mov ecx, dword [ebp - 8]
fstp dword [ecx + 0x50]
fld dword [eax + 0x10]
fmul dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
fadd dword [ebp + 0x18]
fst dword [ecx + 0x28]
mov ecx, dword [ebp - 8]
fstp dword [ecx + 0x78]
fld dword [eax + 4]
fmul dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
fadd dword [ebp + 0x1c]
fst dword [ecx + 4]
mov ecx, dword [ebp - 8]
fstp dword [ecx + 0x2c]
fld dword [eax + 0x24]
fmul dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
fadd dword [ebp + 0x1c]
fst dword [ecx + 0x54]
mov ecx, dword [ebp - 8]
fstp dword [ecx + 0x7c]
fild dword [0x94e7d4]
mov ecx, dword [ebp - 8]
fadd dword [eax]
fmul dword [0x82d3bc]
fst dword [ecx + 0x18]
mov ecx, dword [ebp - 8]
fstp dword [ecx + 0x68]
fild dword [0x94e7d4]
mov ecx, dword [ebp - 8]
fadd dword [eax + 0x10]
fmul dword [0x82d3bc]
fst dword [ecx + 0x40]
mov ecx, dword [ebp - 8]
fstp dword [ecx + 0x90]
fild dword [0x94e7d8]
mov ecx, dword [ebp - 8]
fadd dword [eax + 4]
fmul dword [0x82d3c0]
fst dword [ecx + 0x1c]
mov ecx, dword [ebp - 8]
fstp dword [ecx + 0x44]
fild dword [0x94e7d8]
mov ecx, dword [ebp - 8]
fadd dword [eax + 0x24]
fmul dword [0x82d3c0]
fst dword [ecx + 0x6c]
mov ecx, dword [ebp - 8]
fstp dword [ecx + 0x94]
mov ecx, dword [ebp - 8]
fld dword [eax + 8]
fst dword [ecx + 0x20]
mov ecx, dword [ebp - 8]
fstp dword [ecx + 0x70]
mov ecx, dword [ebp - 8]
fld dword [eax + 0x18]
fst dword [ecx + 0x48]
mov ecx, dword [ebp - 8]
fstp dword [ecx + 0x98]
mov ecx, dword [ebp - 8]
fld dword [eax + 0xc]
fst dword [ecx + 0x24]
mov ecx, dword [ebp - 8]
fstp dword [ecx + 0x4c]
fld dword [eax + 0x2c]
mov eax, dword [ebp - 8]
xor ecx, ecx
fst dword [eax + 0x74]
mov eax, dword [ebp - 8]
fstp dword [eax + 0x9c]
fld dword [edx]
fcomp dword [ebp - 0x28]
fnstsw ax
sahf
jae 0x64657f
fld dword [ebp - 0x28]
fsub dword [edx]
fmul dword [ebp - 0x38]
fadd dword [edx + 0x20]
fstp dword [edx + 0x20]
fld dword [ebp - 0x28]
fsub dword [edx]
fmul dword [ebp - 0x40]
fadd dword [edx + 0x18]
fstp dword [edx + 0x18]
mov eax, dword [ebp - 0x28]
mov dword [edx], eax
jmp 0x6465aa
fld dword [edx]
fcomp dword [ebp - 0x2c]
fnstsw ax
sahf
jbe 0x6465aa
fld dword [edx]
fsub dword [ebp - 0x2c]
fmul dword [ebp - 0x38]
fsubr dword [edx + 0x20]
fstp dword [edx + 0x20]
fld dword [edx]
fsub dword [ebp - 0x2c]
fmul dword [ebp - 0x40]
fsubr dword [edx + 0x18]
fstp dword [edx + 0x18]
mov eax, dword [ebp - 0x2c]
mov dword [edx], eax
fld dword [edx + 4]
fcomp dword [ebp - 0x30]
fnstsw ax
sahf
jae 0x6465db
fld dword [ebp - 0x30]
fsub dword [edx + 4]
fmul dword [ebp - 0x3c]
fadd dword [edx + 0x24]
fstp dword [edx + 0x24]
fld dword [ebp - 0x30]
fsub dword [edx + 4]
fmul dword [ebp - 0x44]
fadd dword [edx + 0x1c]
fstp dword [edx + 0x1c]
mov eax, dword [ebp - 0x30]
mov dword [edx + 4], eax
jmp 0x64660a
fld dword [edx + 4]
fcomp dword [ebp - 0x34]
fnstsw ax
sahf
jbe 0x64660a
fld dword [edx + 4]
fsub dword [ebp - 0x34]
fmul dword [ebp - 0x3c]
fsubr dword [edx + 0x24]
fstp dword [edx + 0x24]
fld dword [edx + 4]
fsub dword [ebp - 0x34]
fmul dword [ebp - 0x44]
fsubr dword [edx + 0x1c]
fstp dword [edx + 0x1c]
mov eax, dword [ebp - 0x34]
mov dword [edx + 4], eax
inc ecx
add edx, 0x28
cmp ecx, 4
jl 0x646552
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 8]
lea esi, [edx + 0x50]
lea edi, [ecx + 0xa0]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
lea esi, [eax + 0x28]
lea edi, [edx + 0xc8]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x4c]
mov dword [eax + 0xd0], edx
mov eax, dword [ebp - 8]
mov dword [eax + 0xa8], edx
mov eax, dword [ebp - 8]
mov dword [eax + 0x80], edx
mov eax, dword [ebp - 8]
mov dword [eax + 0x58], edx
mov eax, dword [ebp - 8]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 8]
mov dword [eax + 8], edx
add dword [0x82d3c8], 0xf0
add dword [0x82d3a8], 6
inc dword [ebp - 0x18]
add dword [ebp - 0xc], 0x60
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x14]
jl 0x646196
jmp 0x646adc
xor eax, eax
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x14]
jge 0x646adc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x5c]
mov edx, dword [eax]
cmp edx, dword [0x86cfcc]
je 0x64672b
mov ecx, dword [ebp - 0xc]
cmp dword [0x82d1f0], 0
mov eax, dword [ecx + 0x5c]
mov edx, dword [eax]
mov dword [ebp - 0x60], edx
je 0x64672b
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [0x86cfcc]
jne 0x6466e9
cmp dword [0x8fca94], 0
jne 0x6466e9
xor eax, eax
jmp 0x64672b
call fcn.00652ec8
mov dword [0x874184], 1
cmp dword [0x86cfcc], 0
jne 0x646707
cmp dword [ebp - 0x60], 0
jne 0x646716
cmp dword [0x86cfcc], 0
je 0x646720
cmp dword [ebp - 0x60], 0
jne 0x646720
mov dword [0x874180], 1
mov edx, dword [ebp - 0x60]
xor eax, eax
mov dword [0x86cfcc], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x5c]
fild dword [eax + 0x20]
fmul dword [ebp - 0x1c]
fdivr dword [0x646af0]
fstp dword [ebp - 0x38]
fild dword [eax + 0x24]
fmul dword [ebp - 0x20]
fdivr dword [0x646af0]
fstp dword [ebp - 0x3c]
cmp dword [0x874180], 0
jne 0x646761
cmp dword [0x874184], 0
je 0x64676f
push 1
push 0
push 0
call fcn.0063d310
add esp, 0xc
mov eax, dword [0x82d3a4]
cmp eax, 1
je 0x6467a6
cmp dword [0x82d3b0], 4
jne 0x6467a6
lea edx, [eax + eax*2]
lea ecx, [edx*4 + 0x6c39ec]
mov edx, dword [0x82d3ac]
mov ecx, dword [ecx + edx*4]
mov edx, dword [0x82d3a8]
add edx, 6
cmp ecx, edx
jg 0x64691b
cmp dword [0x82d3a8], 0
je 0x646901
lea eax, [eax + eax*2]
lea ecx, [eax*4 + 0x6c3a04]
mov eax, dword [0x82d3ac]
mov edx, dword [ecx + eax*4]
cmp edx, dword [0x8741b0]
je 0x646814
mov ecx, dword [0x82d3a4]
mov edx, dword [0x82d3ac]
lea ecx, [ecx + ecx*2]
lea eax, [ecx*4 + 0x6c3a04]
mov ecx, dword [eax + edx*4]
mov eax, dword [0x82d1f0]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x164]
mov ecx, dword [0x82d3a4]
lea ecx, [ecx + ecx*2]
lea eax, [ecx*4 + 0x6c3a04]
mov edx, dword [0x82d3ac]
mov ecx, dword [eax + edx*4]
mov dword [0x8741b0], ecx
cmp dword [0x82d3a4], 0
je 0x646828
push 0x6c3a34
call fcn.0063ed84
pop ecx
mov eax, dword [0x82d3a4]
mov ecx, dword [0x82d3ac]
cmp dword [0x82d3b0], 4
lea eax, [eax + eax*2]
lea edx, [eax*4 + 0x6c3a1c]
mov eax, dword [edx + ecx*4]
mov edx, dword [0x82d3a4]
push eax
mov eax, dword [0x82d3ac]
lea edx, [edx + edx*2]
lea ecx, [edx*4 + 0x77be70]
mov edx, dword [ecx + eax*4 + 0xb151c]
push edx
jne 0x646876
mov eax, dword [0x82d3a8]
mov ecx, 3
cdq
idiv ecx
jmp 0x6468d6
cmp dword [0x82d3b0], 2
jne 0x64688d
mov eax, dword [0x82d3a8]
sar eax, 1
jns 0x6468d6
adc eax, 0
jmp 0x6468d6
cmp dword [0x82d3b0], 6
jne 0x6468a0
mov eax, dword [0x82d3a8]
add eax, 0xfffffffe
jmp 0x6468d6
cmp dword [0x82d3b0], 5
jne 0x6468b3
mov eax, dword [0x82d3a8]
add eax, 0xfffffffe
jmp 0x6468d6
cmp dword [0x82d3b0], 3
jne 0x6468c4
mov eax, dword [0x82d3a8]
dec eax
jmp 0x6468d6
cmp dword [0x82d3b0], 1
jne 0x6468d4
mov eax, dword [0x82d3a8]
jmp 0x6468d6
xor eax, eax
push eax
mov edx, dword [0x82d3b0]
push edx
mov ecx, dword [0x82d1f0]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14c]
cmp dword [0x82d3a4], 0
je 0x646901
push 0x94e85c
call fcn.0063ed84
pop ecx
xor edx, edx
mov dword [0x82d3a8], edx
mov ecx, dword [0x82d3ac]
mov eax, dword [ecx*4 + 0x82d38c]
mov dword [0x82d3c8], eax
xor edx, edx
mov dword [0x82d3a4], edx
mov dword [0x82d3b0], 4
mov ecx, dword [0x82d3c8]
mov dword [ebx], ecx
mov edx, dword [ebx]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0xc]
add eax, 0x18
mov dword [edx + 0x64], ecx
mov edx, dword [ebx]
mov dword [edx + 0x10], ecx
fld dword [eax]
fmul dword [ebp - 0x1c]
mov edx, dword [ebx]
fadd dword [ebp + 0x18]
fst dword [edx]
mov ecx, dword [ebx]
fstp dword [ecx + 0x38]
fld dword [eax + 0x10]
fmul dword [ebp - 0x1c]
mov edx, dword [ebx]
fadd dword [ebp + 0x18]
fst dword [edx + 0x1c]
mov ecx, dword [ebx]
fstp dword [ecx + 0x54]
fld dword [eax + 4]
fmul dword [ebp - 0x20]
mov edx, dword [ebx]
fadd dword [ebp + 0x1c]
fst dword [edx + 4]
mov ecx, dword [ebx]
fstp dword [ecx + 0x20]
fld dword [eax + 0x24]
fmul dword [ebp - 0x20]
mov edx, dword [ebx]
fadd dword [ebp + 0x1c]
fst dword [edx + 0x3c]
mov ecx, dword [ebx]
fstp dword [ecx + 0x58]
mov edx, dword [ebx]
fld dword [eax + 8]
fst dword [edx + 0x14]
mov ecx, dword [ebx]
fstp dword [ecx + 0x4c]
mov edx, dword [ebx]
fld dword [eax + 0x18]
fst dword [edx + 0x30]
mov ecx, dword [ebx]
fstp dword [ecx + 0x68]
mov edx, dword [ebx]
fld dword [eax + 0xc]
fst dword [edx + 0x18]
mov ecx, dword [ebx]
fstp dword [ecx + 0x34]
fld dword [eax + 0x2c]
mov eax, dword [ebx]
xor ecx, ecx
fst dword [eax + 0x50]
mov eax, dword [ebx]
fstp dword [eax + 0x6c]
mov edx, dword [ebx]
fld dword [edx]
fcomp dword [ebp - 0x28]
fnstsw ax
sahf
jae 0x6469ef
mov edx, dword [ebx]
mov eax, dword [ebx]
fld dword [ebp - 0x28]
fsub dword [edx]
fmul dword [ebp - 0x38]
fadd dword [eax + 0x14]
fstp dword [eax + 0x14]
mov edx, dword [ebx]
mov eax, dword [ebp - 0x28]
mov dword [edx], eax
jmp 0x646a14
mov edx, dword [ebx]
fld dword [edx]
fcomp dword [ebp - 0x2c]
fnstsw ax
sahf
jbe 0x646a14
mov edx, dword [ebx]
fld dword [edx]
fsub dword [ebp - 0x2c]
fmul dword [ebp - 0x38]
mov eax, dword [ebx]
fsubr dword [eax + 0x14]
fstp dword [eax + 0x14]
mov edx, dword [ebx]
mov eax, dword [ebp - 0x2c]
mov dword [edx], eax
mov edx, dword [ebx]
fld dword [edx + 4]
fcomp dword [ebp - 0x30]
fnstsw ax
sahf
jae 0x646a3e
mov edx, dword [ebx]
mov eax, dword [ebx]
fld dword [ebp - 0x30]
fsub dword [edx + 4]
fmul dword [ebp - 0x3c]
fadd dword [eax + 0x18]
fstp dword [eax + 0x18]
mov edx, dword [ebx]
mov eax, dword [ebp - 0x30]
mov dword [edx + 4], eax
jmp 0x646a66
mov edx, dword [ebx]
fld dword [edx + 4]
fcomp dword [ebp - 0x34]
fnstsw ax
sahf
jbe 0x646a66
mov edx, dword [ebx]
fld dword [edx + 4]
fsub dword [ebp - 0x34]
fmul dword [ebp - 0x3c]
mov eax, dword [ebx]
fsubr dword [eax + 0x18]
fstp dword [eax + 0x18]
mov edx, dword [ebx]
mov eax, dword [ebp - 0x34]
mov dword [edx + 4], eax
inc ecx
add dword [ebx], 0x1c
cmp ecx, 4
jl 0x6469c8
mov edx, dword [ebx]
mov ecx, dword [ebx]
mov edi, ecx
mov ecx, 7
lea esi, [edx - 0x38]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
mov edx, dword [ebx]
mov ecx, 7
lea edi, [edx + 0x1c]
lea esi, [eax - 0x54]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
mov edx, dword [ebp - 0x4c]
mov dword [eax + 0x94], edx
mov eax, dword [ebx]
mov dword [eax + 0x78], edx
mov eax, dword [ebx]
mov dword [eax + 0x5c], edx
mov eax, dword [ebx]
mov dword [eax + 0x40], edx
mov eax, dword [ebx]
mov dword [eax + 0x24], edx
mov eax, dword [ebx]
mov dword [eax + 8], edx
inc dword [ebp - 0x18]
add dword [ebp - 0xc], 0x60
add dword [0x82d3c8], 0xa8
add dword [0x82d3a8], 6
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x14]
jl 0x6466ad
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret