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

Disassembly:
sub esp, 0x78
mov ecx, dword [0x7876d4]
push ebx
push ebp
mov ebp, dword [esp + 0x84]
push esi
push edi
mov eax, dword [ebp + 0x10]
mov eax, dword [ecx + eax]
fld dword [eax + 0x10]
fmul dword [eax + 0xc]
mov ebx, dword [eax]
test ebx, ebx
fstp dword [esp + 0x20]
jne 0x675b75
mov edx, dword [0x7870c8]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
call fcn.00644670
mov edi, eax
call fcn.00644670
push edi
push 0x100
mov esi, eax
call fcn.0065f6c0
push edi
push esi
call fcn.00643f90
mov eax, dword [ebx + 0x90]
lea ecx, [ebx + 0x90]
add esp, 0x10
cmp eax, ecx
je 0x675bbb
cmp byte [eax - 8], 3
lea edx, [eax - 8]
je 0x675d47
mov eax, dword [eax]
cmp eax, ecx
jne 0x675ba8
push ebx
call fcn.00644dd0
add eax, 0x30
push esi
push 1
push eax
lea eax, [esp + 0x74]
push eax
call fcn.006471b0
add esp, 0x14
push esi
call fcn.00644640
push edi
call fcn.00644640
mov eax, dword [ebp + 0x14]
add esp, 8
test al, 0x10
mov dword [esp + 0x14], 3
je 0x675bfb
mov dword [esp + 0x14], 6
test al, 0x40
je 0x675c03
inc dword [esp + 0x14]
mov ecx, dword [ebp + 4]
lea esi, [esp + 0x10]
push 0x800
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x20]
imul esi, ecx
push esi
mov esi, dword [ebp + 0x24]
imul esi, ecx
mov edx, dword [eax]
push esi
push eax
call dword [edx + 0x2c]
test eax, eax
jl 0x6764a0
mov eax, dword [ebp + 0x1c]
test eax, eax
mov eax, dword [ebp + 8]
je 0x6760f8
mov ecx, dword [0x7870c8]
push eax
call dword [ecx + 0x130]
mov ecx, dword [ebp + 8]
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esp + 0x18]
and ecx, 3
push 0x800
rep stosb byte es:[edi], al
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
push edx
mov dword [esp + 0x30], ebx
mov ecx, dword [eax]
lea edx, [esi + esi]
push edx
push 0
push eax
mov dword [esp + 0x44], esi
call dword [ecx + 0x2c]
xor ecx, ecx
test esi, esi
mov dword [esp + 0x2c], ecx
jle 0x6760da
mov dword [esp + 0x1c], 4
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
xor edx, edx
mov dx, word [edi + eax - 4]
cmp byte [edx + ebx], 0
jne 0x6760c2
mov eax, dword [ebp + 0x18]
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp eax, 4
jne 0x675da3
mov ebx, dword [ebp + 4]
mov edi, 3
mov eax, ebx
imul eax, edx
mov edx, dword [esp + 0x10]
shr eax, 2
lea esi, [edx + eax*4]
mov eax, 0x55555556
imul ecx
mov eax, edx
add ecx, 2
shr eax, 0x1f
add edx, eax
lea eax, [ecx - 1]
lea edx, [edx + edx*2]
mov dword [esp + 0x24], edx
cdq
idiv edi
mov edi, dword [esp + 0x24]
xor eax, eax
add edx, edi
mov edi, dword [esp + 0x18]
mov ax, word [edi + edx*2]
mov edx, dword [esp + 0x10]
imul eax, ebx
shr eax, 2
lea edi, [edx + eax*4]
mov eax, ecx
cdq
mov ecx, 3
idiv ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
add edx, eax
xor eax, eax
mov ax, word [ecx + edx*2]
mov edx, dword [esp + 0x10]
imul eax, ebx
shr eax, 2
lea ebx, [edx + eax*4]
jmp 0x675e27
test edx, edx
je 0x675bbb
mov dl, byte [edx + 1]
cmp dl, 1
je 0x675d65
cmp dl, 0x81
je 0x675d65
cmp dl, 0x82
jne 0x675bbb
push ebx
call fcn.00644dd0
fld dword [eax + 0x20]
add eax, 0x20
push esi
fchs
fstp dword [esp + 0x78]
fld dword [eax + 4]
fchs
fstp dword [esp + 0x7c]
fld dword [eax + 8]
lea ecx, [esp + 0x78]
push 1
lea edx, [esp + 0x70]
push ecx
fchs
fstp dword [esp + 0x88]
push edx
call fcn.006471c0
jmp 0x675bd2
cmp eax, 5
jne 0x675e27
mov eax, dword [esp + 0x1c]
cmp eax, 8
jge 0x675dce
and ecx, 0x80000001
jns 0x675dbe
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x675dc7
mov ecx, eax
lea ebx, [eax - 2]
jmp 0x675deb
lea ecx, [eax - 2]
mov ebx, eax
jmp 0x675deb
and ecx, 0x80000001
jns 0x675ddb
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x675de5
lea ecx, [eax - 6]
lea ebx, [eax - 8]
jmp 0x675deb
lea ecx, [eax - 8]
lea ebx, [eax - 6]
mov eax, dword [ebp + 4]
xor edi, edi
mov esi, eax
imul esi, edx
mov edx, dword [esp + 0x10]
shr esi, 2
lea esi, [edx + esi*4]
mov edx, dword [esp + 0x18]
mov di, word [ecx + edx]
mov ecx, dword [esp + 0x10]
imul edi, eax
shr edi, 2
lea edi, [ecx + edi*4]
xor ecx, ecx
mov cx, word [ebx + edx]
mov edx, dword [esp + 0x10]
imul ecx, eax
shr ecx, 2
lea ebx, [edx + ecx*4]
test byte [ebp + 0x14], 0x10
je 0x675e44
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
jmp 0x675e5c
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
fld dword [esp + 0x64]
fsub dword [esi]
push ecx
fstp dword [esp + 0x38]
fld dword [esi + 4]
fsubr dword [esp + 0x6c]
fstp dword [esp + 0x3c]
fld dword [esi + 8]
fsubr dword [esp + 0x70]
fstp dword [esp + 0x40]
fld dword [esp + 0x3c]
fmul dword [esp + 0x3c]
fld dword [esp + 0x38]
fmul dword [esp + 0x38]
faddp st(1)
fld dword [esp + 0x40]
fmul dword [esp + 0x40]
faddp st(1)
fstp dword [esp]
call fcn.00647150
fld dword [esp + 0x38]
fmul st(1)
mov eax, dword [esp + 0x18]
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fmul st(1)
fstp dword [esp + 0x3c]
fmul dword [esp + 0x40]
fstp dword [esp + 0x40]
fld dword [edi]
fsub dword [esi]
fld dword [edi + 4]
fsub dword [esi + 4]
fld dword [edi + 8]
fsub dword [esi + 8]
fstp dword [esp + 0x88]
fld dword [ebx]
fsub dword [esi]
fstp dword [esp + 0x5c]
fld dword [ebx + 4]
fsub dword [esi + 4]
fstp dword [esp + 0x60]
fld dword [ebx + 8]
fsub dword [esi + 8]
fstp dword [esp + 0x64]
fld dword [ebx + eax*4 + 4]
fsub dword [esi + eax*4 + 4]
fst dword [esp + 0x28]
fmul st(2)
fstp dword [esp + 0x80]
fld dword [esp + 0x28]
fmul st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x28]
fmul dword [esp + 0x88]
fld dword [edi + eax*4 + 4]
fsub dword [esi + eax*4 + 4]
fld dword [esp + 0x5c]
fmul st(1)
fld st(1)
fmul dword [esp + 0x60]
fstp dword [esp + 0x60]
fxch st(1)
fmul dword [esp + 0x64]
fstp dword [esp + 0x64]
fld dword [esp + 0x80]
fsub st(1)
fstp dword [esp + 0x44]
fstp st(0)
fxch st(1)
fsub dword [esp + 0x60]
fstp dword [esp + 0x48]
fsub dword [esp + 0x64]
fstp dword [esp + 0x4c]
fld dword [esp + 0x48]
fmul dword [esp + 0x48]
fld dword [esp + 0x44]
fmul dword [esp + 0x44]
faddp st(1)
fld dword [esp + 0x4c]
fmul dword [esp + 0x4c]
faddp st(1)
fstp dword [esp]
call fcn.00647150
fld dword [esp + 0x44]
fmul st(1)
fld dword [esp + 0x48]
fmul st(2)
fld dword [esp + 0x4c]
fmul st(3)
fld st(1)
fmul dword [esp + 0x58]
add esp, 4
fld st(1)
fmul dword [esp + 0x50]
fsubp st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x4c]
fmul st(1)
fld st(3)
fmul dword [esp + 0x54]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
fsubp st(1)
xor eax, eax
mov ax, word [edx + ecx - 4]
fstp dword [esp + 0x74]
fld st(2)
fmul dword [esp + 0x50]
lea ecx, [eax + eax*4]
fld st(2)
fmul dword [esp + 0x4c]
lea eax, [eax + ecx*2]
mov ecx, dword [esp + 0x90]
fsubp st(1)
lea eax, [ecx + eax*4]
mov ecx, dword [esi]
fstp dword [esp + 0x78]
fxch st(1)
fmul dword [esp + 0x38]
mov dword [eax], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 8]
fxch st(2)
fmul dword [esp + 0x34]
mov dword [eax + 8], ecx
mov cl, byte [ebp + 0x14]
faddp st(2)
test cl, 0x10
fmul dword [esp + 0x3c]
faddp st(1)
fstp st(1)
fld dword [esp + 0x74]
fmul dword [esp + 0x38]
fld dword [esp + 0x70]
fmul dword [esp + 0x34]
faddp st(1)
fld dword [esp + 0x78]
fmul dword [esp + 0x3c]
faddp st(1)
je 0x67605b
mov ecx, dword [esi + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x14], ecx
mov cl, byte [ebp + 0x14]
test cl, 0x40
je 0x676076
mov ecx, dword [esi + 0x18]
mov dword [eax + 0x18], ecx
jmp 0x67607d
xor ecx, ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov cl, byte [ebp + 0x14]
test cl, 0x40
je 0x676076
mov ecx, dword [esi + 0xc]
mov dword [eax + 0x18], ecx
jmp 0x67607d
mov dword [eax + 0x18], 0xffffffff
mov ecx, dword [esp + 0x14]
fxch st(1)
fmul dword [esp + 0x20]
mov edi, dword [esi + ecx*4]
mov dword [eax + 0x1c], edi
mov edi, dword [esi + ecx*4 + 4]
mov dword [eax + 0x20], edi
fsubr dword [esi + ecx*4]
fstp dword [eax + 0x24]
fmul dword [esp + 0x20]
fsubr dword [esi + ecx*4 + 4]
mov esi, dword [esp + 0x30]
fstp dword [eax + 0x28]
mov ecx, dword [esp + 0x18]
xor eax, eax
mov ax, word [edx + ecx - 4]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov ebx, edx
mov byte [eax + edx], 1
mov edx, dword [esp + 0x1c]
inc ecx
add edx, 2
cmp ecx, esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], edx
jl 0x675c9e
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [0x7870c8]
push ebx
call dword [edx + 0x134]
add esp, 4
jmp 0x676496
test eax, eax
mov dword [esp + 0x30], eax
jle 0x676496
mov eax, dword [esp + 0x90]
mov edi, 2
lea ebx, [eax + 0xc]
xor eax, eax
xor esi, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x18]
cmp eax, 4
jne 0x67619c
mov eax, dword [ebp + 4]
lea ecx, [edi - 2]
imul ecx, eax
mov edx, dword [esp + 0x10]
mov eax, 0x55555556
shr ecx, 2
lea esi, [edx + ecx*4]
lea ecx, [edi - 2]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [edi - 1]
lea ecx, [edx + edx*2]
mov dword [esp + 0x2c], ecx
mov ecx, 3
cdq
idiv ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
add edx, ecx
imul edx, dword [ebp + 4]
shr edx, 2
lea ecx, [eax + edx*4]
mov eax, edi
mov dword [esp + 0x24], ecx
mov ecx, 3
cdq
idiv ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
add edx, ecx
imul edx, dword [ebp + 4]
shr edx, 2
lea ecx, [eax + edx*4]
mov dword [esp + 0x1c], ecx
jmp 0x676220
cmp eax, 5
jne 0x676220
lea eax, [edi - 2]
cmp eax, 2
jge 0x6761c7
and eax, 0x80000001
jns 0x6761b5
dec eax
or eax, 0xfffffffe
inc eax
je 0x6761be
mov ecx, edi
lea edx, [edi - 1]
jmp 0x6761e7
lea ecx, [edi - 1]
mov dword [esp + 0x1c], edi
jmp 0x6761eb
and eax, 0x80000001
jns 0x6761d3
dec eax
or eax, 0xfffffffe
inc eax
je 0x6761e1
lea eax, [edi - 4]
lea ecx, [edi - 3]
mov dword [esp + 0x1c], eax
jmp 0x6761eb
lea ecx, [edi - 4]
lea edx, [edi - 3]
mov dword [esp + 0x1c], edx
mov eax, dword [ebp + 4]
lea edx, [edi - 2]
imul edx, eax
mov esi, dword [esp + 0x10]
shr edx, 2
lea esi, [esi + edx*4]
mov edx, eax
imul eax, dword [esp + 0x1c]
imul edx, ecx
mov ecx, dword [esp + 0x10]
shr edx, 2
shr eax, 2
lea edx, [ecx + edx*4]
lea eax, [ecx + eax*4]
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], eax
test byte [ebp + 0x14], 0x10
je 0x67623d
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
jmp 0x676255
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
fld dword [esp + 0x64]
fsub dword [esi]
push ecx
fstp dword [esp + 0x38]
fld dword [esi + 4]
fsubr dword [esp + 0x6c]
fstp dword [esp + 0x3c]
fld dword [esi + 8]
fsubr dword [esp + 0x70]
fstp dword [esp + 0x40]
fld dword [esp + 0x3c]
fmul dword [esp + 0x3c]
fld dword [esp + 0x38]
fmul dword [esp + 0x38]
faddp st(1)
fld dword [esp + 0x40]
fmul dword [esp + 0x40]
faddp st(1)
fstp dword [esp]
call fcn.00647150
fld dword [esp + 0x38]
fmul st(1)
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fmul st(1)
fstp dword [esp + 0x3c]
fmul dword [esp + 0x40]
fstp dword [esp + 0x40]
fld dword [eax]
fsub dword [esi]
fld dword [eax + 4]
fsub dword [esi + 4]
fld dword [eax + 8]
fsub dword [esi + 8]
fstp dword [esp + 0x88]
fld dword [ecx]
fsub dword [esi]
fstp dword [esp + 0x5c]
fld dword [ecx + 4]
fsub dword [esi + 4]
fstp dword [esp + 0x60]
fld dword [ecx + 8]
fsub dword [esi + 8]
fstp dword [esp + 0x64]
fld dword [ecx + edx*4 + 4]
fsub dword [esi + edx*4 + 4]
fst dword [esp + 0x28]
fmul st(2)
fstp dword [esp + 0x80]
fld dword [esp + 0x28]
fmul st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x28]
fmul dword [esp + 0x88]
fld dword [eax + edx*4 + 4]
fsub dword [esi + edx*4 + 4]
fld dword [esp + 0x5c]
fmul st(1)
fld st(1)
fmul dword [esp + 0x60]
fstp dword [esp + 0x60]
fxch st(1)
fmul dword [esp + 0x64]
fstp dword [esp + 0x64]
fld dword [esp + 0x80]
fsub st(1)
fstp dword [esp + 0x50]
fstp st(0)
fxch st(1)
fsub dword [esp + 0x60]
fstp dword [esp + 0x54]
fsub dword [esp + 0x64]
fstp dword [esp + 0x58]
fld dword [esp + 0x54]
fmul dword [esp + 0x54]
fld dword [esp + 0x50]
fmul dword [esp + 0x50]
faddp st(1)
fld dword [esp + 0x58]
fmul dword [esp + 0x58]
faddp st(1)
fstp dword [esp]
call fcn.00647150
fld dword [esp + 0x50]
fmul st(1)
fld dword [esp + 0x54]
fmul st(2)
fld dword [esp + 0x58]
fmul st(3)
fld st(1)
fmul dword [esp + 0x4c]
add esp, 4
fld st(1)
fmul dword [esp + 0x44]
fsubp st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x40]
fmul st(1)
mov ecx, dword [esi]
mov dword [ebx - 0xc], ecx
mov edx, dword [esi + 4]
fld st(3)
fmul dword [esp + 0x48]
mov dword [ebx - 8], edx
mov eax, dword [esi + 8]
fsubp st(1)
mov dword [ebx - 4], eax
mov al, byte [ebp + 0x14]
test al, 0x10
fstp dword [esp + 0x74]
fld st(2)
fmul dword [esp + 0x44]
fld st(2)
fmul dword [esp + 0x40]
fsubp st(1)
fstp dword [esp + 0x78]
fxch st(1)
fmul dword [esp + 0x38]
fxch st(2)
fmul dword [esp + 0x34]
faddp st(2)
fmul dword [esp + 0x3c]
faddp st(1)
fstp st(1)
fld dword [esp + 0x74]
fmul dword [esp + 0x38]
fld dword [esp + 0x70]
fmul dword [esp + 0x34]
faddp st(1)
fld dword [esp + 0x78]
fmul dword [esp + 0x3c]
faddp st(1)
je 0x67643b
mov ecx, dword [esi + 0xc]
mov dword [ebx], ecx
mov edx, dword [esi + 0x10]
mov dword [ebx + 4], edx
mov eax, dword [esi + 0x14]
mov dword [ebx + 8], eax
mov al, byte [ebp + 0x14]
test al, 0x40
je 0x676454
mov ecx, dword [esi + 0x18]
mov dword [ebx + 0xc], ecx
jmp 0x67645b
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov al, byte [ebp + 0x14]
test al, 0x40
je 0x676454
mov edx, dword [esi + 0xc]
mov dword [ebx + 0xc], edx
jmp 0x67645b
mov dword [ebx + 0xc], 0xffffffff
mov eax, dword [esp + 0x14]
inc edi
fxch st(1)
fmul dword [esp + 0x20]
mov ecx, dword [esi + eax*4]
mov dword [ebx + 0x10], ecx
mov edx, dword [esi + eax*4 + 4]
mov dword [ebx + 0x14], edx
mov ecx, dword [esp + 0x30]
fsubr dword [esi + eax*4]
add ebx, 0x2c
fstp dword [ebx - 0x14]
fmul dword [esp + 0x20]
fsubr dword [esi + eax*4 + 4]
lea eax, [edi - 2]
cmp eax, ecx
fstp dword [ebx - 0x10]
jl 0x676113
mov ebp, dword [ebp + 0x20]
push ebp
mov ecx, dword [ebp]
call dword [ecx + 0x30]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x78
ret