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

Disassembly:
sub esp, 0xd4
mov ecx, 0xfffffffc
push ebx
push esi
push edi
push ebp
mov edx, dword [esp + 0xf8]
mov eax, dword [esp + 0xf0]
mov edi, dword [esp + 0xf4]
mov esi, dword [esp + 0x134]
mov edx, dword [edx]
mov eax, dword [eax]
mov dword [esp + 0x18], edx
mov edx, eax
shl edx, 2
mov edi, dword [edi]
mov dword [esp + 0x1c], edx
add edx, 0xc
mov dword [esp + 0x20], edx
mov edx, edi
add edx, 3
mov dword [esp + 0x14], edi
imul edx, dword [esp + 0x20]
mov esi, dword [esi]
mov dword [esp + 0x24], edx
mov edx, eax
add edx, 3
sub ecx, dword [esp + 0x14]
imul edx, ecx
mov ecx, edi
shl edx, 2
sub edx, 4
shl ecx, 2
mov dword [esp + 0x28], edx
sub ecx, 4
mov edx, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
dec edx
imul edx, dword [esp + 0x2c]
mov ecx, edi
mov edi, 4
dec ecx
imul ecx, dword [esp + 0x18]
lea edi, [edi + ecx*4]
mov ecx, dword [esp + 0x1c]
imul ecx, dword [esp + 0x14]
mov dword [esp + 0x30], edi
mov edi, 4
mov dword [esp + 0x34], ecx
imul ecx, dword [esp + 0x18]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x18]
inc ecx
imul ecx, dword [esp + 0x14]
inc ecx
imul ecx, eax
lea edi, [edi + ecx*4]
mov ecx, dword [esp + 0x1c]
sub ecx, 4
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x18]
dec ecx
mov edi, eax
imul ecx, dword [esp + 0x40]
dec edi
imul edi, dword [esp + 0x18]
mov dword [esp + 0x44], ecx
mov ecx, 4
lea edi, [ecx + edi*4]
mov ecx, dword [esp + 0x14]
dec ecx
mov dword [esp + 0x48], edi
imul ecx, dword [esp + 0x40]
mov edi, 4
mov dword [esp + 0x4c], ecx
mov ecx, eax
dec ecx
imul ecx, dword [esp + 0x14]
lea edi, [edi + ecx*4]
mov ecx, eax
dec ecx
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x14]
dec ecx
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x18]
dec ecx
cmp esi, 2
mov dword [esp + 0x5c], ecx
jle 0x4c5fc3
mov esi, 2
cmp esi, 0xffffffff
jge 0x4c5fcd
mov esi, 0xffffffff
mov ecx, esi
mov dword [esp + 0x60], esi
test ecx, ecx
jge 0x4c5fd9
neg ecx
mov esi, ecx
mov dword [esp + 0x64], ecx
add esi, esi
mov ecx, 1
sub ecx, esi
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x68], ecx
xor ecx, ecx
fild dword [esp + 0x68]
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x68], esi
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
fstp st(1)
setle cl
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x6c], ecx
test ecx, ecx
mov ecx, dword [esp + 0x2c]
jne 0x4c652c
add ecx, edx
add edx, edx
add edx, dword [esp + 0x2c]
add edi, dword [esp + 0x38]
add ebx, ebx
mov dword [esp + 0x70], ecx
add ebx, dword [esp + 0x34]
mov dword [esp + 0x74], edx
shl ebp, 2
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], ebx
sub ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x84], ebx
mov ebx, dword [esp + 0x124]
add ebp, dword [esp + 0x34]
sub ebx, dword [esp + 0x28]
mov dword [esp + 0x88], ebx
mov dword [esp + 0x80], ebp
lea ebx, [ebx + eax*4]
mov eax, dword [esp + 0x10c]
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0xfc]
mov dword [esp + 0x94], eax
test eax, eax
mov eax, dword [esp + 0x84]
jle 0x4c64c7
add eax, dword [esp + 0x20]
sub ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x8c]
mov esi, dword [esp + 0xfc]
add ecx, dword [esp + 0x70]
mov edi, dword [esp + 0x88]
mov dword [esp + 0xb4], eax
add ecx, 4
add ebp, eax
sub esi, dword [esp + 0x30]
lea edx, [edi + eax]
mov edi, dword [esp + 0x78]
mov dword [esp + 0x98], edx
add esi, dword [esp + 0x74]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], ebp
add esi, 4
add edi, dword [esp + 0x1c]
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], edi
mov edi, dword [esp + 0x7c]
add edi, dword [esp + 0x1c]
mov dword [esp + 0xac], edi
mov edi, dword [esp + 0x80]
add edi, dword [esp + 0x1c]
mov dword [esp + 0xb0], edi
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x118]
mov dword [esp + 0xb8], 1
test esi, esi
mov edi, dword [esp + 0x128]
jle 0x4c6420
sub eax, dword [esp + 0x28]
sub edi, dword [esp + 0x28]
mov edx, dword [esp + 0x12c]
mov ecx, dword [esp + 0xb4]
add edi, dword [esp + 0xb4]
mov ebp, dword [esp + 0xb4]
lea ecx, [eax + ecx + 8]
mov eax, dword [esp + 0x88]
add edi, 4
sub edx, dword [esp + 0x28]
lea ebp, [eax + ebp + 4]
mov eax, dword [esp + 0x90]
add edx, dword [esp + 0xb4]
mov dword [esp + 0xc0], edi
mov ebx, dword [esp + 0xa8]
mov edi, dword [esp + 0xac]
add edx, 4
mov dword [esp + 0xc4], edx
mov edx, dword [esp + 0xb0]
lea ebx, [eax + ebx + 4]
lea edi, [eax + edi + 4]
lea edx, [eax + edx + 4]
mov eax, dword [esp + 0x130]
sub eax, dword [esp + 0x28]
mov dword [esp + 0xbc], ebx
add eax, dword [esp + 0xb4]
add eax, 4
mov dword [esp + 0xc8], eax
cmp dword [esp + 0xb8], 1
mov eax, dword [esp + 0x98]
mov ebx, dword [esp + 0xe8]
jne 0x4c629d
fld dword [eax]
cmp dword [esp + 0x60], 0
mov eax, dword [esp + 0x64]
fstp st(2)
jle 0x4c627d
mov eax, dword [esp + 0x9c]
mov eax, dword [eax]
shl eax, 2
add eax, dword [esp + 0xec]
mov eax, dword [eax]
fld dword [ebx + eax*4 - 4]
fadd dword [0x576c48]
fnstcw word [esp + 0xd0]
mov ax, word [esp + 0xd0]
or ax, 0xc00
mov word [esp + 0xd2], ax
fldcw word [esp + 0xd2]
fistp dword [esp + 0xcc]
mov eax, dword [esp + 0xcc]
fldcw word [esp + 0xd0]
test eax, eax
jle 0x4c62a5
fld dword [ecx - 4]
fadd dword [ecx]
fdivr dword [ecx - 4]
fmul st(1)
fstp st(2)
fld dword [ebp]
fstp st(3)
fld dword [ebp + 4]
fsub st(3)
fmul st(2)
fadd st(3)
jmp 0x4c62a3
fld dword [0x590674]
fstp st(2)
mov eax, dword [esp + 0xb8]
mov ebx, dword [esp + 0xa0]
cmp eax, dword [esp + 0x54]
mov eax, dword [esp + 0xa4]
jne 0x4c6343
mov ebx, dword [ebx]
mov dword [0x590674], ebx
mov ebx, dword [esp + 0x64]
cmp dword [esp + 0x60], 0
jle 0x4c6330
mov eax, dword [eax]
shl eax, 2
mov ebx, dword [esp + 0xe8]
add eax, dword [esp + 0xec]
mov eax, dword [eax]
fld dword [ebx + eax*4 - 4]
fadd dword [0x576c48]
fnstcw word [esp + 0xd0]
mov ax, word [esp + 0xd0]
or ax, 0xc00
mov word [esp + 0xd2], ax
fldcw word [esp + 0xd2]
fistp dword [esp + 0xcc]
mov ebx, dword [esp + 0xcc]
fldcw word [esp + 0xd0]
test ebx, ebx
jle 0x4c6361
fld dword [ebp]
fstp st(3)
fld st(1)
fsub st(3)
fmul st(1)
fadd st(3)
jmp 0x4c635b
fld dword [ecx - 4]
fadd dword [ecx]
fdivr dword [ecx - 4]
fstp st(3)
fld dword [ebp]
fstp st(4)
fld dword [ebp + 4]
fsub st(4)
fmul st(3)
fadd st(4)
fstp dword [0x590674]
mov eax, dword [esp + 0xbc]
mov ebx, dword [esp + 0xbc]
fld st(1)
fmul dword [eax]
mov eax, dword [esp + 0xc0]
fstp st(3)
fld dword [0x590674]
fmul dword [ebx + 4]
mov ebx, dword [esp + 0xc4]
fsub st(3)
fstp dword [eax]
fld st(1)
fmul dword [edi]
fstp st(3)
fld dword [0x590674]
fmul dword [edi + 4]
fsub st(3)
fstp dword [ebx]
mov ebx, dword [esp + 0xc8]
fld dword [edx]
fmulp st(2)
fld dword [0x590674]
fmul dword [edx + 4]
fsub st(2)
fstp dword [ebx]
mov ebx, dword [esp + 0xb8]
inc ebx
add ecx, 4
mov dword [esp + 0xb8], ebx
mov ebx, dword [esp + 0xbc]
add ebp, 4
add ebx, 4
mov dword [esp + 0xbc], ebx
add eax, 4
mov ebx, dword [esp + 0xc4]
mov dword [esp + 0xc0], eax
add edi, 4
add ebx, 4
mov eax, dword [esp + 0xc8]
add edx, 4
add eax, 4
dec esi
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], eax
test esi, esi
jg 0x4c61f9
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x9c]
add ebx, dword [esp + 0x98]
mov esi, dword [esp + 0x20]
add eax, 4
mov edi, dword [esp + 0xa4]
add esi, dword [esp + 0xa0]
add edi, 4
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x9c], eax
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0xa4], edi
add edx, dword [esp + 0xa8]
mov eax, dword [esp + 0x1c]
add ebp, dword [esp + 0xac]
mov edi, dword [esp + 0x20]
add eax, dword [esp + 0xb0]
add edi, dword [esp + 0xb4]
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x98], ebx
dec ecx
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], ebp
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], edi
mov dword [esp + 0x94], ecx
test ecx, ecx
jg 0x4c6135
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x2c]
add ebx, dword [esp + 0x70]
mov edx, dword [esp + 0x34]
add esi, dword [esp + 0x74]
mov ebp, dword [esp + 0x34]
add edx, dword [esp + 0x78]
mov eax, dword [esp + 0x34]
add ebp, dword [esp + 0x7c]
mov edi, dword [esp + 0x24]
add eax, dword [esp + 0x80]
add edi, dword [esp + 0x84]
mov ecx, dword [esp + 0x68]
dec ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edi
mov dword [esp + 0x68], ecx
test ecx, ecx
jg 0x4c608d
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x6c], 0
mov dword [esp + 0x2c], ebx
mov edi, dword [esp + 0x14]
jne 0x4c6b1e
add eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
imul edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
add edi, dword [esp + 0x24]
add edx, edx
add edx, dword [esp + 0x40]
add ecx, dword [esp + 0x38]
add ebp, ebp
mov dword [esp + 0x14], edi
add ebp, dword [esp + 0x34]
mov dword [esp + 0x44], edx
shl eax, 2
mov dword [esp + 0x68], ecx
sub eax, dword [esp + 0x38]
mov dword [esp + 0x70], ebp
add eax, dword [esp + 0x34]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x110]
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x80], eax
test eax, eax
mov eax, dword [esp + 0x124]
jle 0x4c6ab9
sub eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x44]
add edx, eax
mov eax, dword [esp + 0x100]
mov ecx, edx
mov dword [esp + 0x84], edx
add ecx, 4
sub eax, dword [esp + 0x48]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x98], 4
lea ebp, [eax + ebp + 4]
mov eax, dword [esp + 0x124]
sub eax, dword [esp + 0x28]
mov dword [esp + 0x8c], ebp
lea ebx, [eax + ebx + 4]
mov eax, dword [esp + 0x100]
sub eax, dword [esp + 0x48]
mov dword [esp + 0x90], ebx
mov ebx, dword [esp + 0x68]
lea esi, [eax + esi + 4]
mov eax, dword [esp + 0x11c]
sub eax, dword [esp + 0x28]
mov dword [esp + 0x94], esi
add eax, dword [esp + 0x78]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x7c]
add ebx, eax
mov dword [esp + 0xa0], ebx
mov ebx, dword [esp + 0x70]
add ebx, eax
add eax, dword [esp + 0x74]
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x58]
mov ebp, dword [esp + 0x98]
mov dword [esp + 0xac], eax
test eax, eax
mov dword [esp + 0xb0], 1
jle 0x4c6a4b
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x84]
mov ecx, eax
mov esi, dword [esp + 0x20]
add ecx, dword [esp + 0x98]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x20]
add ecx, ecx
add ecx, dword [esp + 0x10]
add ebp, dword [esp + 0x20]
add edx, ebp
mov dword [esp + 0xb4], ecx
lea edi, [eax + ebp]
mov eax, dword [esp + 0x84]
add eax, dword [esp + 0x98]
lea esi, [eax + esi*2]
mov eax, dword [esp + 0x1c]
add eax, eax
mov dword [esp + 0xb8], esi
add eax, dword [esp + 0x98]
mov esi, dword [esp + 0xa0]
lea ecx, [esi + eax]
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0x98]
add ecx, dword [esp + 0x1c]
add esi, ecx
mov dword [esp + 0xc0], esi
mov esi, dword [esp + 0x128]
sub esi, dword [esp + 0x28]
lea ebx, [esi + ebp]
mov esi, dword [esp + 0x78]
add esi, ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0xc4], esi
lea esi, [ebx + eax]
add ebx, ecx
mov dword [esp + 0xc8], esi
mov esi, dword [esp + 0x12c]
sub esi, dword [esp + 0x28]
mov dword [esp + 0xcc], ebx
lea ebx, [esi + ebp]
mov esi, dword [esp + 0x78]
add esi, ebx
mov ebx, dword [esp + 0xa8]
add eax, ebx
add ebx, ecx
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x130]
sub eax, dword [esp + 0x28]
lea ecx, [eax + ebp]
mov ebp, dword [esp + 0x78]
add ebp, ecx
cmp dword [esp + 0xb0], 1
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0xe8]
jne 0x4c6842
fld dword [eax]
cmp dword [esp + 0x60], 0
mov eax, dword [esp + 0x64]
fstp st(2)
jle 0x4c6818
mov eax, dword [esp + 0x8c]
mov eax, dword [eax]
shl eax, 2
add eax, dword [esp + 0xec]
mov eax, dword [eax]
fld dword [ecx + eax*4 - 4]
fadd dword [0x576c48]
fnstcw word [esp + 0xd8]
mov ax, word [esp + 0xd8]
or ax, 0xc00
mov word [esp + 0xda], ax
fldcw word [esp + 0xda]
fistp dword [esp + 0xd4]
mov eax, dword [esp + 0xd4]
fldcw word [esp + 0xd8]
test eax, eax
mov ecx, dword [esp + 0xb4]
jle 0x4c684a
fld dword [edi]
fadd dword [ecx]
mov ecx, dword [esp + 0xb8]
fdivr dword [edi]
fmul st(1)
fstp st(2)
fld dword [edx]
fstp st(3)
fld dword [ecx]
fsub st(3)
fmul st(2)
fadd st(3)
jmp 0x4c6848
fld dword [0x590670]
fstp st(2)
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0x90]
cmp eax, dword [esp + 0x58]
mov eax, dword [esp + 0x94]
jne 0x4c68e7
mov ecx, dword [ecx]
mov dword [0x590670], ecx
mov ecx, dword [esp + 0x64]
cmp dword [esp + 0x60], 0
jle 0x4c68d5
mov eax, dword [eax]
shl eax, 2
mov ecx, dword [esp + 0xe8]
add eax, dword [esp + 0xec]
mov eax, dword [eax]
fld dword [ecx + eax*4 - 4]
fadd dword [0x576c48]
fnstcw word [esp + 0xd8]
mov ax, word [esp + 0xd8]
or ax, 0xc00
mov word [esp + 0xda], ax
fldcw word [esp + 0xda]
fistp dword [esp + 0xd4]
mov ecx, dword [esp + 0xd4]
fldcw word [esp + 0xd8]
test ecx, ecx
jle 0x4c690f
fld dword [edx]
fstp st(3)
fld st(1)
fsub st(3)
fmul st(1)
fadd st(3)
jmp 0x4c6909
fld dword [edi]
mov eax, dword [esp + 0xb4]
fadd dword [eax]
mov eax, dword [esp + 0xb8]
fdivr dword [edi]
fstp st(3)
fld dword [edx]
fstp st(4)
fld dword [eax]
fsub st(4)
fmul st(3)
fadd st(4)
fstp dword [0x590670]
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xc4]
fld dword [0x590670]
fmul dword [eax]
mov eax, dword [esp + 0xc0]
fadd dword [ecx]
fstp st(3)
fld st(1)
fmul dword [eax]
mov eax, dword [esp + 0xc8]
fsubr st(3)
fstp dword [ecx]
mov ecx, dword [esp + 0xcc]
fld dword [0x590670]
fmul dword [eax]
mov eax, dword [esp + 0x20]
fadd dword [esi]
fstp st(3)
fld st(1)
fmul dword [ecx]
mov ecx, dword [esp + 0xd0]
fsubr st(3)
fstp dword [esi]
fld dword [0x590670]
fmul dword [ecx]
mov ecx, dword [esp + 0xb0]
inc ecx
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x20]
fadd dword [ebp]
add ecx, dword [esp + 0xb4]
add edi, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x20]
fstp st(3)
fld st(1)
add edx, ecx
mov ecx, dword [esp + 0x1c]
fmul dword [ebx]
add eax, dword [esp + 0xb8]
add ecx, dword [esp + 0xbc]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
fsubr st(3)
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add eax, dword [esp + 0xc0]
add ecx, dword [esp + 0xc4]
fstp dword [ebp]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ecx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
add eax, dword [esp + 0xc8]
add ecx, dword [esp + 0xcc]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add esi, eax
add ecx, dword [esp + 0xd0]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xd0], ecx
add ebx, eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0xac]
add ebp, ecx
dec eax
mov dword [esp + 0xac], eax
test eax, eax
jg 0x4c6794
mov edi, dword [esp + 0x98]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
add edi, 4
mov ebx, dword [esp + 0x90]
add eax, 4
mov esi, dword [esp + 0x94]
add ecx, 4
mov ebp, dword [esp + 0x80]
add ebx, 4
add esi, 4
dec ebp
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], edi
mov dword [esp + 0x80], ebp
test ebp, ebp
jg 0x4c667d
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x24]
add ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
add esi, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
add edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x34]
add eax, dword [esp + 0x68]
mov edi, dword [esp + 0x34]
add ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x30], ecx
add edi, dword [esp + 0x74]
add ebp, dword [esp + 0x78]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], esi
dec ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], ebp
mov dword [esp + 0x2c], ecx
test ecx, ecx
jg 0x4c65ae
mov esi, dword [esp + 0x54]
cmp dword [esp + 0x18], 2
mov ebp, dword [esp + 0x124]
mov eax, dword [esp + 0x18]
je 0x4c7096
mov dword [esp + 0x14], esi
test esi, esi
mov ebx, dword [esp + 0x104]
jle 0x4c7096
sub ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x4c]
imul eax, dword [esp + 0x24]
mov ecx, ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], 4
add ecx, eax
sub ebx, dword [esp + 0x50]
add esi, esi
mov eax, dword [esp + 0x114]
mov dword [esp + 0x44], ebx
add esi, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x50], eax
test eax, eax
mov eax, dword [esp + 0x30]
jle 0x4c707a
add esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x2c]
add esi, eax
add ecx, dword [esp + 0x40]
mov dword [esp + 0x68], esi
mov esi, dword [esp + 0x20]
add ebx, ecx
mov ecx, dword [esp + 0x4c]
add ecx, ebx
mov ebx, dword [esp + 0x2c]
add ebx, dword [esp + 0x20]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x80], esi
add ebx, dword [esp + 0x18]
add edi, dword [esp + 0x40]
add edi, dword [esp + 0x48]
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x78], edi
mov edi, dword [esp + 0x120]
sub edi, dword [esp + 0x28]
mov dword [esp + 0x7c], ebx
add edi, dword [esp + 0x2c]
add eax, dword [esp + 0x2c]
mov dword [esp + 0x84], edi
mov edi, dword [esp + 0x2c]
add edi, dword [esp + 0x38]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x3c]
add edi, eax
mov dword [esp + 0x8c], edi
mov edi, eax
add edi, dword [esp + 0x2c]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x38]
add edi, edi
add edi, dword [esp + 0x10]
mov dword [esp + 0x90], edi
mov edi, dword [esp + 0x38]
shl edi, 2
sub edi, dword [esp + 0x38]
add edi, dword [esp + 0x2c]
add edi, eax
mov dword [esp + 0x94], edi
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x80]
cmp dword [esp + 0x6c], 0
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], 1
jne 0x4c701b
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov edx, eax
add edx, dword [esp + 0x80]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x24]
add edx, edx
add edx, dword [esp + 0x10]
add ebx, dword [esp + 0x24]
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x8c]
lea esi, [ecx + ebx]
add ecx, dword [esp + 0x80]
lea ebp, [eax + ebx]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x24]
add ecx, ecx
add ecx, dword [esp + 0x10]
add eax, eax
add eax, dword [esp + 0x7c]
mov dword [esp + 0xa4], ecx
lea ecx, [edx + eax]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x7c]
add ecx, dword [esp + 0x34]
add edx, ecx
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0x128]
sub edx, dword [esp + 0x28]
lea edi, [edx + ebx]
mov edx, dword [esp + 0x2c]
add edx, edi
mov edi, dword [esp + 0x90]
mov dword [esp + 0xb0], edx
lea edx, [edi + eax]
add edi, ecx
mov dword [esp + 0xb4], edx
mov edx, dword [esp + 0x12c]
sub edx, dword [esp + 0x28]
mov dword [esp + 0xb8], edi
lea edi, [edx + ebx]
mov edx, dword [esp + 0x2c]
add edx, edi
mov edi, dword [esp + 0x94]
add eax, edi
add edi, ecx
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x130]
sub eax, dword [esp + 0x28]
lea ecx, [eax + ebx]
mov ebx, dword [esp + 0x2c]
add ebx, ecx
cmp dword [esp + 0x9c], 1
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0xe8]
jne 0x4c6e22
fld dword [eax]
cmp dword [esp + 0x60], 0
mov eax, dword [esp + 0x64]
fstp st(2)
jle 0x4c6df6
mov eax, dword [esp + 0x70]
mov eax, dword [eax]
shl eax, 2
add eax, dword [esp + 0xec]
mov eax, dword [eax]
fld dword [ecx + eax*4 - 4]
fadd dword [0x576c48]
fnstcw word [esp + 0xc4]
mov ax, word [esp + 0xc4]
or ax, 0xc00
mov word [esp + 0xc6], ax
fldcw word [esp + 0xc6]
fistp dword [esp + 0xc0]
mov eax, dword [esp + 0xc0]
fldcw word [esp + 0xc4]
test eax, eax
mov ecx, dword [esp + 0xa0]
jle 0x4c6e2a
fld dword [ebp]
fadd dword [ecx]
mov ecx, dword [esp + 0xa4]
fdivr dword [ebp]
fmul st(1)
fstp st(2)
fld dword [esi]
fstp st(3)
fld dword [ecx]
fsub st(3)
fmul st(2)
fadd st(3)
jmp 0x4c6e28
fld dword [0x59066c]
fstp st(2)
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x74]
cmp eax, dword [esp + 0x5c]
mov eax, dword [esp + 0x78]
jne 0x4c6eb7
mov ecx, dword [ecx]
mov dword [0x59066c], ecx
mov ecx, dword [esp + 0x64]
cmp dword [esp + 0x60], 0
jle 0x4c6ea5
mov eax, dword [eax]
shl eax, 2
mov ecx, dword [esp + 0xe8]
add eax, dword [esp + 0xec]
mov eax, dword [eax]
fld dword [ecx + eax*4 - 4]
fadd dword [0x576c48]
fnstcw word [esp + 0xc0]
mov ax, word [esp + 0xc0]
or ax, 0xc00
mov word [esp + 0xc2], ax
fldcw word [esp + 0xc2]
fistp dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
fldcw word [esp + 0xc0]
test ecx, ecx
jle 0x4c6ee1
fld dword [esi]
fstp st(3)
fld st(1)
fsub st(3)
fmul st(1)
fadd st(3)
jmp 0x4c6edb
fld dword [ebp]
mov eax, dword [esp + 0xa0]
fadd dword [eax]
mov eax, dword [esp + 0xa4]
fdivr dword [ebp]
fstp st(3)
fld dword [esi]
fstp st(4)
fld dword [eax]
fsub st(4)
fmul st(3)
fadd st(4)
fstp dword [0x59066c]
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xb0]
fld dword [0x59066c]
fmul dword [eax]
mov eax, dword [esp + 0xac]
fadd dword [ecx]
fstp st(3)
fld st(1)
fmul dword [eax]
mov eax, dword [esp + 0xb4]
fsubr st(3)
fstp dword [ecx]
mov ecx, dword [esp + 0xb8]
fld dword [0x59066c]
fmul dword [eax]
mov eax, dword [esp + 0x24]
fadd dword [edx]
fstp st(3)
fld st(1)
fmul dword [ecx]
mov ecx, dword [esp + 0xbc]
fsubr st(3)
fstp dword [edx]
fld dword [0x59066c]
fmul dword [ecx]
mov ecx, dword [esp + 0x9c]
inc ecx
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x24]
fadd dword [ebx]
add ecx, dword [esp + 0xa0]
add ebp, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x24]
fstp st(3)
fld st(1)
add esi, ecx
mov ecx, dword [esp + 0x34]
fmul dword [edi]
add eax, dword [esp + 0xa4]
add ecx, dword [esp + 0xa8]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ecx
fsubr st(3)
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
add eax, dword [esp + 0xac]
add ecx, dword [esp + 0xb0]
fstp dword [ebx]
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
add eax, dword [esp + 0xb4]
add ecx, dword [esp + 0xb8]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
add edx, eax
add ecx, dword [esp + 0xbc]
mov eax, dword [esp + 0x34]
mov dword [esp + 0xbc], ecx
add edi, eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x98]
add ebx, ecx
dec eax
mov dword [esp + 0x98], eax
test eax, eax
jg 0x4c6d78
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
add eax, dword [esp + 0x68]
add ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x40]
add ebx, dword [esp + 0x74]
mov edi, dword [esp + 0x1c]
add esi, dword [esp + 0x78]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x70], ecx
add edi, dword [esp + 0x7c]
add ebp, dword [esp + 0x80]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x68], eax
dec ecx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], ebp
mov dword [esp + 0x50], ecx
test ecx, ecx
jg 0x4c6c63
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
add esi, 4
dec edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], edx
test edx, edx
jg 0x4c6b8d
mov eax, dword [esp + 0x54]
mov dword [esp + 0x10], eax
test eax, eax
jle 0x4c7328
xor edx, edx
cmp dword [esp + 0x5c], 6
mov dword [esp + 0x14], 4
setle dl
mov dword [esp + 0x18], edx
mov esi, dword [esp + 0x58]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x1c], esi
test esi, esi
jle 0x4c730a
mov dword [esp + 0x2c], ebp
cmp dword [esp + 0x6c], 0
mov edx, dword [esp + 0x108]
mov ecx, dword [esp + 0x2c]
jne 0x4c72ed
sub edx, dword [esp + 0x28]
add ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x5c]
lea ebx, [edx + ecx]
mov edx, dword [esp + 0x14]
add edx, ebx
mov ebx, dword [esp + 0x128]
sub ebx, dword [esp + 0x28]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x34], edx
lea eax, [ebx + ecx]
mov ebx, dword [esp + 0x14]
add ebx, eax
mov eax, dword [esp + 0x12c]
sub eax, dword [esp + 0x28]
lea ebp, [eax + ecx]
mov eax, dword [esp + 0x14]
add eax, ebp
mov ebp, dword [esp + 0x130]
sub ebp, dword [esp + 0x28]
lea edi, [ebp + ecx]
mov ecx, dword [esp + 0x14]
add ecx, edi
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x24]
test edx, edx
jne 0x4c72b8
mov edx, dword [esp + 0x30]
fld dword [edx]
mov edx, dword [esp + 0x24]
fstp st(1)
fld dword [ebx]
add edx, dword [esp + 0x30]
fdiv st(1)
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
fstp dword [ebx]
add ebx, edx
mov edx, dword [esp + 0x30]
fld dword [eax]
fdiv st(1)
fstp dword [eax]
add eax, ebp
fld dword [ecx]
fdiv st(1)
fstp dword [ecx]
add ecx, edi
fld dword [edx]
mov edx, dword [esp + 0x24]
fstp st(1)
fld dword [ebx]
add edx, dword [esp + 0x30]
fdiv st(1)
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
fstp dword [ebx]
add ebx, edx
mov edx, dword [esp + 0x30]
fld dword [eax]
fdiv st(1)
fstp dword [eax]
add eax, ebp
fld dword [ecx]
fdiv st(1)
fstp dword [ecx]
add ecx, edi
fld dword [edx]
mov edx, dword [esp + 0x24]
fstp st(1)
fld dword [ebx]
add edx, dword [esp + 0x30]
fdiv st(1)
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
fstp dword [ebx]
add ebx, edx
mov edx, dword [esp + 0x30]
fld dword [eax]
fdiv st(1)
fstp dword [eax]
add eax, ebp
fld dword [ecx]
fdiv st(1)
fstp dword [ecx]
add ecx, edi
fld dword [edx]
mov edx, dword [esp + 0x24]
fstp st(1)
fld dword [ebx]
add edx, dword [esp + 0x30]
fdiv st(1)
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
fstp dword [ebx]
add ebx, edx
mov edx, dword [esp + 0x30]
fld dword [eax]
fdiv st(1)
fstp dword [eax]
add eax, ebp
fld dword [ecx]
fdiv st(1)
fstp dword [ecx]
add ecx, edi
fld dword [edx]
mov edx, dword [esp + 0x24]
fstp st(1)
fld dword [ebx]
add edx, dword [esp + 0x30]
fdiv st(1)
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
fstp dword [ebx]
add ebx, edx
mov edx, dword [esp + 0x30]
fld dword [eax]
fdiv st(1)
fstp dword [eax]
add eax, ebp
fld dword [ecx]
fdiv st(1)
fstp dword [ecx]
add ecx, edi
fld dword [edx]
mov edx, dword [esp + 0x24]
fstp st(1)
fld dword [ebx]
add edx, dword [esp + 0x30]
fdiv st(1)
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
fstp dword [ebx]
add ebx, edx
mov edx, dword [esp + 0x30]
fld dword [eax]
fdiv st(1)
fstp dword [eax]
add eax, ebp
fld dword [ecx]
fdiv st(1)
fstp dword [ecx]
add ecx, edi
fld dword [edx]
mov edx, dword [esp + 0x24]
fstp st(1)
fld dword [ebx]
add edx, dword [esp + 0x30]
fdiv st(1)
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
fstp dword [ebx]
add ebx, edx
fld dword [eax]
fdiv st(1)
fstp dword [eax]
add eax, ebp
fld dword [ecx]
fdiv st(1)
fstp dword [ecx]
add ecx, edi
sub esi, 7
cmp esi, 6
jg 0x4c7158
test esi, esi
jle 0x4c72ed
mov edx, dword [esp + 0x30]
fld dword [edx]
mov edx, dword [esp + 0x24]
fstp st(1)
fld dword [ebx]
add edx, dword [esp + 0x30]
fdiv st(1)
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
fstp dword [ebx]
add ebx, edx
fld dword [eax]
fdiv st(1)
fstp dword [eax]
add eax, ebp
fld dword [ecx]
fdiv st(1)
fstp dword [ecx]
add ecx, edi
dec esi
test esi, esi
jg 0x4c72b8
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
add edx, dword [esp + 0x2c]
dec esi
mov dword [esp + 0x1c], esi
test esi, esi
mov dword [esp + 0x2c], edx
jg 0x4c70d4
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
add eax, 4
dec ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebp
test ebp, ebp
jg 0x4c70bc
ffree st(3)
ffree st(2)
ffree st(1)
ffree st(0)
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xd4
ret 0x50