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

Disassembly:
sub esp, 0x1f0
mov eax, dword [esp + 0x1f8]
mov edx, dword [0x84d958]
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 0x5047d4
mov eax, dword [0x84a7c8]
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.004e2900
lea eax, [esp + 0x1c8]
lea ecx, [esp + 0x188]
push eax
push ecx
call fcn.004d9330
mov eax, dword [esi + 0x90]
lea edx, [esi + 0x90]
add esp, 0x10
cmp eax, edx
je 0x504826
mov bl, byte [eax - 8]
lea ecx, [eax - 8]
cmp bl, 3
je 0x5048e8
mov eax, dword [eax]
cmp eax, edx
jne 0x504811
push esi
call fcn.004d6a40
lea edx, [esp + 0x184]
add eax, 0x30
push edx
push eax
lea eax, [esp + 0xdc]
push eax
call fcn.004d5fd0
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 0x5048c3
test word [eax + 0xc], di
je 0x5048c3
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 0x504870
xor ecx, ecx
mov al, byte [esp + ecx*8 + 0xf6]
test al, al
jne 0x5048e5
mov al, byte [esp + ecx*8 + 0xf7]
test al, al
je 0x504955
inc ecx
jmp 0x5048cf
test ecx, ecx
je 0x504826
mov cl, byte [ecx + 1]
cmp cl, 1
je 0x504906
cmp cl, 0x81
je 0x504906
cmp cl, 0x82
jne 0x504826
push esi
call fcn.004d6a40
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.004d6030
jmp 0x504845
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 0x5049a5
mov al, byte [esp + ecx*8 + 0xf7]
test al, al
je 0x5049b1
cmp byte [esp + ecx*8 + 0xf4], bl
je 0x5049b1
inc ecx
jmp 0x504990
mov dl, byte [esp + ecx*8 + 0xf4]
cmp dl, bl
je 0x5049f6
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 0x5049fe
mov dword [esp + 0x5c], 0
xor ecx, ecx
mov al, 0xa
cmp byte [esp + ecx*8 + 0xf6], al
jne 0x504a16
mov dl, byte [esp + ecx*8 + 0xf7]
test dl, dl
je 0x504a22
cmp byte [esp + ecx*8 + 0xf4], bl
je 0x504a22
inc ecx
jmp 0x504a02
cmp byte [esp + ecx*8 + 0xf4], bl
je 0x504a5f
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 0x504a6a
mov dword [esp + 0x9c], 0
xor ecx, ecx
cmp byte [esp + ecx*8 + 0xf6], 5
jne 0x504a81
mov al, byte [esp + ecx*8 + 0xf7]
test al, al
je 0x504a84
inc ecx
jmp 0x504a6c
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 0x504ad6
mov dl, byte [esp + ecx*8 + 0xf7]
test dl, dl
je 0x504ae2
cmp byte [esp + ecx*8 + 0xf4], bl
je 0x504ae2
inc ecx
jmp 0x504ac2
mov dl, byte [esp + ecx*8 + 0xf4]
cmp dl, bl
je 0x504e15
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 0x504e15
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 0x505997
mov edi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x8c]
cmp dword [esp + 0x54], 2
jne 0x504b7b
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 0x504b9f
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.004b5d50
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp dword [esp + 0x50], 1
jne 0x504bbe
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 0x504bde
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.004b6140
mov eax, dword [esp + 0x1c]
add esp, 0xc
test edi, edi
je 0x504c2a
cmp dword [esp + 0x7c], 2
jne 0x504c08
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 0x504c42
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.004b5d50
mov eax, dword [esp + 0x1c]
add esp, 0xc
jmp 0x504c42
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
cmp dword [esp + 0x78], 2
jne 0x504c66
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 0x504c80
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.004b5d50
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.004d5f00
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 0x504d9b
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 0x504da3
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 0x504dc5
mov edx, dword [esp + 0xc4]
imul edx, dword [esp + 0x10]
mov ecx, dword [edx + ecx]
mov dword [eax + 0x18], ecx
jmp 0x504dcc
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 0x504b51
jmp 0x505997
mov eax, dword [ebp + 8]
test eax, eax
je 0x505439
mov esi, dword [esp + 0x208]
mov eax, dword [0x84a7c8]
push 0x30120
mov edx, dword [esi + 0x18]
push edx
call dword [eax + 0x108]
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 0x50541a
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 0x5053fe
mov eax, dword [esp + 0x204]
mov eax, dword [eax + 0xc]
cmp eax, 4
jne 0x504f06
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 0x504f5b
cmp eax, 5
jne 0x504f61
cmp ecx, 2
jge 0x504f31
mov edx, ecx
and edx, 0x80000001
jns 0x504f1f
dec edx
or edx, 0xfffffffe
inc edx
je 0x504f29
lea eax, [ecx + 2]
lea edx, [ecx + 1]
jmp 0x504f4f
lea eax, [ecx + 1]
lea edx, [ecx + 2]
jmp 0x504f4f
mov eax, ecx
and eax, 0x80000001
jns 0x504f3f
dec eax
or eax, 0xfffffffe
inc eax
je 0x504f49
lea eax, [ecx - 1]
lea edx, [ecx - 2]
jmp 0x504f4f
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 0x504fd5
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 0x50502d
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.004b5d50
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.004b5d50
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.004b5d50
add esp, 0x24
cmp dword [esp + 0x50], 1
jne 0x505089
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 0x5050e4
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.004b6140
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.004b6140
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.004b6140
add esp, 0x24
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x505134
cmp dword [esp + 0x7c], 2
jne 0x505112
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 0x50514c
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.004b5d50
add esp, 0xc
jmp 0x50514c
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.004d5f00
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.004d5f00
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 0x505398
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 0x5053a1
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov ecx, dword [esp + 0x9c]
cmp ecx, edx
je 0x5053be
mov edx, esi
imul edx, dword [esp + 0xc4]
mov ecx, dword [edx + ecx]
mov dword [eax + 0x18], ecx
jmp 0x5053c5
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 0x504eaa
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 [0x84a7c8]
push ebx
call dword [ecx + 0x10c]
add esp, 4
jmp 0x505997
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 0x505997
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 0x5054b1
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 0x5054fc
cmp eax, 5
jne 0x5054fc
cmp ecx, 2
mov ebx, ecx
jge 0x5054de
mov edx, ecx
and edx, 0x80000001
jns 0x5054cc
dec edx
or edx, 0xfffffffe
inc edx
je 0x5054d6
lea esi, [ecx + 2]
lea edi, [ecx + 1]
jmp 0x5054fc
lea esi, [ecx + 1]
lea edi, [ecx + 2]
jmp 0x5054fc
mov eax, ecx
and eax, 0x80000001
jns 0x5054ec
dec eax
or eax, 0xfffffffe
inc eax
je 0x5054f6
lea esi, [ecx - 1]
lea edi, [ecx - 2]
jmp 0x5054fc
lea esi, [ecx - 2]
lea edi, [ecx - 1]
cmp dword [esp + 0x54], 2
jne 0x505572
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 0x5055d2
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.004b5d50
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.004b5d50
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.004b5d50
add esp, 0x24
mov eax, dword [esp + 0x50]
mov edx, ebx
cmp eax, 1
jne 0x505629
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 0x50567b
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.004b6140
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.004b6140
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.004b6140
add esp, 0x24
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x5056cb
cmp dword [esp + 0x7c], 2
jne 0x5056a9
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 0x5056e3
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.004b5d50
add esp, 0xc
jmp 0x5056e3
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.004d5f00
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.004d5f00
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 0x50592d
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 0x505938
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 0x505955
mov edx, ebx
imul edx, dword [esp + 0xc4]
mov ecx, dword [edx + ecx]
mov dword [eax + 0x18], ecx
jmp 0x50595c
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 0x505468
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 0x5059c3
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 0x5059a7
mov eax, 1
pop esi
add esp, 0x1f0
ret