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

Disassembly:
sub esp, 0x1d4
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1e8]
push edi
call fcn.004a0b80
add esp, 4
test eax, eax
jne 0x4a13af
push edi
call fcn.004a0b60
add esp, 4
test eax, eax
je 0x4a2985
mov ebx, dword [esp + 0x1ec]
push ebx
call fcn.004a0b80
add esp, 4
test eax, eax
jne 0x4a13d4
push ebx
call fcn.004a0b60
add esp, 4
test eax, eax
je 0x4a2985
mov eax, dword [0xc68e34]
lea ebx, [ebx + ebx*2]
lea esi, [edi + edi*2]
shl esi, 4
shl ebx, 4
add esi, eax
add ebx, eax
push edi
mov dword [esp + 0x100], esi
mov dword [esp + 0x80], ebx
call fcn.004a0b60
mov ebp, ebx
add esp, 4
xor edx, edx
mov dword [esp + 0x14c], eax
lea edi, [ebx + 0xc]
lea ecx, [esi + 0x18]
sub ebp, esi
fld dword [ecx + ebp]
fadd dword [0x4bd1c0]
fcomp dword [ecx - 0xc]
fnstsw ax
test ah, 1
jne 0x4a2985
fld dword [edi]
fsub dword [0x4bd1c0]
fcomp dword [ecx]
fnstsw ax
test ah, 0x41
je 0x4a2985
inc edx
add ecx, 4
add edi, 4
cmp edx, 2
jl 0x4a1413
mov ecx, dword [esi + 4]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x1c], 0x47c34f80
mov dword [esp + 0x118], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0xc8], 0x47c34f80
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0xf8], eax
jle 0x4a2985
mov edi, dword [0xc68e04]
mov eax, dword [esp + 0xfc]
mov ecx, dword [eax + 8]
mov esi, dword [esp + 0xf8]
mov edx, dword [0xc68e2c]
add ecx, esi
mov eax, dword [edx + ecx*4]
xor ecx, ecx
test eax, eax
cdq
setl cl
xor eax, edx
sub eax, edx
lea edx, [eax + eax*2]
mov eax, dword [0xc68e24]
lea eax, [eax + edx*8]
mov dword [esp + 0xcc], eax
mov dword [esp + 0x104], ecx
test byte [eax + 4], 4
jne 0x4a1530
mov eax, dword [esp + 0x14c]
test eax, eax
je 0x4a2151
mov esi, dword [esp + 0x104]
mov ecx, dword [esp + 0xcc]
mov edx, dword [ecx]
xor eax, eax
test esi, esi
sete al
xor eax, edx
lea edx, [eax + eax*4]
mov eax, dword [0xc68e0c]
fld dword [eax + edx*4 + 8]
lea eax, [eax + edx*4]
fcomp qword [str.ffffff]
fnstsw ax
test ah, 1
jne 0x4a2151
mov eax, ecx
mov ecx, dword [eax + 8]
test ecx, ecx
mov dword [esp + 0xf4], 0
jle 0x4a2151
mov esi, dword [esp + 0xcc]
mov ebp, dword [esp + 0xf4]
mov ecx, dword [esi + 0xc]
mov edx, dword [0xc68e1c]
add ecx, ebp
mov eax, dword [edx + ecx*4]
xor ecx, ecx
test eax, eax
setl cl
mov ebp, ecx
test byte [esi + 4], 4
jne 0x4a1581
mov ecx, dword [esp + 0x104]
xor edx, edx
cmp ebp, ecx
sete dl
mov ebp, edx
cdq
mov esi, eax
mov eax, dword [0xc68e14]
xor esi, edx
sub esi, edx
xor edx, edx
test ebp, ebp
sete dl
lea ecx, [eax + esi*8]
mov dword [esp + 0x108], 0
mov eax, dword [ecx + edx*4]
mov ecx, dword [ecx + ebp*4]
lea eax, [eax + eax*2]
mov edx, dword [edi + eax*4]
lea eax, [edi + eax*4]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x30], eax
lea ecx, [ecx + ecx*2]
lea eax, [edi + ecx*4]
mov ecx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [eax]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 8]
fld dword [esp + 0x40]
fsub dword [esp + 0x28]
mov dword [esp + 0x44], ecx
fld dword [esp + 0x44]
mov dword [esp + 0x48], edx
fsub dword [esp + 0x2c]
lea eax, [esp + 0xac]
fld dword [esp + 0x48]
push eax
fsub dword [esp + 0x34]
mov dword [esp + 0xb8], 0
fstp dword [esp + 0x198]
fsub dword [esp + 0x10c]
fstp dword [esp + 0xb0]
fld dword [esp + 0x10c]
fsub st(1)
fstp dword [esp + 0xb4]
fstp st(0)
call fcn.0042c7d0
mov ecx, dword [ebx + 4]
fstp st(0)
fld dword [esp + 0xb8]
mov edi, dword [0xc68e04]
fmul dword [esp + 0x34]
xor eax, eax
fld dword [esp + 0xb4]
add esp, 4
test ecx, ecx
fmul dword [esp + 0x2c]
mov dword [esp + 0x100], eax
faddp st(1)
fld dword [esp + 0xac]
fmul dword [esp + 0x28]
faddp st(1)
jle 0x4a212e
mov ecx, dword [ebx + 8]
mov edx, dword [0xc68e2c]
add ecx, eax
mov eax, dword [edx + ecx*4]
mov ecx, dword [0xc68e24]
cdq
xor eax, edx
sub eax, edx
lea eax, [eax + eax*2]
lea ebp, [ecx + eax*8]
test byte [ebp + 4], 4
je 0x4a2110
mov eax, dword [ebp + 8]
xor ebx, ebx
test eax, eax
jle 0x4a2110
mov edx, dword [ebp + 0xc]
mov eax, dword [0xc68e1c]
mov ecx, dword [0xc68e14]
add edx, ebx
mov eax, dword [eax + edx*4]
cdq
xor eax, edx
sub eax, edx
lea ecx, [ecx + eax*8]
mov eax, dword [ecx]
lea edx, [eax + eax*2]
lea eax, [edi + edx*4]
mov edx, dword [eax]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], edx
fld dword [esp + 0x54]
lea ecx, [ecx + ecx*2]
fmul dword [esp + 0xb4]
mov edx, dword [edi + ecx*4]
fld dword [esp + 0x50]
lea eax, [edi + ecx*4]
fmul dword [esp + 0xb0]
mov ecx, dword [eax + 4]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 8]
faddp st(1)
mov dword [esp + 0x38], ecx
fld dword [esp + 0x4c]
mov dword [esp + 0x3c], edx
fmul dword [esp + 0xac]
faddp st(1)
fsub st(1)
fcom qword [0x4bc390]
fnstsw ax
test ah, 1
jne 0x4a2102
fcomp qword [0x4bc330]
fnstsw ax
test ah, 0x41
je 0x4a2104
fld dword [esp + 0x3c]
fmul dword [esp + 0xb4]
fld dword [esp + 0x38]
fmul dword [esp + 0xb0]
faddp st(1)
fld dword [esp + 0x34]
fmul dword [esp + 0xac]
faddp st(1)
fsub st(1)
fcom qword [0x4bc390]
fnstsw ax
test ah, 1
jne 0x4a2102
fcomp qword [0x4bc330]
fnstsw ax
test ah, 0x41
je 0x4a2104
fld dword [0x4bc2d8]
mov eax, dword [esp + 0x30]
fld st(0)
mov ecx, dword [esp + 0x48]
fsub dword [esp + 0xb0]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x3c]
fstp dword [esp + 0x140]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
fsubr dword [esp + 0xac]
mov dword [esp + 0x58], edx
fld dword [0x4bc2d8]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld dword [esp + 0x140]
fmul dword [esp + 0x140]
faddp st(1)
fld st(1)
fmul dword [esp + 0x30]
fld st(3)
fmul dword [esp + 0x2c]
faddp st(1)
fld dword [esp + 0x140]
fmul dword [esp + 0x28]
faddp st(1)
fdiv st(1)
fstp dword [esp + 0x14]
fld st(1)
fmul dword [esp + 0x48]
fld st(3)
fmul dword [esp + 0x44]
faddp st(1)
fld dword [esp + 0x140]
fmul dword [esp + 0x40]
faddp st(1)
fdiv st(1)
fstp dword [esp + 0x10]
fld st(1)
fmul dword [esp + 0x54]
fld st(3)
fmul dword [esp + 0x50]
faddp st(1)
fld dword [esp + 0x140]
fmul dword [esp + 0x4c]
faddp st(1)
fdiv st(1)
fstp dword [esp + 0x18]
fxch st(1)
fmul dword [esp + 0x3c]
fxch st(2)
fmul dword [esp + 0x38]
faddp st(2)
fld dword [esp + 0x140]
fmul dword [esp + 0x34]
faddp st(2)
fxch st(1)
fdiv st(1)
fstp dword [esp + 0x20]
fstp st(0)
fld dword [esp + 0x14]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
jne 0x4a18fc
mov ecx, dword [esp + 0x10]
fld dword [esp + 0x14]
mov edx, dword [esp + 0x48]
fstp dword [esp + 0x10]
mov eax, dword [esp + 0x30]
fld dword [esp + 0x28]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x5c], edx
mov edx, eax
mov dword [esp + 0x138], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x40]
fstp dword [esp + 0x40]
mov dword [esp + 0x13c], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x138]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x13c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
fld dword [esp + 0x18]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 0x41
jne 0x4a1978
mov edx, dword [esp + 0x20]
fld dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
fstp dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
fld dword [esp + 0x4c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x58], eax
mov eax, ecx
mov dword [esp + 0x138], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x34]
fstp dword [esp + 0x34]
mov dword [esp + 0x13c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x138]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x13c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
fld dword [esp + 0x10]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x4a2104
fld dword [esp + 0x20]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x4a2104
fstp st(0)
fld dword [esp + 0x14]
fsub qword [0x4bc320]
fld dword [esp + 0x18]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4a1aaf
fld dword [esp + 0x20]
fld dword [esp + 0x10]
fadd qword [0x4bc320]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4a1aaf
fld dword [esp + 0x18]
fsub qword [0x4bc320]
fld dword [esp + 0x14]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4a1aaf
fld dword [esp + 0x10]
fld dword [esp + 0x20]
fadd qword [0x4bc320]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4a1aaf
mov eax, dword [esp + 0x28]
fld dword [esp + 0x58]
mov ecx, dword [esp + 0x2c]
fsub dword [esp + 0x5c]
mov edx, dword [esp + 0x30]
fld dword [esp + 0x98]
fsub dword [esp + 0x9c]
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xe0], ecx
mov ecx, dword [esp + 0x44]
fstp dword [esp + 0x10]
mov dword [esp + 0xe4], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xd8], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xc0], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
jmp 0x4a1d65
fld dword [esp + 0x14]
fld dword [esp + 0x18]
fsub qword [0x4bc330]
fcompp
fnstsw ax
test ah, 1
je 0x4a1b25
fld dword [esp + 0x14]
fld dword [esp + 0x18]
fadd qword [0x4bc330]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4a1b25
mov eax, dword [esp + 0x28]
fld dword [esp + 0x58]
mov ecx, dword [esp + 0x2c]
fsub dword [esp + 0x5c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xe0], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xe4], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
jmp 0x4a1bf6
fld dword [esp + 0x14]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 1
je 0x4a1b98
fld dword [esp + 0x18]
mov eax, dword [esp + 0x4c]
fsub dword [esp + 0x14]
mov ecx, dword [esp + 0x50]
fld dword [esp + 0x9c]
mov dword [esp + 0xdc], eax
fsub dword [esp + 0x5c]
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xb8], eax
fmulp st(1)
fld dword [esp + 0x10]
mov dword [esp + 0xbc], ecx
fsub dword [esp + 0x14]
fdivp st(1)
fadd dword [esp + 0x5c]
fstp dword [esp + 0x24]
mov edx, dword [esp + 0x24]
fld dword [esp + 0x58]
fsub dword [esp + 0x24]
mov dword [esp + 0xe4], edx
mov edx, dword [esp + 0x54]
jmp 0x4a1bf6
fld dword [esp + 0x14]
mov edx, dword [esp + 0x30]
fsub dword [esp + 0x18]
mov eax, dword [esp + 0x28]
fld dword [esp + 0x98]
mov ecx, dword [esp + 0x2c]
fsub dword [esp + 0x58]
mov dword [esp + 0xe4], edx
mov dword [esp + 0xdc], eax
fmulp st(1)
fld dword [esp + 0x20]
mov dword [esp + 0xe0], ecx
fsub dword [esp + 0x18]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
fdivp st(1)
fadd dword [esp + 0x58]
fst dword [esp + 0x24]
fsub dword [esp + 0x5c]
mov edx, dword [esp + 0x24]
fld dword [esp + 0x10]
mov dword [esp + 0xc0], edx
fld dword [esp + 0x20]
fsub qword [0x4bc330]
fcompp
fnstsw ax
test ah, 1
je 0x4a1c84
fld dword [esp + 0x10]
fld dword [esp + 0x20]
fadd qword [0x4bc330]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4a1c84
fld dword [esp + 0x98]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
fsub dword [esp + 0x9c]
mov edx, dword [esp + 0x48]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x34]
fstp dword [esp + 0x10]
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xd8], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
jmp 0x4a1d65
fld dword [esp + 0x10]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 1
je 0x4a1cfb
fld dword [esp + 0x10]
mov eax, dword [esp + 0x40]
fsub dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
fld dword [esp + 0x98]
mov edx, dword [esp + 0x48]
fsub dword [esp + 0x58]
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], ecx
fmulp st(1)
fld dword [esp + 0x20]
mov dword [esp + 0xd8], edx
fsub dword [esp + 0x18]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
fdivp st(1)
fadd dword [esp + 0x58]
fld st(0)
fsub dword [esp + 0x9c]
fstp dword [esp + 0x10]
fstp dword [esp + 0xa8]
jmp 0x4a1d65
fld dword [esp + 0x20]
mov edx, dword [esp + 0x34]
fsub dword [esp + 0x14]
mov eax, dword [esp + 0x38]
fld dword [esp + 0x9c]
mov ecx, edx
fsub dword [esp + 0x5c]
mov dword [esp + 0xd0], edx
mov edx, eax
fmulp st(1)
fld dword [esp + 0x10]
mov dword [esp + 0xd4], eax
fsub dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
fdivp st(1)
mov dword [esp + 0xa8], eax
fadd dword [esp + 0x5c]
fld dword [esp + 0x98]
fsub st(1)
fstp dword [esp + 0x10]
fstp dword [esp + 0xd8]
fld dword [esp + 0x10]
fsub dword [0x4bc318]
fld st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x4a1e61
fld dword [esp + 0x10]
fadd dword [0x4bc318]
fld st(1)
fcompp
fnstsw ax
test ah, 1
je 0x4a1e61
fld dword [esp + 0xd0]
fadd dword [esp + 0xdc]
fld dword [esp + 0xd4]
fadd dword [esp + 0xe0]
fstp dword [esp + 0x84]
fld dword [esp + 0xd8]
fadd dword [esp + 0xe4]
fstp dword [esp + 0x88]
fmul qword [0x4bc320]
fstp dword [esp + 0x80]
fld dword [esp + 0x84]
fmul qword [0x4bc320]
fstp dword [esp + 0x84]
fld dword [esp + 0x88]
fmul qword [0x4bc320]
fstp dword [esp + 0x88]
fld dword [esp + 0xa0]
fadd dword [esp + 0xb8]
fld dword [esp + 0xa4]
fadd dword [esp + 0xbc]
fstp dword [esp + 0x74]
fld dword [esp + 0xa8]
fadd dword [esp + 0xc0]
fstp dword [esp + 0x78]
fmul qword [0x4bc320]
fstp dword [esp + 0x70]
fld dword [esp + 0x74]
fmul qword [0x4bc320]
fstp dword [esp + 0x74]
fld dword [esp + 0x78]
fmul qword [0x4bc320]
fstp dword [esp + 0x78]
jmp 0x4a1f06
fcom dword [esp + 0x10]
fnstsw ax
test ah, 1
je 0x4a1eb5
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
jmp 0x4a1f02
mov ecx, dword [esp + 0xd0]
fstp st(0)
mov edx, dword [esp + 0xd4]
fld dword [esp + 0x10]
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
fld dword [esp + 0xa0]
mov ecx, dword [esp + 0xcc]
fsub dword [esp + 0xb8]
mov al, byte [ecx + 4]
test al, 4
fld dword [esp + 0xa4]
fsub dword [esp + 0xbc]
fld dword [esp + 0xa8]
fsub dword [esp + 0xc0]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp dword [esp + 0x24]
fstp st(0)
fstp st(0)
fstp st(0)
je 0x4a2027
fcom dword [esp + 0x1c]
fnstsw ax
test ah, 1
jne 0x4a1f98
fld dword [esp + 0x1c]
fadd dword [0x4bc318]
fld st(1)
fcompp
fnstsw ax
test ah, 1
je 0x4a2104
fld dword [esp + 0x24]
fcomp dword [esp + 0x118]
fnstsw ax
test ah, 0x41
jne 0x4a2104
mov edx, dword [esp + 0x24]
fst dword [esp + 0x1c]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x118], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0xe8], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0xec], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0xf0], edx
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x60], 1
mov dword [esp + 0xc4], esi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
jmp 0x4a2104
fcom dword [esp + 0xc8]
fnstsw ax
test ah, 1
jne 0x4a2067
fld dword [esp + 0xc8]
fadd dword [0x4bc318]
fld st(1)
fcompp
fnstsw ax
test ah, 1
je 0x4a2104
fld dword [esp + 0x24]
fcomp dword [esp + 0x110]
fnstsw ax
test ah, 0x41
jne 0x4a2104
mov eax, dword [esp + 0x24]
fst dword [esp + 0xc8]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x150], ecx
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x154], edx
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x158], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x11c], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x120], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10c], 1
mov dword [esp + 0x114], esi
mov dword [esp + 0x128], ecx
mov dword [esp + 0x12c], edx
mov dword [esp + 0x130], eax
jmp 0x4a2104
fstp st(0)
mov eax, dword [ebp + 8]
inc ebx
cmp ebx, eax
jl 0x4a16ae
mov eax, dword [esp + 0x100]
mov ebx, dword [esp + 0x7c]
mov ecx, dword [ebx + 4]
inc eax
cmp eax, ecx
mov dword [esp + 0x100], eax
jl 0x4a1678
mov eax, dword [esp + 0xf4]
fstp st(0)
mov ecx, dword [esp + 0xcc]
mov edx, dword [ecx + 8]
inc eax
cmp eax, edx
mov dword [esp + 0xf4], eax
jl 0x4a1546
mov eax, dword [esp + 0xf8]
mov edx, dword [esp + 0xfc]
mov ecx, dword [edx + 4]
inc eax
cmp eax, ecx
mov dword [esp + 0xf8], eax
jl 0x4a149f
mov eax, dword [esp + 0x60]
xor edi, edi
cmp eax, edi
je 0x4a22c0
fld dword [esp + 0x1c]
fcomp dword [0x4bc2d8]
fnstsw ax
test ah, 1
jne 0x4a22c0
fld dword [esp + 0x1c]
fcomp dword [0xc688bc]
fnstsw ax
test ah, 1
je 0x4a22c0
call fcn.004a08e0
mov esi, eax
cmp esi, edi
je 0x4a2985
fld dword [esp + 0x64]
mov eax, dword [esp + 0xc4]
fmul qword [0x4bc330]
mov ebx, dword [esp + 0x1ec]
mov dword [esi + 4], edi
mov word [esi + 0x28], di
fadd dword [esp + 0xe8]
mov edi, dword [esp + 0x1e8]
push edi
mov dword [esi], ebx
fstp dword [esi + 0xc]
mov dword [esi + 8], eax
fld dword [esp + 0x6c]
mov dword [esi + 0x24], 2
fmul qword [0x4bc330]
fadd dword [esp + 0xf0]
fstp dword [esi + 0x10]
fld dword [esp + 0x70]
fmul qword [0x4bc330]
fadd dword [esp + 0xf4]
fstp dword [esi + 0x14]
fld dword [esp + 0x68]
fmul dword [0x4bc7ec]
fadd dword [esp + 0x90]
fstp dword [esi + 0x18]
fld dword [esp + 0x6c]
fmul dword [0x4bc7ec]
fadd dword [esp + 0x94]
fstp dword [esi + 0x1c]
fld dword [esp + 0x70]
fmul dword [0x4bc7ec]
fadd dword [esp + 0x98]
fstp dword [esi + 0x20]
call fcn.004a0b30
add esp, 4
test eax, eax
jne 0x4a2290
push ebx
call fcn.004a0b30
add esp, 4
test eax, eax
je 0x4a2290
xor ecx, ecx
mov cx, word [esi + 0x28]
mov dword [esp + 0x7c], ecx
fild dword [esp + 0x7c]
fadd dword [0xc688e4]
call fcn.004aeed0
mov word [esi + 0x28], ax
mov edx, dword [0xc68810]
mov eax, dword [edx + edi*4]
mov dword [esi + 0x2c], eax
mov ecx, dword [0xc68810]
mov dword [ecx + edi*4], esi
mov eax, dword [0xc68858]
pop edi
pop esi
inc eax
pop ebp
mov dword [0xc68858], eax
mov eax, 1
pop ebx
add esp, 0x1d4
ret
mov esi, dword [esp + 0x10c]
cmp esi, edi
je 0x4a245f
fld dword [esp + 0x11c]
lea edx, [esp + 0x15c]
fadd st(0), st(0)
push edx
fsubr dword [esp + 0x12c]
fstp dword [esp + 0x160]
fld dword [esp + 0x124]
fadd st(0), st(0)
fsubr dword [esp + 0x130]
fstp dword [esp + 0x164]
fld dword [esp + 0x128]
fadd st(0), st(0)
fsubr dword [esp + 0x134]
fsub dword [0xc688c4]
fstp dword [esp + 0x168]
call fcn.004a9470
mov ecx, dword [0xc68e3c]
lea edx, [eax*8]
sub edx, eax
mov al, byte [ecx + edx*4 + 4]
add esp, 4
test al, 4
je 0x4a245f
fld dword [0xc688c4]
fadd dword [0x4bcdb4]
fcomp dword [esp + 0xc8]
fnstsw ax
test ah, 0x41
jne 0x4a245f
mov ebx, dword [esp + 0x1e8]
mov ebp, dword [esp + 0x1ec]
lea eax, [ebx*8]
sub eax, ebx
test byte [ecx + eax*4 + 8], 2
je 0x4a246d
lea edx, [ebp*8]
sub edx, ebp
test byte [ecx + edx*4 + 8], 2
je 0x4a246d
call fcn.004a08e0
mov esi, eax
cmp esi, edi
je 0x4a2985
fld dword [esp + 0x11c]
mov eax, dword [esp + 0x114]
fmul dword [0x4bd280]
mov ecx, dword [esp + 0x150]
mov edx, dword [esp + 0x154]
mov dword [esi + 8], eax
fadd dword [esp + 0x128]
mov eax, dword [esp + 0x158]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
fstp dword [esi + 0x18]
mov dword [esi + 0x14], eax
fld dword [esp + 0x120]
mov dword [esi], ebp
fmul dword [0x4bd280]
mov dword [esi + 4], edi
mov dword [esi + 0x24], 9
fadd dword [esp + 0x12c]
fstp dword [esi + 0x1c]
fld dword [esp + 0x124]
fmul dword [0x4bd280]
fadd dword [esp + 0x130]
fstp dword [esi + 0x20]
fld dword [0xc688d8]
call fcn.004aeed0
mov word [esi + 0x28], ax
mov ecx, dword [0xc68810]
mov edx, dword [ecx + ebx*4]
mov dword [esi + 0x2c], edx
mov eax, dword [0xc68810]
mov dword [eax + ebx*4], esi
mov eax, dword [0xc68830]
pop edi
pop esi
inc eax
pop ebp
mov dword [0xc68830], eax
mov eax, 1
pop ebx
add esp, 0x1d4
ret
mov ebp, dword [esp + 0x1ec]
mov ebx, dword [esp + 0x1e8]
cmp dword [esp + 0x60], edi
je 0x4a2985
fld dword [esp + 0x1c]
fcomp dword [0x4bc2d8]
fnstsw ax
test ah, 0x41
jne 0x4a25bf
fld dword [esp + 0x1c]
fcomp dword [0xc688c8]
fnstsw ax
test ah, 1
je 0x4a25bf
cmp esi, edi
je 0x4a24c1
fld dword [esp + 0x1c]
fsub dword [esp + 0xc8]
fcomp dword [0x4bc2f8]
fnstsw ax
test ah, 1
je 0x4a25bf
push ebx
call fcn.004a0b30
add esp, 4
test eax, eax
jne 0x4a25bf
push ebp
call fcn.004a0b30
add esp, 4
test eax, eax
jne 0x4a25bf
call fcn.004a08e0
mov esi, eax
cmp esi, edi
je 0x4a2985
fld dword [esp + 0x64]
mov ecx, dword [esp + 0xc4]
fmul qword [0x4bc330]
mov dword [esi + 8], ecx
mov dword [esi], ebp
mov dword [esi + 4], edi
fadd dword [esp + 0xe8]
mov dword [esi + 0x24], 4
fstp dword [esi + 0xc]
fld dword [esp + 0x68]
fmul qword [0x4bc330]
fadd dword [esp + 0xec]
fstp dword [esi + 0x10]
fld dword [esp + 0x6c]
fmul qword [0x4bc330]
fadd dword [esp + 0xf0]
fstp dword [esi + 0x14]
fld dword [esp + 0x64]
fmul dword [0x4bc7ec]
fadd dword [esp + 0x8c]
fstp dword [esi + 0x18]
fld dword [esp + 0x68]
fmul dword [0x4bc7ec]
fadd dword [esp + 0x90]
fstp dword [esi + 0x1c]
fld dword [esp + 0x6c]
fmul dword [0x4bc7ec]
fadd dword [esp + 0x94]
fstp dword [esi + 0x20]
fld dword [0xc688e0]
call fcn.004aeed0
mov word [esi + 0x28], ax
mov edx, dword [0xc68810]
mov eax, dword [edx + ebx*4]
mov dword [esi + 0x2c], eax
mov ecx, dword [0xc68810]
mov dword [ecx + ebx*4], esi
mov eax, dword [0xc6883c]
pop edi
pop esi
inc eax
pop ebp
mov dword [0xc6883c], eax
mov eax, 1
pop ebx
add esp, 0x1d4
ret
fld dword [esp + 0x1c]
fcomp dword [0x4bc2d8]
fnstsw ax
test ah, 1
je 0x4a2985
fld dword [0xc688bc]
fchs
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 1
je 0x4a26b7
call fcn.004a08e0
cmp eax, edi
je 0x4a2985
fld dword [esp + 0x64]
mov edx, dword [esp + 0xc4]
fmul qword [0x4bc330]
mov dword [eax], ebp
mov dword [eax + 4], edi
mov dword [eax + 8], edx
fadd dword [esp + 0xe8]
mov dword [eax + 0x24], 2
mov word [eax + 0x28], 1
pop edi
fstp dword [eax + 0xc]
pop esi
fld dword [esp + 0x60]
pop ebp
fmul qword [0x4bc330]
fadd dword [esp + 0xe0]
fstp dword [eax + 0x10]
fld dword [esp + 0x60]
fmul qword [0x4bc330]
fadd dword [esp + 0xe4]
fstp dword [eax + 0x14]
fld dword [esp + 0x58]
fmul dword [0x4bc7ec]
fadd dword [esp + 0x80]
fstp dword [eax + 0x18]
fld dword [esp + 0x5c]
fmul dword [0x4bc7ec]
fadd dword [esp + 0x84]
fstp dword [eax + 0x1c]
fld dword [esp + 0x60]
fmul dword [0x4bc7ec]
fadd dword [esp + 0x88]
fstp dword [eax + 0x20]
mov ecx, dword [0xc68810]
mov edx, dword [ecx + ebx*4]
mov dword [eax + 0x2c], edx
mov ecx, dword [0xc68810]
mov dword [ecx + ebx*4], eax
inc dword [0xc6885c]
mov eax, 1
pop ebx
add esp, 0x1d4
ret
fld dword [0xc68914]
fcomp dword [0x4bc2d8]
fnstsw ax
test ah, 0x40
jne 0x4a26e3
fld dword [esp + 0x1c]
fabs
fld dword [0xc68914]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4a2985
fld dword [esp + 0x64]
mov edx, dword [esp + 0xf0]
fadd st(0), st(0)
push 0xffffffffffffffff
push 2
lea ecx, [esp + 0x78]
fadd dword [esp + 0x94]
mov dword [esp + 0x90], edx
push ecx
lea edx, [esp + 0x8c]
fst dword [esp + 0x98]
push edx
fld dword [esp + 0x78]
fadd st(0), st(0)
fadd dword [esp + 0xa0]
fst dword [esp + 0xa0]
fld dword [esp + 0x7c]
mov eax, dword [esp + 0xa0]
fadd st(0), st(0)
mov dword [esp + 0x84], eax
lea eax, [esp + 0x1d0]
push eax
fadd dword [esp + 0xa8]
fstp dword [esp + 0xa8]
fld st(1)
fstp dword [esp + 0x94]
fstp dword [esp + 0x98]
fstp dword [esp + 0x84]
fld dword [esp + 0xa8]
fadd dword [0x4bc398]
fstp dword [esp + 0x8c]
call fcn.004a9720
mov esi, eax
mov ecx, 9
lea edi, [esp + 0x17c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x17c]
add esp, 0x14
test eax, eax
jne 0x4a2985
fld dword [esp + 0x16c]
fcomp qword [0x4bc370]
fnstsw ax
test ah, 1
jne 0x4a2985
fld dword [esp + 0x178]
lea ecx, [esp + 0x170]
fadd dword [0x4bc318]
push ecx
fstp dword [esp + 0x17c]
call fcn.004a9470
add esp, 4
cmp eax, ebp
jne 0x4a2985
push 0xa
push 0
lea edx, [esp + 0x1a0]
push edx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x90]
push ecx
call fcn.004a9d90
mov edi, eax
add esp, 0x14
xor esi, esi
test edi, edi
jle 0x4a284b
lea edx, [esp + 0x198]
mov dword [esp + 0x60], edx
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
push ecx
call fcn.004a0c00
add esp, 4
test eax, eax
jne 0x4a2843
mov ecx, dword [esp + 0x60]
inc esi
add ecx, 4
cmp esi, edi
mov dword [esp + 0x60], ecx
jl 0x4a281e
jmp 0x4a284b
cmp esi, edi
jl 0x4a2985
call fcn.004a08e0
mov esi, eax
test esi, esi
je 0x4a2985
mov edx, dword [esp + 0xc4]
fld dword [esp + 0x1c]
mov eax, dword [esp + 0xe8]
fabs
mov ecx, dword [esp + 0xec]
fmul qword [0x4bd278]
mov dword [esi + 8], edx
mov edx, dword [esp + 0xf0]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x8c]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x90]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x94]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
mov dword [esi], ebp
mov dword [esi + 4], 0
mov dword [esi + 0x24], 7
fdiv dword [0xc68894]
fadd dword [0xc688ec]
call fcn.004aeed0
push ebp
mov word [esi + 0x28], ax
call fcn.004a0b60
add esp, 4
test eax, eax
jne 0x4a2955
push ebp
call fcn.004a0bc0
add esp, 4
test eax, eax
jne 0x4a2955
mov edi, dword [esp + 0x1c]
push edi
call fcn.004a0ab0
fcomp dword [0xc688d0]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x4a2922
xor eax, eax
mov ax, word [esi + 0x28]
mov dword [esp + 0x7c], eax
fild dword [esp + 0x7c]
fadd dword [0xc6890c]
call fcn.004aeed0
mov word [esi + 0x28], ax
push edi
call fcn.004a0ab0
fcomp dword [0xc688d4]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x4a2955
xor ecx, ecx
mov cx, word [esi + 0x28]
mov dword [esp + 0x7c], ecx
fild dword [esp + 0x7c]
fadd dword [0xc68910]
call fcn.004aeed0
mov word [esi + 0x28], ax
mov edx, dword [0xc68810]
mov eax, dword [edx + ebx*4]
mov dword [esi + 0x2c], eax
mov ecx, dword [0xc68810]
mov dword [ecx + ebx*4], esi
mov eax, dword [0xc68850]
pop edi
pop esi
inc eax
pop ebp
mov dword [0xc68850], eax
mov eax, 1
pop ebx
add esp, 0x1d4
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1d4
ret