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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80
cmp dword [0x453c0354], 0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x38], 0x7fffffff
mov dword [esp + 0x40], 0
jne 0x1000727d
cmp dword [0x453c08dc], 0
je 0x1000727d
cmp dword [0x453c0364], 0
je 0x100066d5
push 0x452f8634
push 0x3ea
call fcn.100285e0
add esp, 8
mov eax, dword [0x453c059c]
mov ecx, dword [0x453e0d24]
push 0
push eax
push ecx
call fcn.10028b60
call fcn.10002b60
mov edx, dword [0x453e0d24]
push 1
push 6
push edx
mov word [0x453c0590], ax
call fcn.10028b60
add esp, 0x18
push 0
call fcn.10002bb0
add eax, dword [0x453c059c]
push eax
mov eax, dword [0x453e0d24]
push eax
call fcn.10028b60
add esp, 0xc
call fcn.10002bb0
mov ebp, eax
call fcn.10002bb0
test ebp, ebp
je 0x1000727d
jmp 0x10006740
sub ebp, 1
mov dword [esp + 0x44], ebp
call fcn.10002bb0
mov edi, eax
call fcn.10002bb0
mov ebx, eax
call fcn.10002bb0
mov ecx, dword [0x453e0d24]
push ecx
mov esi, eax
call fcn.10028cd0
mov edx, dword [0x453c059c]
push 0
add edx, esi
mov dword [esp + 0x50], eax
mov eax, dword [0x453e0d24]
push edx
push eax
call fcn.10028b60
add esp, 0x10
cmp edi, 0x419
jne 0x10006846
call fcn.10002bb0
xor esi, esi
call fcn.10002bb0
mov dword [esp + 0x30], eax
fld dword [esp + 0x30]
fstp dword [esp + esi*4 + 0x6c]
add esi, 1
cmp esi, 8
jl 0x10006798
fld dword [0x453e0d18]
xor esi, esi
fsub dword [esp + 0x88]
mov dword [esp + 0x24], esi
fmul dword [esp + 0x84]
fadd dword [esp + 0x78]
fadd dword [0x452f8510]
fstp dword [esp + 0x78]
lea esp, [esp]
fild dword [esp + 0x24]
fld dword [esp + 0x80]
fmul st(1)
fadd dword [esp + 0x78]
fmulp st(1)
fadd dword [esp + 0x70]
fcom dword [0x452f8630]
fnstsw ax
test ah, 5
jp 0x1000681d
fld dword [0x452f8514]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x10006825
fstp st(0)
fld dword [0x452f8514]
jmp 0x10006825
fstp st(0)
fld dword [0x452f8630]
call section..text
mov word [esi*2 + 0x453c0ae0], ax
add esi, 1
cmp esi, 0x10000
mov dword [esp + 0x24], esi
jl 0x100067e0
jmp 0x100068fc
cmp edi, 0x41a
jne 0x1000695f
xor esi, esi
call fcn.10002bb0
mov dword [esp + 0x30], eax
fld dword [esp + 0x30]
fstp dword [esp + esi*4 + 0x6c]
add esi, 1
cmp esi, 4
jl 0x10006854
xor esi, esi
mov dword [esp + 0x24], esi
jmp 0x10006880
fld dword [0x452f8514]
mov eax, 4
fild dword [esp + 0x24]
nop
fld st(0)
sub eax, 1
fmulp st(2)
fxch st(1)
fadd dword [esp + eax*4 + 0x6c]
fxch st(1)
jne 0x10006890
faddp st(1)
fcom dword [0x452f8630]
fnstsw ax
test ah, 5
jp 0x100068cb
fld st(0)
fld dword [0x452f8514]
fcompp
fnstsw ax
test ah, 0x41
jne 0x100068cb
fstp st(0)
fld dword [0x452f8514]
jmp 0x100068e0
fcom dword [0x452f8630]
fnstsw ax
test ah, 5
jnp 0x100068e0
fstp st(0)
fld dword [0x452f8630]
call section..text
mov word [esi*2 + 0x453c0ae0], ax
add esi, 1
cmp esi, 0x10000
mov dword [esp + 0x24], esi
jl 0x10006880
xor edx, edx
cmp word [0x453c0680], dx
jbe 0x10006ec9
movzx ecx, word [0x45400ee4]
and edi, 1
mov eax, edi
imul eax, dword [0x453e0d10]
cmp eax, ecx
jae 0x1000694c
mov esi, dword [0x453c08a8]
imul ecx, edx
add ecx, eax
lea ecx, [esi + ecx*2]
movzx esi, word [ecx]
mov si, word [esi*2 + 0x453c0ae0]
mov word [ecx], si
movzx ecx, word [0x45400ee4]
add eax, 1
cmp eax, ecx
jb 0x10006922
movzx eax, word [0x453c0680]
add edx, 1
cmp edx, eax
jb 0x10006915
jmp 0x10006ec9
cmp edi, 0x400
jne 0x10006e43
sub ebx, 8
js 0x10006ec9
lea eax, [ebx + 8]
shr eax, 3
mov dword [esp + 0x30], eax
mov edi, edi
mov ecx, dword [0x453e0d24]
push ecx
push 2
lea edx, [esp + 0x1c]
push 1
push edx
mov byte [esp + 0x24], 0xff
mov byte [esp + 0x25], 0xff
call fcn.10028910
mov esi, 0x4949
add esp, 0x10
xor eax, eax
cmp word [0x453c0590], si
jne 0x100069bc
mov ah, byte [esp + 0x15]
mov al, byte [esp + 0x14]
jmp 0x100069c8
movzx cx, byte [esp + 0x15]
mov ah, byte [esp + 0x14]
or eax, ecx
mov edx, dword [0x453e0d24]
push edx
movzx ebx, ax
push 2
lea eax, [esp + 0x20]
push 1
push eax
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], 0xff
mov byte [esp + 0x29], 0xff
call fcn.10028910
add esp, 0x10
xor eax, eax
cmp word [0x453c0590], si
jne 0x10006a06
mov ah, byte [esp + 0x19]
mov al, byte [esp + 0x18]
jmp 0x10006a12
movzx cx, byte [esp + 0x19]
mov ah, byte [esp + 0x18]
or eax, ecx
mov edx, dword [0x453e0d24]
push edx
movzx ebp, ax
push 2
lea eax, [esp + 0x24]
push 1
push eax
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x2c], 0xff
mov byte [esp + 0x2d], 0xff
call fcn.10028910
add esp, 0x10
xor eax, eax
cmp word [0x453c0590], si
jne 0x10006a50
mov ah, byte [esp + 0x1d]
mov al, byte [esp + 0x1c]
jmp 0x10006a5c
movzx cx, byte [esp + 0x1d]
mov ah, byte [esp + 0x1c]
or eax, ecx
mov edx, dword [0x453e0d24]
push edx
push 2
movzx edi, ax
lea eax, [esp + 0x28]
push 1
push eax
mov byte [esp + 0x30], 0xff
mov byte [esp + 0x31], 0xff
call fcn.10028910
movzx esi, word [0x45400ee4]
add esp, 0x10
cmp ebx, esi
jae 0x10006e2f
cmp edi, 0x83
jne 0x10006d62
movzx edx, word [0x453c0680]
test edx, edx
jbe 0x10006e2f
mov ebp, 1
mov ax, word [0x45400ef8]
mov esi, dword [esp + 0x28]
lea ecx, [ebp - 1]
sub ecx, eax
mov ax, word [0x453c0a20]
add ecx, ecx
add ecx, ecx
and ecx, 0x1c
add eax, esi
neg eax
add eax, eax
and eax, 2
add ecx, eax
mov eax, dword [0x453c0ad0]
shr eax, cl
and al, 3
cmp al, 1
jne 0x10006c19
lea ecx, [ebp - 2]
cmp ecx, edx
lea edi, [esi - 1]
jae 0x10006b10
movzx eax, word [0x45400ee4]
cmp edi, eax
jae 0x10006b10
lea ebx, [ebp - 2]
imul ebx, eax
mov eax, dword [0x453c08a8]
add ebx, edi
movzx eax, word [eax + ebx*2]
jmp 0x10006b12
xor eax, eax
mov ebx, eax
add esi, 1
cmp ecx, edx
mov dword [esp + 0x4c], ebx
jae 0x10006b3d
movzx eax, word [0x45400ee4]
cmp esi, eax
jae 0x10006b3d
lea ecx, [ebp - 2]
imul ecx, eax
mov eax, dword [0x453c08a8]
add ecx, esi
movzx eax, word [eax + ecx*2]
jmp 0x10006b3f
xor eax, eax
add ebx, eax
cmp ebp, edx
mov dword [esp + 0x50], eax
jae 0x10006b65
movzx eax, word [0x45400ee4]
cmp edi, eax
jae 0x10006b65
mov ecx, dword [0x453c08a8]
imul eax, ebp
add eax, edi
movzx eax, word [ecx + eax*2]
jmp 0x10006b67
xor eax, eax
add ebx, eax
cmp ebp, edx
mov dword [esp + 0x54], eax
jae 0x10006b8d
movzx eax, word [0x45400ee4]
cmp esi, eax
jae 0x10006b8d
mov edx, dword [0x453c08a8]
imul eax, ebp
add eax, esi
movzx eax, word [edx + eax*2]
jmp 0x10006b8f
xor eax, eax
add ebx, eax
xor edi, edi
mov dword [esp + 0x58], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edi
nop
lea esi, [edi*4]
mov eax, dword [esp + esi + 0x4c]
add eax, eax
add eax, eax
sub eax, ebx
push eax
call fcn.1002e759
mov ecx, dword [esp + 0x30]
add esp, 4
mov dword [esp + esi + 0x5c], eax
cmp dword [esp + ecx + 0x5c], eax
jge 0x10006bd0
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], esi
add edi, 1
cmp edi, 4
jl 0x10006ba0
mov edx, dword [esp + 0x24]
sub ebx, dword [esp + edx*4 + 0x4c]
mov dword [esp + 0x2c], ebx
fild dword [esp + 0x2c]
fmul qword [0x452f8628]
fadd qword [0x452f8518]
call section..text
movzx edx, word [0x45400ee4]
lea ecx, [ebp - 1]
imul ecx, edx
add ecx, dword [esp + 0x28]
mov edx, dword [0x453c08a8]
mov word [edx + ecx*2], ax
jmp 0x10006d48
mov esi, dword [esp + 0x28]
mov ebx, dword [0x453c08a8]
lea ecx, [ebp - 3]
add esi, 0xfffffffe
cmp ecx, edx
jae 0x10006c46
movzx eax, word [0x45400ee4]
cmp esi, eax
jae 0x10006c46
lea edi, [ebp - 3]
imul edi, eax
add edi, esi
movzx eax, word [ebx + edi*2]
jmp 0x10006c48
xor eax, eax
mov edi, dword [esp + 0x28]
add edi, 2
cmp ecx, edx
mov dword [esp + 0x24], eax
jae 0x10006c70
movzx eax, word [0x45400ee4]
cmp edi, eax
jae 0x10006c70
lea ecx, [ebp - 3]
imul ecx, eax
add ecx, edi
movzx eax, word [ebx + ecx*2]
jmp 0x10006c72
xor eax, eax
add dword [esp + 0x24], eax
lea eax, [ebp + 1]
cmp eax, edx
jae 0x10006c9d
movzx ecx, word [0x45400ee4]
cmp esi, ecx
jae 0x10006c9d
mov ebx, eax
imul ebx, ecx
add ebx, esi
mov ecx, ebx
mov ebx, dword [0x453c08a8]
movzx ecx, word [ebx + ecx*2]
jmp 0x10006c9f
xor ecx, ecx
add dword [esp + 0x24], ecx
cmp eax, edx
mov si, word [0x45400ee4]
jae 0x10006cc0
movzx ecx, si
cmp edi, ecx
jae 0x10006cc0
imul eax, ecx
add eax, edi
movzx eax, word [ebx + eax*2]
jmp 0x10006cc2
xor eax, eax
add dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
lea ecx, [ebp - 1]
add eax, 0xfffffffe
cmp ecx, edx
jae 0x10006cf0
movzx ecx, si
cmp eax, ecx
jae 0x10006cf0
lea esi, [ebp - 1]
imul esi, ecx
add esi, eax
movzx ecx, word [ebx + esi*2]
mov si, word [0x45400ee4]
jmp 0x10006cf2
xor ecx, ecx
lea eax, [ebp - 1]
cmp eax, edx
jae 0x10006d0e
movzx eax, si
cmp edi, eax
jae 0x10006d0e
lea edx, [ebp - 1]
imul edx, eax
add edx, edi
movzx eax, word [ebx + edx*2]
jmp 0x10006d10
xor eax, eax
add eax, ecx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fmul qword [0x452f8620]
fild dword [esp + 0x24]
fmul qword [0x452f8618]
faddp st(1)
fadd qword [0x452f8518]
call section..text
movzx edx, si
lea ecx, [ebp - 1]
imul ecx, edx
add ecx, dword [esp + 0x28]
mov word [ebx + ecx*2], ax
movzx edx, word [0x453c0680]
add ebp, 1
lea eax, [ebp - 1]
cmp eax, edx
jb 0x10006ab0
jmp 0x10006e2f
cmp edi, 0x81
jne 0x10006e2f
movzx eax, word [0x453c0680]
cmp ebp, eax
jae 0x10006e2f
mov dx, word [0x45400ef8]
mov ax, word [0x453c0a20]
mov ecx, ebp
mov dword [esp + 0x24], 0
sub ecx, edx
add eax, ebx
neg eax
add eax, eax
and eax, 2
add ecx, ecx
add ecx, ecx
and ecx, 0x1c
add ecx, eax
mov eax, dword [0x453c0ad0]
shr eax, cl
and al, 3
sub al, 1
neg al
sbb eax, eax
neg eax
add eax, eax
add eax, eax
lea edi, [eax + 8]
cmp eax, edi
mov edx, eax
jge 0x10006e17
jmp 0x10006dd0
movsx eax, byte [edx*2 + 0x452f1640]
movsx ecx, byte [edx*2 + 0x452f1641]
add eax, ebp
movzx ebp, word [0x453c0680]
add ecx, ebx
cmp eax, ebp
jae 0x10006e06
cmp ecx, esi
jae 0x10006e06
mov ebp, esi
imul ebp, eax
add ebp, ecx
mov ecx, dword [0x453c08a8]
movzx eax, word [ecx + ebp*2]
jmp 0x10006e08
xor eax, eax
add dword [esp + 0x24], eax
mov ebp, dword [esp + 0x2c]
add edx, 1
cmp edx, edi
jl 0x10006dd0
mov edx, dword [esp + 0x24]
imul esi, ebp
mov eax, dword [0x453c08a8]
add edx, 4
sar edx, 3
add esi, ebx
mov word [eax + esi*2], dx
sub dword [esp + 0x30], 1
jne 0x10006980
mov ebp, dword [esp + 0x44]
jmp 0x10006ec9
cmp edi, 0x401
jne 0x10006e51
push 2
push 1
jmp 0x10006ec1
cmp edi, 0x416
je 0x10006ebd
cmp edi, 0x410
je 0x10006ebd
cmp edi, 0x40b
jne 0x10006e6d
push 4
jmp 0x10006ebf
cmp edi, 0x412
jne 0x10006ec9
mov ecx, dword [0x453e0d24]
push 1
push 0x24
push ecx
call fcn.10028b60
call fcn.10002b60
movzx edx, ax
sub edx, dword [0x453e0d14]
push edx
call fcn.1002e759
add esp, 0x10
cmp dword [esp + 0x38], eax
jle 0x10006ec9
mov dword [esp + 0x38], eax
mov eax, dword [0x453e0d24]
push eax
call fcn.10028cd0
add esp, 4
sub eax, 0x26
mov dword [esp + 0x40], eax
jmp 0x10006ec9
push 2
push 0
call fcn.100062a0
add esp, 8
mov ecx, dword [esp + 0x48]
mov edx, dword [0x453e0d24]
push 0
push ecx
push edx
call fcn.10028b60
add esp, 0xc
test ebp, ebp
jne 0x10006740
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1000727d
push ebp
push eax
mov eax, dword [0x453e0d24]
push eax
call fcn.10028b60
add esp, 0xc
xor esi, esi
call fcn.10002bb0
and eax, 0x7fff
mov dword [esp + esi*4 + 0x6c], eax
add esi, 1
cmp esi, 9
jl 0x10006f05
mov ebx, dword [esp + 0x7c]
mov esi, dword [esp + 0x78]
imul ebx, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
imul esi, edi
lea ecx, [esi + ebx]
push 6
push ecx
call fcn.1002bc60
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x30], ebp
jne 0x10006f71
mov edx, dword [0x45400de4]
push 0x452f8604
push edx
push 0x452f84c8
push 0x3ea
call fcn.100285e0
push 1
push 0x453c0a80
call fcn.10027b90
add esp, 0x18
mov ecx, dword [0x453e0d24]
push ecx
lea eax, [ebp + esi*4]
mov dword [esp + 0x38], eax
lea eax, [eax + ebx*4]
push 2
mov dword [esp + 0x40], eax
lea edx, [esp + 0x28]
lea eax, [eax + esi*2]
push 1
push edx
mov dword [esp + 0x4c], eax
mov byte [esp + 0x30], 0xff
mov byte [esp + 0x31], 0xff
call fcn.10028910
add esp, 0x10
xor ebp, ebp
jmp 0x10006fb0
mov eax, dword [esp + ebp + 0x70]
imul eax, dword [esp + ebp + 0x78]
test eax, eax
jle 0x10006fe5
mov esi, dword [esp + ebp + 0x70]
mov ebx, dword [esp + ebp + 0x30]
imul esi, dword [esp + ebp + 0x78]
lea ebx, [ebx]
call fcn.10002bb0
mov ecx, eax
mov dword [ebx], ecx
add ebx, 4
sub esi, 1
mov dword [esp + 0x48], eax
jne 0x10006fd0
add ebp, 4
cmp ebp, 8
jl 0x10006fb0
xor ebp, ebp
nop
mov edx, dword [esp + ebp + 0x70]
imul edx, dword [esp + ebp + 0x78]
test edx, edx
jle 0x1000705f
mov ebx, dword [esp + ebp + 0x70]
mov esi, dword [esp + ebp + 0x38]
imul ebx, dword [esp + ebp + 0x78]
lea ebx, [ebx]
mov eax, dword [0x453e0d24]
push eax
push 2
lea ecx, [esp + 0x24]
push 1
push ecx
mov byte [esp + 0x2c], 0xff
mov byte [esp + 0x2d], 0xff
call fcn.10028910
add esp, 0x10
xor eax, eax
cmp word [0x453c0590], 0x4949
jne 0x10007048
mov ah, byte [esp + 0x1d]
mov al, byte [esp + 0x1c]
jmp 0x10007054
movzx dx, byte [esp + 0x1d]
mov ah, byte [esp + 0x1c]
or eax, edx
mov word [esi], ax
add esi, 2
sub ebx, 1
jne 0x10007010
add ebp, 4
cmp ebp, 8
jl 0x10006ff0
cmp word [0x453c0680], 0
mov dword [esp + 0x2c], 0
jbe 0x10007270
movzx ecx, word [0x45400ee4]
mov dword [esp + 0x40], ecx
jmp 0x10007090
test ecx, ecx
mov dword [esp + 0x28], 0
jbe 0x10007256
mov eax, dword [esp + 0x2c]
fild dword [esp + 0x78]
test eax, eax
fild dword [esp + 0x2c]
jge 0x100070b6
fadd dword [0x452f8600]
mov edx, dword [esp + 0x28]
fild dword [esp + 0x28]
test edx, edx
jge 0x100070c8
fadd dword [0x452f8600]
fmul st(2)
imul ecx, dword [esp + 0x2c]
fnstcw word [esp + 0x20]
fidiv dword [esp + 0x40]
movzx eax, word [esp + 0x20]
or ah, 0xc
add ecx, edx
mov edx, dword [0x453c08a8]
lea ecx, [edx + ecx*2]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
movzx eax, word [ecx]
fld st(0)
fldcw word [esp + 0x48]
mov dword [esp + 0x48], eax
fistp dword [esp + 0x40]
mov edx, dword [esp + 0x40]
lea ecx, [edx + 2]
cmp edx, ecx
fldcw word [esp + 0x20]
fisub dword [esp + 0x40]
fild dword [esp + 0x48]
fmul qword [0x452f8518]
jge 0x100071d5
mov esi, dword [esp + 0x38]
mov eax, edx
imul eax, edi
mov ebx, eax
lea eax, [esi + eax*2]
sub ecx, edx
lea ebp, [esp + 0x4c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], ecx
xor ecx, ecx
xor edx, edx
test edi, edi
jle 0x1000719e
mov esi, dword [esp + 0x24]
lea esp, [esp]
movzx eax, word [esi]
mov dword [esp + 0x48], eax
lea edx, [ebx + ecx]
fild dword [esp + 0x48]
fld st(1)
fcompp
fnstsw ax
test ah, 5
jnp 0x10007173
add ecx, 1
add esi, 2
cmp ecx, edi
jl 0x10007150
test ecx, ecx
je 0x1000719e
cmp ecx, edi
je 0x1000719e
mov ecx, dword [esp + 0x38]
movzx eax, word [ecx + edx*2]
movzx ecx, word [ecx + edx*2 - 2]
mov dword [esp + 0x48], eax
sub eax, ecx
fild dword [esp + 0x48]
mov dword [esp + 0x48], eax
fsub st(1)
fidiv dword [esp + 0x48]
jmp 0x100071a4
fld dword [0x452f8514]
fld dword [0x452f8510]
mov eax, dword [esp + 0x30]
fsub st(1)
add ebp, 4
add ebx, edi
fmul dword [eax + edx*4]
fxch st(1)
fmul dword [eax + edx*4 - 4]
lea eax, [edi + edi]
add dword [esp + 0x24], eax
sub dword [esp + 0x40], 1
faddp st(1)
fstp dword [ebp - 4]
jne 0x10007140
fld dword [0x452f8510]
fsub st(2)
fnstcw word [esp + 0x20]
movzx eax, word [esp + 0x20]
or ah, 0xc
fmul dword [esp + 0x4c]
fld dword [esp + 0x50]
fmul st(3)
faddp st(1)
mov dword [esp + 0x48], eax
fmul st(3)
fadd st(1)
fadd st(0), st(0)
fldcw word [esp + 0x48]
fistp dword [esp + 0x24]
mov eax, dword [esp + 0x24]
cmp eax, 0xffff
fstp st(0)
fstp st(0)
fldcw word [esp + 0x20]
jge 0x10007228
xor edx, edx
test eax, eax
setl dl
sub edx, 1
and eax, edx
jmp 0x1000722d
mov eax, 0xffff
mov ecx, dword [esp + 0x44]
mov word [ecx], ax
mov eax, dword [esp + 0x28]
movzx ecx, word [0x45400ee4]
add eax, 1
cmp eax, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], ecx
jb 0x100070b6
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0x2c]
movzx edx, word [0x453c0680]
add eax, 1
cmp eax, edx
mov dword [esp + 0x2c], eax
jb 0x10007090
mov eax, dword [esp + 0x30]
push eax
call fcn.1002bb90
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret