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

Disassembly:
sub esp, 0x1f0
mov eax, dword [esp + 0x1f8]
mov edx, dword [0xc9ab74]
push esi
mov ecx, dword [eax + 8]
mov eax, dword [edx + ecx]
fld dword [eax + 0x10]
fmul dword [eax + 0xc]
mov esi, dword [eax]
test esi, esi
fstp dword [esp + 0x64]
jne 0x814a14
mov eax, dword [0xc97b24]
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
push ebx
push ebp
lea edx, [esp + 0x1bc]
push edi
push edx
push 0x100
call fcn.007fa4f0
lea eax, [esp + 0x1c8]
lea ecx, [esp + 0x188]
push eax
push ecx
call fcn.007f2070
mov eax, dword [esi + 0x90]
lea edx, [esi + 0x90]
add esp, 0x10
cmp eax, edx
je 0x814a66
mov bl, byte [eax - 8]
lea ecx, [eax - 8]
cmp bl, 3
je 0x814b28
mov eax, dword [eax]
cmp eax, edx
jne 0x814a51
push esi
call fcn.007f0990
lea edx, [esp + 0x184]
add eax, 0x30
push edx
push eax
lea eax, [esp + 0xdc]
push eax
call fcn.007edd60
mov ebp, dword [esp + 0x214]
add esp, 0x10
lea edx, [esp + 0x10]
mov eax, dword [ebp + 0x34]
push edx
lea edx, [esp + 0xf4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
xor edx, edx
mov edi, 0xff6
mov dword [esp + 0x10], edx
lea eax, [edx + 1]
lea esi, [esp + edx*4 + 0xdc]
shl eax, 4
add eax, ebp
mov dword [esi], 0
mov ecx, dword [eax]
test ecx, ecx
je 0x814b03
test word [eax + 0xc], di
je 0x814b03
mov edx, dword [eax + 8]
push 0x800
push esi
mov esi, dword [esp + 0x210]
mov ebx, dword [ecx]
mov esi, dword [esi + 0x18]
imul esi, edx
push esi
mov esi, dword [esp + 0x214]
mov esi, dword [esi + 4]
imul esi, edx
add esi, dword [eax + 4]
push esi
push ecx
call dword [ebx + 0x2c]
mov edx, dword [esp + 0x10]
inc edx
cmp edx, 2
mov dword [esp + 0x10], edx
jl 0x814ab0
xor ecx, ecx
mov al, byte [esp + ecx*8 + 0xf6]
test al, al
jne 0x814b25
mov al, byte [esp + ecx*8 + 0xf7]
test al, al
je 0x814b95
inc ecx
jmp 0x814b0f
test ecx, ecx
je 0x814a66
mov cl, byte [ecx + 1]
cmp cl, 1
je 0x814b46
cmp cl, 0x81
je 0x814b46
cmp cl, 0x82
jne 0x814a66
push esi
call fcn.007f0990
fld dword [eax + 0x20]
add eax, 0x20
lea edx, [esp + 0x184]
fchs
fstp dword [esp + 0x94]
fld dword [eax + 4]
fchs
fstp dword [esp + 0x98]
fld dword [eax + 8]
lea eax, [esp + 0x94]
push edx
lea ecx, [esp + 0xd8]
push eax
fchs
fstp dword [esp + 0xa4]
push ecx
call fcn.007eddc0
jmp 0x814a85
xor eax, eax
xor edx, edx
mov ax, word [esp + ecx*8 + 0xf0]
mov dx, word [esp + ecx*8 + 0xf2]
mov bl, 0x11
add edx, dword [esp + eax*4 + 0xdc]
mov dword [esp + 0x60], edx
xor edx, edx
mov dl, byte [esp + ecx*8 + 0xf4]
shl eax, 4
mov dword [esp + 0x54], edx
xor ecx, ecx
mov eax, dword [eax + ebp + 0x18]
mov dword [esp + 0x38], eax
cmp byte [esp + ecx*8 + 0xf6], 3
jne 0x814be5
mov al, byte [esp + ecx*8 + 0xf7]
test al, al
je 0x814bf1
cmp byte [esp + ecx*8 + 0xf4], bl
je 0x814bf1
inc ecx
jmp 0x814bd0
mov dl, byte [esp + ecx*8 + 0xf4]
cmp dl, bl
je 0x814c36
xor eax, eax
xor esi, esi
mov ax, word [esp + ecx*8 + 0xf0]
mov si, word [esp + ecx*8 + 0xf2]
mov ecx, esi
and edx, 0xff
mov edi, dword [esp + eax*4 + 0xdc]
mov dword [esp + 0x7c], edx
add ecx, edi
shl eax, 4
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax + ebp + 0x18]
mov dword [esp + 0x74], ecx
jmp 0x814c3e
mov dword [esp + 0x5c], 0
xor ecx, ecx
mov al, 0xa
cmp byte [esp + ecx*8 + 0xf6], al
jne 0x814c56
mov dl, byte [esp + ecx*8 + 0xf7]
test dl, dl
je 0x814c62
cmp byte [esp + ecx*8 + 0xf4], bl
je 0x814c62
inc ecx
jmp 0x814c42
cmp byte [esp + ecx*8 + 0xf4], bl
je 0x814c9f
xor eax, eax
xor edx, edx
mov ax, word [esp + ecx*8 + 0xf0]
mov dx, word [esp + ecx*8 + 0xf2]
mov ecx, edx
add ecx, dword [esp + eax*4 + 0xdc]
shl eax, 4
mov dword [esp + 0x9c], ecx
mov eax, dword [eax + ebp + 0x18]
mov dword [esp + 0xc4], eax
jmp 0x814caa
mov dword [esp + 0x9c], 0
xor ecx, ecx
cmp byte [esp + ecx*8 + 0xf6], 5
jne 0x814cc1
mov al, byte [esp + ecx*8 + 0xf7]
test al, al
je 0x814cc4
inc ecx
jmp 0x814cac
xor eax, eax
xor edx, edx
mov ax, word [esp + ecx*8 + 0xf0]
mov dx, word [esp + ecx*8 + 0xf2]
add edx, dword [esp + eax*4 + 0xdc]
shl eax, 4
mov dword [esp + 0x8c], edx
xor edx, edx
mov eax, dword [eax + ebp + 0x18]
mov dl, byte [esp + ecx*8 + 0xf4]
mov dword [esp + 0x58], eax
mov dword [esp + 0x50], edx
xor ecx, ecx
mov al, 6
cmp byte [esp + ecx*8 + 0xf6], al
jne 0x814d16
mov dl, byte [esp + ecx*8 + 0xf7]
test dl, dl
je 0x814d22
cmp byte [esp + ecx*8 + 0xf4], bl
je 0x814d22
inc ecx
jmp 0x814d02
mov dl, byte [esp + ecx*8 + 0xf4]
cmp dl, bl
je 0x815055
xor eax, eax
xor esi, esi
mov ax, word [esp + ecx*8 + 0xf0]
mov si, word [esp + ecx*8 + 0xf2]
and edx, 0xff
mov ebx, dword [esp + eax*4 + 0xdc]
mov dword [esp + 0x78], edx
add esi, ebx
shl eax, 4
test esi, esi
mov ebx, dword [eax + ebp + 0x18]
je 0x815055
mov ecx, dword [esp + 0x208]
xor eax, eax
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 0x18]
test ecx, ecx
mov dword [esp + 0xa0], ecx
jle 0x815bd7
mov edi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x8c]
cmp dword [esp + 0x54], 2
jne 0x814dbb
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x60]
imul edx, eax
add edx, ecx
mov ecx, dword [edx]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x30], ecx
mov edx, dword [edx + 8]
mov dword [esp + 0x34], edx
jmp 0x814ddf
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x2c]
imul ecx, eax
mov eax, dword [esp + 0x60]
add ecx, eax
mov eax, dword [esp + 0x54]
push ecx
push edx
push eax
call fcn.007551f0
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp dword [esp + 0x50], 1
jne 0x814dfe
mov ecx, dword [esp + 0x58]
imul ecx, eax
mov edx, dword [ecx + ebp]
mov dword [esp + 0x3c], edx
mov ecx, dword [ecx + ebp + 4]
mov dword [esp + 0x40], ecx
jmp 0x814e1e
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
imul edx, eax
add edx, ebp
lea eax, [esp + 0x3c]
push edx
push eax
push ecx
call fcn.007555e0
mov eax, dword [esp + 0x1c]
add esp, 0xc
test edi, edi
je 0x814e6a
cmp dword [esp + 0x7c], 2
jne 0x814e48
mov edx, dword [esp + 0x74]
imul edx, eax
add edx, edi
mov ecx, dword [edx]
mov dword [esp + 0x14], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x18], ecx
mov edx, dword [edx + 8]
mov dword [esp + 0x1c], edx
jmp 0x814e82
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x14]
imul ecx, eax
mov eax, dword [esp + 0x7c]
add ecx, edi
push ecx
push edx
push eax
call fcn.007551f0
mov eax, dword [esp + 0x1c]
add esp, 0xc
jmp 0x814e82
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
cmp dword [esp + 0x78], 2
jne 0x814ea6
mov ecx, ebx
imul ecx, eax
add ecx, esi
mov edx, dword [ecx]
mov dword [esp + 0x20], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x24], eax
mov ecx, dword [ecx + 8]
mov dword [esp + 0x28], ecx
jmp 0x814ec0
mov edx, ebx
mov ecx, dword [esp + 0x78]
imul edx, eax
add edx, esi
lea eax, [esp + 0x20]
push edx
push eax
push ecx
call fcn.007551f0
add esp, 0xc
fld dword [esp + 0xd0]
fsub dword [esp + 0x2c]
push ecx
fstp dword [esp + 0x48]
fld dword [esp + 0xd8]
fsub dword [esp + 0x34]
fstp dword [esp + 0x4c]
fld dword [esp + 0xdc]
fsub dword [esp + 0x38]
fstp dword [esp + 0x50]
fld dword [esp + 0x4c]
fmul dword [esp + 0x4c]
fld dword [esp + 0x48]
fmul dword [esp + 0x48]
faddp st(1)
fld dword [esp + 0x50]
fmul dword [esp + 0x50]
faddp st(1)
fstp dword [esp]
call fcn.007edb90
fld dword [esp + 0x48]
fmul st(1)
fld st(1)
fmul dword [esp + 0x4c]
fxch st(2)
fmul dword [esp + 0x50]
fld dword [esp + 0x28]
fmul dword [esp + 0x20]
add esp, 4
fld dword [esp + 0x28]
fmul dword [esp + 0x18]
fsubp st(1)
fld dword [esp + 0x28]
fmul dword [esp + 0x14]
fld dword [esp + 0x20]
fmul dword [esp + 0x1c]
fsubp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x18]
fld dword [esp + 0x24]
fmul dword [esp + 0x14]
fsubp st(1)
fstp dword [esp + 0xec]
fld dword [esp + 0x24]
fmul st(5)
fld dword [esp + 0x20]
fmul st(5)
faddp st(1)
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20c]
test edi, edi
fld dword [esp + 0x28]
fmul st(4)
lea edx, [eax + eax*4]
faddp st(1)
lea eax, [eax + edx*2]
mov edx, dword [esp + 0x2c]
fstp dword [esp + 0x68]
lea eax, [ecx + eax*4]
fmul st(4)
mov dword [eax], edx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x34]
fxch st(1)
fmul st(3)
mov dword [eax + 8], edx
faddp st(1)
fld dword [esp + 0xec]
fmul st(2)
faddp st(1)
fstp dword [esp + 0x6c]
fstp st(0)
fstp st(1)
fstp st(0)
je 0x814fdb
mov ecx, dword [esp + 0x14]
mov dword [eax + 0xc], ecx
mov edx, dword [esp + 0x18]
mov dword [eax + 0x10], edx
mov ecx, dword [esp + 0x1c]
jmp 0x814fe3
xor ecx, ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x815005
mov edx, dword [esp + 0xc4]
imul edx, dword [esp + 0x10]
mov ecx, dword [edx + ecx]
mov dword [eax + 0x18], ecx
jmp 0x81500c
mov dword [eax + 0x18], 0xffffffff
fld dword [esp + 0x68]
mov edx, dword [esp + 0x3c]
fmul dword [esp + 0x70]
mov dword [eax + 0x1c], edx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0xa0]
fadd dword [esp + 0x3c]
fstp dword [eax + 0x24]
fld dword [esp + 0x6c]
fmul dword [esp + 0x70]
fadd dword [esp + 0x40]
fstp dword [eax + 0x28]
mov eax, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x814d91
jmp 0x815bd7
mov eax, dword [ebp + 8]
test eax, eax
je 0x815679
mov esi, dword [esp + 0x208]
mov eax, dword [0xc97b24]
push 0x30120
mov edx, dword [esi + 0x18]
push edx
call dword [eax + 0x134]
mov ecx, dword [esi + 0x18]
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 8
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esp + 0xa0]
and ecx, 3
push 0x800
rep stosb byte es:[edi], al
mov esi, dword [esi]
mov eax, dword [ebp + 8]
push edx
mov dword [esp + 0x80], ebx
lea edx, [esi + esi]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x214]
mov dword [esp + 0x74], esi
mov edx, dword [edx + 0x1c]
add edx, edx
push edx
push eax
call dword [ecx + 0x2c]
xor ecx, ecx
test esi, esi
mov dword [esp + 0x10], ecx
jle 0x81565a
mov ebx, dword [esp + 0xa0]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x68]
mov ebp, dword [esp + 0x68]
mov edx, dword [esp + 0x78]
xor eax, eax
mov ax, word [ebx + ecx*2]
cmp byte [eax + edx], 0
jne 0x81563e
mov eax, dword [esp + 0x204]
mov eax, dword [eax + 0xc]
cmp eax, 4
jne 0x815146
mov eax, 0x55555556
mov edi, 3
imul ecx
mov eax, edx
xor esi, esi
shr eax, 0x1f
add edx, eax
lea eax, [ecx + 1]
mov si, word [ebx + ecx*2]
lea ebp, [edx + edx*2]
cdq
idiv edi
xor edi, edi
lea eax, [ecx + 2]
mov ecx, 3
add edx, ebp
mov di, word [ebx + edx*2]
cdq
idiv ecx
add edx, ebp
jmp 0x81519b
cmp eax, 5
jne 0x8151a1
cmp ecx, 2
jge 0x815171
mov edx, ecx
and edx, 0x80000001
jns 0x81515f
dec edx
or edx, 0xfffffffe
inc edx
je 0x815169
lea eax, [ecx + 2]
lea edx, [ecx + 1]
jmp 0x81518f
lea eax, [ecx + 1]
lea edx, [ecx + 2]
jmp 0x81518f
mov eax, ecx
and eax, 0x80000001
jns 0x81517f
dec eax
or eax, 0xfffffffe
inc eax
je 0x815189
lea eax, [ecx - 1]
lea edx, [ecx - 2]
jmp 0x81518f
lea eax, [ecx - 2]
lea edx, [ecx - 1]
xor esi, esi
xor edi, edi
mov si, word [ebx + ecx*2]
mov di, word [ebx + eax*2]
xor ebp, ebp
mov bp, word [ebx + edx*2]
cmp dword [esp + 0x54], 2
jne 0x815215
mov ecx, dword [esp + 0x38]
mov edx, esi
imul edx, ecx
mov eax, dword [esp + 0x60]
add edx, eax
mov ebx, dword [edx]
mov dword [esp + 0x2c], ebx
mov ebx, dword [edx + 4]
mov dword [esp + 0x30], ebx
mov edx, dword [edx + 8]
mov dword [esp + 0x34], edx
mov edx, edi
imul edx, ecx
add edx, eax
mov ebx, dword [edx]
mov dword [esp + 0xa4], ebx
mov ebx, dword [edx + 4]
mov dword [esp + 0xa8], ebx
mov edx, dword [edx + 8]
mov dword [esp + 0xac], edx
mov edx, ebp
imul edx, ecx
add edx, eax
mov eax, dword [edx]
mov dword [esp + 0xb0], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0xb4], ecx
mov edx, dword [edx + 8]
mov dword [esp + 0xb8], edx
jmp 0x81526d
mov eax, esi
mov ebx, dword [esp + 0x60]
imul eax, dword [esp + 0x38]
mov edx, dword [esp + 0x54]
add eax, ebx
lea ecx, [esp + 0x2c]
push eax
push ecx
push edx
call fcn.007551f0
mov eax, edi
mov edx, dword [esp + 0x60]
imul eax, dword [esp + 0x44]
add eax, ebx
lea ecx, [esp + 0xb0]
push eax
push ecx
push edx
call fcn.007551f0
mov eax, ebp
mov edx, dword [esp + 0x6c]
imul eax, dword [esp + 0x50]
add eax, ebx
lea ecx, [esp + 0xc8]
push eax
push ecx
push edx
call fcn.007551f0
add esp, 0x24
cmp dword [esp + 0x50], 1
jne 0x8152c9
mov ecx, dword [esp + 0x58]
mov edx, esi
imul edx, ecx
mov eax, dword [esp + 0x8c]
mov ebx, dword [edx + eax]
mov dword [esp + 0x3c], ebx
mov edx, dword [edx + eax + 4]
mov dword [esp + 0x40], edx
mov edx, edi
imul edx, ecx
mov ebx, dword [edx + eax]
mov dword [esp + 0xbc], ebx
mov edx, dword [edx + eax + 4]
mov dword [esp + 0xc0], edx
mov edx, ebp
imul edx, ecx
mov ecx, dword [edx + eax]
mov dword [esp + 0xc8], ecx
mov edx, dword [edx + eax + 4]
mov dword [esp + 0xcc], edx
jmp 0x815324
mov eax, esi
mov ebx, dword [esp + 0x8c]
imul eax, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
add eax, ebx
lea ecx, [esp + 0x3c]
push eax
push ecx
push edx
call fcn.007555e0
mov eax, edi
mov edx, dword [esp + 0x5c]
imul eax, dword [esp + 0x64]
add eax, ebx
lea ecx, [esp + 0xc8]
push eax
push ecx
push edx
call fcn.007555e0
mov eax, ebp
mov edx, dword [esp + 0x68]
imul eax, dword [esp + 0x70]
add eax, ebx
lea ecx, [esp + 0xe0]
push eax
push ecx
push edx
call fcn.007555e0
add esp, 0x24
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x815374
cmp dword [esp + 0x7c], 2
jne 0x815352
mov ecx, esi
imul ecx, dword [esp + 0x74]
add ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x20], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x24], eax
mov ecx, dword [ecx + 8]
mov dword [esp + 0x28], ecx
jmp 0x81538c
mov edx, esi
mov ecx, dword [esp + 0x5c]
imul edx, dword [esp + 0x74]
add edx, ecx
mov ecx, dword [esp + 0x7c]
lea eax, [esp + 0x20]
push edx
push eax
push ecx
call fcn.007551f0
add esp, 0xc
jmp 0x81538c
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
fld dword [esp + 0xd0]
fsub dword [esp + 0x2c]
push ecx
fstp dword [esp + 0x18]
fld dword [esp + 0xd8]
fsub dword [esp + 0x34]
fstp dword [esp + 0x1c]
fld dword [esp + 0xdc]
fsub dword [esp + 0x38]
fstp dword [esp + 0x20]
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
faddp st(1)
fstp dword [esp]
call fcn.007edb90
fld dword [esp + 0x18]
fmul st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fmul st(1)
fstp dword [esp + 0x1c]
fmul dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0xa8]
fsub dword [esp + 0x30]
fld dword [esp + 0xac]
fsub dword [esp + 0x34]
fld dword [esp + 0xb0]
fsub dword [esp + 0x38]
fstp dword [esp + 0xf0]
fld dword [esp + 0xb4]
fsub dword [esp + 0x30]
fstp dword [esp + 0x84]
fld dword [esp + 0xb8]
fsub dword [esp + 0x34]
fstp dword [esp + 0x88]
fld dword [esp + 0xbc]
fsub dword [esp + 0x38]
fstp dword [esp + 0x8c]
fld dword [esp + 0xd0]
fsub dword [esp + 0x44]
fstp dword [esp + 0x68]
fxch st(1)
fmul dword [esp + 0x68]
fstp dword [esp + 0xe8]
fmul dword [esp + 0x68]
fld dword [esp + 0xf0]
fmul dword [esp + 0x68]
fld dword [esp + 0xc4]
fsub dword [esp + 0x44]
fld dword [esp + 0x84]
fmul st(1)
fld dword [esp + 0x88]
fmul st(2)
fstp dword [esp + 0x88]
fld dword [esp + 0x8c]
fmul st(2)
fstp dword [esp + 0x8c]
fld dword [esp + 0xe8]
fsub st(1)
fstp dword [esp + 0x48]
fstp st(0)
fstp st(0)
fxch st(1)
fsub dword [esp + 0x88]
fstp dword [esp + 0x4c]
fsub dword [esp + 0x8c]
fstp dword [esp + 0x50]
fld dword [esp + 0x4c]
fmul dword [esp + 0x4c]
fld dword [esp + 0x48]
fmul dword [esp + 0x48]
faddp st(1)
fld dword [esp + 0x50]
fmul dword [esp + 0x50]
faddp st(1)
fstp dword [esp]
call fcn.007edb90
fld dword [esp + 0x48]
fmul st(1)
fld dword [esp + 0x4c]
fmul st(2)
fld dword [esp + 0x50]
fmul st(3)
fld st(1)
fmul dword [esp + 0x2c]
add esp, 4
fld st(1)
fmul dword [esp + 0x24]
fsubp st(1)
fstp dword [esp + 0x90]
fld dword [esp + 0x20]
fmul st(1)
fld st(3)
fmul dword [esp + 0x28]
fsubp st(1)
fstp dword [esp + 0x94]
fld st(2)
fmul dword [esp + 0x24]
fld st(2)
fmul dword [esp + 0x20]
mov ecx, dword [esp + 0x20c]
lea edx, [esi + esi*4]
fsubp st(1)
lea eax, [esi + edx*2]
mov edx, dword [esp + 0x2c]
fstp dword [esp + 0x98]
fxch st(1)
fmul dword [esp + 0x18]
lea eax, [ecx + eax*4]
fxch st(2)
fmul dword [esp + 0x14]
mov dword [eax], edx
mov ecx, dword [esp + 0x30]
faddp st(2)
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x5c]
mov dword [eax + 8], edx
fmul dword [esp + 0x1c]
xor edx, edx
faddp st(1)
cmp ecx, edx
fstp st(1)
fld dword [esp + 0x94]
fmul dword [esp + 0x18]
fld dword [esp + 0x90]
fmul dword [esp + 0x14]
faddp st(1)
fld dword [esp + 0x98]
fmul dword [esp + 0x1c]
faddp st(1)
je 0x8155d8
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x14], ecx
jmp 0x8155e1
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov ecx, dword [esp + 0x9c]
cmp ecx, edx
je 0x8155fe
mov edx, esi
imul edx, dword [esp + 0xc4]
mov ecx, dword [edx + ecx]
mov dword [eax + 0x18], ecx
jmp 0x815605
mov dword [eax + 0x18], 0xffffffff
mov edx, dword [esp + 0x3c]
fxch st(1)
fmul dword [esp + 0x70]
mov dword [eax + 0x1c], edx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0x20], ecx
mov edx, dword [esp + 0x78]
fsubr dword [esp + 0x3c]
fstp dword [eax + 0x24]
fmul dword [esp + 0x70]
fsubr dword [esp + 0x40]
fstp dword [eax + 0x28]
mov byte [esi + edx], 1
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0xa0]
mov eax, dword [esp + 0x68]
inc ecx
cmp ecx, eax
mov dword [esp + 0x10], ecx
jl 0x8150ea
mov ebp, dword [esp + 0x204]
mov ebx, dword [esp + 0x78]
mov ebp, dword [ebp + 8]
push ebp
mov eax, dword [ebp]
call dword [eax + 0x30]
mov ecx, dword [0xc97b24]
push ebx
call dword [ecx + 0x138]
add esp, 4
jmp 0x815bd7
mov edx, dword [esp + 0x208]
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov eax, dword [edx + 0x18]
test eax, eax
mov dword [esp + 0x68], eax
jle 0x815bd7
mov ebx, dword [esp + 0x68]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x68]
mov ebp, dword [esp + 0x8c]
mov eax, dword [esp + 0x204]
mov eax, dword [eax + 0xc]
cmp eax, 4
jne 0x8156f1
mov eax, 0x55555556
mov esi, 3
imul ecx
mov eax, edx
mov ebx, ecx
shr eax, 0x1f
add edx, eax
lea eax, [ecx + 1]
lea ebp, [edx + edx*2]
cdq
idiv esi
lea eax, [ecx + 2]
mov ecx, 3
mov esi, edx
cdq
idiv ecx
add esi, ebp
mov edi, edx
add edi, ebp
mov ebp, dword [esp + 0x8c]
jmp 0x81573c
cmp eax, 5
jne 0x81573c
cmp ecx, 2
mov ebx, ecx
jge 0x81571e
mov edx, ecx
and edx, 0x80000001
jns 0x81570c
dec edx
or edx, 0xfffffffe
inc edx
je 0x815716
lea esi, [ecx + 2]
lea edi, [ecx + 1]
jmp 0x81573c
lea esi, [ecx + 1]
lea edi, [ecx + 2]
jmp 0x81573c
mov eax, ecx
and eax, 0x80000001
jns 0x81572c
dec eax
or eax, 0xfffffffe
inc eax
je 0x815736
lea esi, [ecx - 1]
lea edi, [ecx - 2]
jmp 0x81573c
lea esi, [ecx - 2]
lea edi, [ecx - 1]
cmp dword [esp + 0x54], 2
jne 0x8157b2
mov ecx, ebx
mov eax, dword [esp + 0x60]
imul ecx, dword [esp + 0x38]
add ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x2c], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x30], edx
mov edx, esi
imul edx, dword [esp + 0x38]
mov ecx, dword [ecx + 8]
add edx, eax
mov dword [esp + 0x34], ecx
mov ecx, dword [edx]
mov dword [esp + 0xa4], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0xa8], ecx
mov ecx, edi
imul ecx, dword [esp + 0x38]
mov edx, dword [edx + 8]
add ecx, eax
mov dword [esp + 0xac], edx
mov edx, dword [ecx]
mov dword [esp + 0xb0], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0xb4], eax
mov ecx, dword [ecx + 8]
mov dword [esp + 0xb8], ecx
jmp 0x815812
mov edx, ebx
mov ecx, dword [esp + 0x60]
imul edx, dword [esp + 0x38]
add edx, ecx
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
call fcn.007551f0
mov edx, esi
mov ecx, dword [esp + 0x6c]
imul edx, dword [esp + 0x44]
add edx, ecx
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0xb0]
push edx
push eax
push ecx
call fcn.007551f0
mov edx, edi
mov ecx, dword [esp + 0x78]
imul edx, dword [esp + 0x50]
add edx, ecx
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0xc8]
push edx
push eax
push ecx
call fcn.007551f0
add esp, 0x24
mov eax, dword [esp + 0x50]
mov edx, ebx
cmp eax, 1
jne 0x815869
mov eax, dword [esp + 0x58]
imul edx, eax
mov ecx, dword [edx + ebp]
mov dword [esp + 0x3c], ecx
mov ecx, esi
imul ecx, eax
mov edx, dword [edx + ebp + 4]
mov dword [esp + 0x40], edx
mov edx, dword [ecx + ebp]
mov dword [esp + 0xbc], edx
mov edx, edi
imul edx, eax
mov ecx, dword [ecx + ebp + 4]
mov dword [esp + 0xc0], ecx
mov eax, dword [edx + ebp]
mov dword [esp + 0xc8], eax
mov ecx, dword [edx + ebp + 4]
mov dword [esp + 0xcc], ecx
jmp 0x8158bb
imul edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
add edx, ebp
lea eax, [esp + 0x3c]
push edx
push eax
push ecx
call fcn.007555e0
mov edx, esi
mov ecx, dword [esp + 0x5c]
imul edx, dword [esp + 0x64]
add edx, ebp
lea eax, [esp + 0xc8]
push edx
push eax
push ecx
call fcn.007555e0
mov edx, edi
mov ecx, dword [esp + 0x68]
imul edx, dword [esp + 0x70]
add edx, ebp
lea eax, [esp + 0xe0]
push edx
push eax
push ecx
call fcn.007555e0
add esp, 0x24
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x81590b
cmp dword [esp + 0x7c], 2
jne 0x8158e9
mov edx, ebx
imul edx, dword [esp + 0x74]
add edx, eax
mov eax, dword [edx]
mov dword [esp + 0x20], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x24], ecx
mov edx, dword [edx + 8]
mov dword [esp + 0x28], edx
jmp 0x815923
mov eax, ebx
mov edx, dword [esp + 0x5c]
imul eax, dword [esp + 0x74]
add eax, edx
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0x20]
push eax
push ecx
push edx
call fcn.007551f0
add esp, 0xc
jmp 0x815923
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
fld dword [esp + 0xd0]
fsub dword [esp + 0x2c]
push ecx
fstp dword [esp + 0x18]
fld dword [esp + 0xd8]
fsub dword [esp + 0x34]
fstp dword [esp + 0x1c]
fld dword [esp + 0xdc]
fsub dword [esp + 0x38]
fstp dword [esp + 0x20]
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
faddp st(1)
fstp dword [esp]
call fcn.007edb90
fld dword [esp + 0x18]
fmul st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fmul st(1)
fstp dword [esp + 0x1c]
fmul dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0xa8]
fsub dword [esp + 0x30]
fld dword [esp + 0xac]
fsub dword [esp + 0x34]
fld dword [esp + 0xb0]
fsub dword [esp + 0x38]
fstp dword [esp + 0xf0]
fld dword [esp + 0xb4]
fsub dword [esp + 0x30]
fstp dword [esp + 0x84]
fld dword [esp + 0xb8]
fsub dword [esp + 0x34]
fstp dword [esp + 0x88]
fld dword [esp + 0xbc]
fsub dword [esp + 0x38]
fstp dword [esp + 0x8c]
fld dword [esp + 0xd0]
fsub dword [esp + 0x44]
fstp dword [esp + 0x68]
fxch st(1)
fmul dword [esp + 0x68]
fstp dword [esp + 0xe8]
fmul dword [esp + 0x68]
fld dword [esp + 0xf0]
fmul dword [esp + 0x68]
fld dword [esp + 0xc4]
fsub dword [esp + 0x44]
fld dword [esp + 0x84]
fmul st(1)
fld dword [esp + 0x88]
fmul st(2)
fstp dword [esp + 0x88]
fld dword [esp + 0x8c]
fmul st(2)
fstp dword [esp + 0x8c]
fld dword [esp + 0xe8]
fsub st(1)
fstp dword [esp + 0x48]
fstp st(0)
fstp st(0)
fxch st(1)
fsub dword [esp + 0x88]
fstp dword [esp + 0x4c]
fsub dword [esp + 0x8c]
fstp dword [esp + 0x50]
fld dword [esp + 0x4c]
fmul dword [esp + 0x4c]
fld dword [esp + 0x48]
fmul dword [esp + 0x48]
faddp st(1)
fld dword [esp + 0x50]
fmul dword [esp + 0x50]
faddp st(1)
fstp dword [esp]
call fcn.007edb90
fld dword [esp + 0x48]
fmul st(1)
fld dword [esp + 0x4c]
fmul st(2)
fld dword [esp + 0x50]
fmul st(3)
fld st(1)
fmul dword [esp + 0x2c]
add esp, 4
fld st(1)
fmul dword [esp + 0x24]
fsubp st(1)
fstp dword [esp + 0x90]
fld dword [esp + 0x20]
fmul st(1)
fld st(3)
fmul dword [esp + 0x28]
fsubp st(1)
fstp dword [esp + 0x94]
fld st(2)
fmul dword [esp + 0x24]
fld st(2)
fmul dword [esp + 0x20]
mov edx, dword [esp + 0x20c]
lea eax, [ebx + ebx*4]
fsubp st(1)
lea ecx, [ebx + eax*2]
fstp dword [esp + 0x98]
fxch st(1)
fmul dword [esp + 0x18]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x2c]
fxch st(2)
fmul dword [esp + 0x14]
mov dword [eax], ecx
mov edx, dword [esp + 0x30]
faddp st(2)
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x5c]
fmul dword [esp + 0x1c]
test ecx, ecx
faddp st(1)
fstp st(1)
fld dword [esp + 0x94]
fmul dword [esp + 0x18]
fld dword [esp + 0x90]
fmul dword [esp + 0x14]
faddp st(1)
fld dword [esp + 0x98]
fmul dword [esp + 0x1c]
faddp st(1)
je 0x815b6d
mov edx, dword [esp + 0x20]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x10], ecx
mov edx, dword [esp + 0x28]
mov dword [eax + 0x14], edx
jmp 0x815b78
xor ecx, ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x815b95
mov edx, ebx
imul edx, dword [esp + 0xc4]
mov ecx, dword [edx + ecx]
mov dword [eax + 0x18], ecx
jmp 0x815b9c
mov dword [eax + 0x18], 0xffffffff
mov edx, dword [esp + 0x3c]
fxch st(1)
fmul dword [esp + 0x70]
mov dword [eax + 0x1c], edx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0x20], ecx
fsubr dword [esp + 0x3c]
fstp dword [eax + 0x24]
fmul dword [esp + 0x70]
fsubr dword [esp + 0x40]
fstp dword [eax + 0x28]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x68]
inc ecx
cmp ecx, eax
mov dword [esp + 0x10], ecx
jl 0x8156a8
mov esi, dword [esp + 0x204]
xor eax, eax
pop edi
pop ebp
mov dword [esp + 8], eax
pop ebx
mov ecx, dword [esp + eax*4 + 0xd0]
test ecx, ecx
je 0x815c03
inc eax
shl eax, 4
mov eax, dword [eax + esi]
push eax
mov edx, dword [eax]
call dword [edx + 0x30]
mov eax, dword [esp + 4]
inc eax
cmp eax, 2
mov dword [esp + 4], eax
jl 0x815be7
mov eax, 1
pop esi
add esp, 0x1f0
ret