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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2574
call fcn.004a54a0
push ebx
push esi
mov esi, dword [ebp + 0x24]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
lea ebx, [esp + 0x1a0]
mov dword [esp + 0x64], 0xffff
call fcn.004ce5c0
mov eax, dword [ebp + 0xc]
mov ecx, esi
shl ecx, 7
and eax, 0xff
sub ecx, esi
add esp, 8
mov dword [esp + 0xa4], eax
lea edx, [eax + ecx*2]
cmp word [edi + edx*2 + 0x118], 0
je 0x4c900a
mov eax, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x14]
test eax, eax
jle 0x4c8212
mov edx, dword [ebp + 0x18]
lea ecx, [esi + 8]
mov esi, edx
lea edi, [esp + 0x580]
sub esi, dword [ebp + 0x14]
lea eax, [esp + 0x1384]
mov dword [esp + 0x1c], esi
mov esi, dword [ebp + 0x1c]
mov dword [esp + 0x10], esi
fld qword [edx]
fsub qword [ecx - 8]
mov esi, dword [esp + 0x1c]
add edx, 0x18
fstp dword [eax - 4]
fld qword [esi + ecx]
fsub qword [ecx]
fstp dword [eax]
fld qword [edx - 8]
fsub qword [ecx + 8]
fst dword [eax + 4]
mov esi, dword [esp + 0x10]
add ecx, 0x18
fld dword [eax]
fld dword [eax - 4]
fld st(0)
fmul st(1)
fld st(3)
fmul st(4)
faddp st(1)
fld st(2)
fmul st(3)
add eax, 0xc
add edi, 4
dec esi
faddp st(1)
mov dword [esp + 0x10], esi
fstp st(3)
fstp st(0)
fstp st(0)
fdivr dword [0x5333e0]
fstp dword [edi - 4]
jne 0x4c81b8
mov esi, dword [ebp + 0x14]
fld qword [0x534ad0]
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x8c], 0xffffffff
fst qword [esp + 0xc0]
test eax, eax
mov dword [esp + 0x90], 0x7fefffff
mov dword [esp + 0x94], 0xffffffff
mov dword [esp + 0x98], 0x7fefffff
mov dword [esp + 0x9c], 0xffffffff
mov dword [esp + 0xa0], 0x7fefffff
mov dword [esp + 0xb0], 0xffffffff
mov dword [esp + 0xb4], 0xffefffff
mov dword [esp + 0xb8], 0xffffffff
mov dword [esp + 0xbc], 0xffefffff
jle 0x4c8479
mov edi, dword [ebp + 0x18]
lea edx, [esp + 0x1988]
sub edx, esi
lea ecx, [esi + 8]
mov dword [esp + 0x10], edx
mov edx, edi
sub edx, esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x780]
sub edx, esi
mov dword [esp + 0x14], edx
lea edx, [esp + 0x788]
sub edx, esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x2c], edx
xor edx, edx
fld qword [ecx - 8]
fcomp qword [edx + edi]
fnstsw ax
test ah, 1
je 0x4c82e9
fld qword [ecx - 8]
jmp 0x4c82ec
fld qword [edx + edi]
fst qword [esp + 0x38]
fstp qword [esp + edx + 0x1980]
fld qword [ecx]
fld qword [esi + ecx]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4c8309
fld qword [ecx]
jmp 0x4c830c
fld qword [esi + ecx]
mov eax, dword [esp + 0x10]
fst qword [esp + 0xc8]
fstp qword [eax + ecx - 8]
fld qword [ecx + 8]
fld qword [edx + edi + 0x10]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4c8330
fld qword [ecx + 8]
jmp 0x4c8334
fld qword [edx + edi + 0x10]
mov eax, dword [esp + 0x10]
fst qword [esp + 0xa8]
fstp qword [eax + ecx]
fld qword [ecx - 8]
fcomp qword [edx + edi]
fnstsw ax
test ah, 0x41
jne 0x4c8354
fld qword [ecx - 8]
jmp 0x4c8357
fld qword [edx + edi]
fst qword [esp + edx + 0x780]
fld qword [ecx]
fld qword [esi + ecx]
fcompp
fnstsw ax
test ah, 1
je 0x4c8370
fld qword [ecx]
jmp 0x4c8373
fld qword [esi + ecx]
mov eax, dword [esp + 0x14]
fst qword [esp + 0x60]
fstp qword [eax + ecx]
fld qword [ecx + 8]
fld qword [edx + edi + 0x10]
fcompp
fnstsw ax
test ah, 1
je 0x4c8393
fld qword [ecx + 8]
jmp 0x4c8397
fld qword [edx + edi + 0x10]
mov eax, dword [esp + 0x2c]
fst qword [esp + 0x50]
fstp qword [eax + ecx]
fld qword [esp + 0x38]
fcomp qword [esp + 0x8c]
fnstsw ax
test ah, 1
je 0x4c83ce
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x90], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x8c], eax
fld qword [esp + 0xc8]
fcomp qword [esp + 0x94]
fnstsw ax
test ah, 1
je 0x4c83f1
fld qword [esp + 0xc8]
fstp qword [esp + 0x94]
fld qword [esp + 0xa8]
fcomp qword [esp + 0x9c]
fnstsw ax
test ah, 1
je 0x4c8414
fld qword [esp + 0xa8]
fstp qword [esp + 0x9c]
fcom qword [esp + 0xb0]
fnstsw ax
test ah, 0x41
jne 0x4c842b
fstp qword [esp + 0xb0]
jmp 0x4c842d
fstp st(0)
fld qword [esp + 0x60]
fcomp qword [esp + 0xb8]
fnstsw ax
test ah, 0x41
jne 0x4c844a
fld qword [esp + 0x60]
fstp qword [esp + 0xb8]
fld qword [esp + 0x50]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4c845d
fstp st(0)
fld qword [esp + 0x50]
mov eax, dword [esp + 0x44]
add edx, 0x18
add ecx, 0x18
dec eax
mov dword [esp + 0x44], eax
jne 0x4c82d7
fst qword [esp + 0xc0]
fld qword [esp + 0x8c]
fistp qword [esp + 0x20]
mov ecx, dword [esp + 0x20]
fld qword [esp + 0x94]
fistp qword [esp + 0x20]
mov esi, dword [esp + 0x20]
fld qword [esp + 0x9c]
fistp qword [esp + 0x20]
mov edi, dword [esp + 0x20]
fld qword [esp + 0xb0]
fistp qword [esp + 0x20]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x6c], edx
fld qword [esp + 0xb8]
fistp qword [esp + 0x20]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x70], eax
fistp qword [esp + 0x20]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x74], edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xde0]
add ecx, eax
mov dword [esp + 0x78], ecx
mov ecx, dword [edx + 0xde4]
mov edx, dword [edx + 0xde8]
add esi, ecx
mov dword [esp + 0x7c], esi
mov esi, dword [esp + 0x70]
add edi, edx
add esi, ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x80], edi
mov edi, dword [esp + 0x6c]
add ecx, edx
add edi, eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x6c], edi
movsx ecx, byte [eax + 0xa969e0]
cmp ecx, 0xffffffff
mov dword [esp + 0x70], esi
je 0x4c853e
mov eax, 1
shl eax, cl
mov dword [esp + 0x5c], eax
mov esi, dword [ebp + 0x24]
mov edi, dword [ebp + 8]
push esi
push edi
call fcn.004ce620
mov eax, dword [edi + esi*4 + 0x28]
mov edx, dword [ebp + 0x24]
mov ecx, 0x10
mov esi, eax
lea edi, [esp + 0x130]
add esp, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + edx*4 + 0xd0]
mov edx, dword [esp + 0x128]
cmp ecx, 0x1e
mov dword [esp + 0x30], ecx
mov dword [esp + 0x60], edx
jne 0x4c8602
mov ecx, dword [esp + 0x158]
mov esi, eax
and ecx, 0xff
lea edi, [esp + 0x128]
mov dword [esp + 0x2c], ecx
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov byte [esp + 0x158], 0
xor esi, esi
mov dword [esp + 0x10], 7
lea eax, [esp + 0x150]
lea edi, [esp + 0x134]
mov edx, dword [eax]
mov ecx, dword [edi]
mov dword [edi], edx
mov edx, dword [esp + 0x2c]
mov dword [eax], ecx
mov ecx, esi
sar edx, cl
mov ecx, dword [esp + 0x10]
add edi, 4
sub eax, 4
and dl, 1
shl dl, cl
mov cl, byte [esp + 0x158]
or cl, dl
inc esi
mov byte [esp + 0x158], cl
mov ecx, dword [esp + 0x10]
dec ecx
cmp esi, 4
mov dword [esp + 0x10], ecx
jl 0x4c85c4
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x128]
mov dword [esp + 0x1c], 1
fild dword [ecx + 0xde0]
mov dword [esp + 0x198], eax
lea eax, [edx + edx*2]
lea edx, [edx + edx*2 + 9]
mov byte [esp + 0x19e], 0
fadd qword [ecx + eax*8 + 0x40]
lea eax, [ecx + eax*8]
fistp qword [esp + 0x20]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x1a0], esi
fild dword [ecx + 0xde4]
fadd qword [ecx + edx*8]
mov dl, byte [esp + 0x158]
fistp qword [esp + 0x20]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x1a4], edi
fild dword [ecx + 0xde8]
fadd qword [eax + 0x50]
cmp dword [esp + 0x6c], esi
setl al
and eax, 0xff
fistp qword [esp + 0x20]
mov al, byte [eax + 0x548160]
mov ecx, dword [esp + 0x20]
and al, dl
mov edx, dword [esp + 0x78]
cmp edx, esi
mov dword [esp + 0x1a8], ecx
setg dl
and edx, 0xff
and al, byte [edx + 0x548164]
mov edx, dword [esp + 0x70]
cmp edx, edi
setl dl
and edx, 0xff
and al, byte [edx + 0x548168]
mov edx, dword [esp + 0x7c]
cmp edx, edi
mov edi, dword [esp + 0x80]
setg dl
and edx, 0xff
and al, byte [edx + 0x54816c]
mov edx, dword [esp + 0x74]
cmp edx, ecx
setl dl
and edx, 0xff
and al, byte [edx + 0x548170]
cmp edi, ecx
setg cl
and ecx, 0xff
and al, byte [ecx + 0x548174]
test al, 0xf
mov byte [esp + 0x19d], al
je 0x4c871c
test al, 3
je 0x4c8713
and al, 1
jmp 0x4c8730
shr al, 2
and al, 1
add al, 2
jmp 0x4c8730
test al, 0x30
je 0x4c8729
shr al, 4
and al, 1
add al, 4
jmp 0x4c8730
shr al, 6
and al, 1
add al, 6
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0xa4]
mov ecx, dword [esp + 0x5c]
xor al, 1
dec edx
mov byte [esp + 0x19c], al
mov dword [esp + 0x4c], edx
jmp 0x4c875e
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0xa4]
mov ebx, dword [esp + 0x40]
mov al, byte [ebx + 5]
test al, al
jne 0x4c88df
mov al, byte [ebx + 6]
test al, al
mov eax, dword [ebx]
mov dx, word [eax + 0x38]
je 0x4c87cc
and edx, ecx
test dx, dx
je 0x4c88ae
mov esi, dword [eax + 0x2c]
test esi, esi
je 0x4c88ae
xor eax, eax
mov edx, dword [ebp + 0x20]
mov ax, word [esi + 0x1c]
lea ecx, [eax + eax*2]
shl ecx, 4
test dword [ecx + 0xaf5f0c], edx
je 0x4c87c0
lea ecx, [edi + edi*2]
shl ecx, 7
add ecx, eax
mov eax, dword [ecx*4 + 0xa96ae0]
test eax, eax
je 0x4c87c0
mov edx, dword [ebp + 0x10]
push edx
push esi
call eax
add esp, 8
mov esi, dword [esi + 0x58]
test esi, esi
jne 0x4c878c
jmp 0x4c88ae
and edx, ecx
test dx, dx
je 0x4c88ae
mov esi, dword [eax + 0x2c]
test esi, esi
je 0x4c88ae
mov eax, dword [esi + 0x44]
mov dword [esp + 0x48], eax
fld dword [esp + 0x48]
fsubr qword [esi + 0x20]
fcomp qword [esp + 0xb0]
fnstsw ax
test ah, 0x41
je 0x4c88a3
fld dword [esp + 0x48]
fadd qword [esi + 0x20]
fcomp qword [esp + 0x8c]
fnstsw ax
test ah, 1
jne 0x4c88a3
fld dword [esp + 0x48]
fsubr qword [esi + 0x28]
fcomp qword [esp + 0xb8]
fnstsw ax
test ah, 0x41
je 0x4c88a3
fld dword [esp + 0x48]
fadd qword [esi + 0x28]
fcomp qword [esp + 0x94]
fnstsw ax
test ah, 1
jne 0x4c88a3
fld dword [esp + 0x48]
fsubr qword [esi + 0x30]
fcomp qword [esp + 0xc0]
fnstsw ax
test ah, 0x41
je 0x4c88a3
fld dword [esp + 0x48]
fadd qword [esi + 0x30]
fcomp qword [esp + 0x9c]
fnstsw ax
test ah, 1
jne 0x4c88a3
xor eax, eax
mov edx, dword [ebp + 0x20]
mov ax, word [esi + 0x1c]
lea ecx, [eax + eax*2]
shl ecx, 4
test dword [ecx + 0xaf5f0c], edx
je 0x4c88a3
lea ecx, [edi + edi*2]
shl ecx, 7
add ecx, eax
mov eax, dword [ecx*4 + 0xa96ae0]
test eax, eax
je 0x4c88a3
mov edx, dword [ebp + 0x10]
push edx
push esi
call eax
add esp, 8
mov esi, dword [esi + 0x58]
test esi, esi
jne 0x4c87e2
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x1c]
sub ebx, 0x14
inc esi
inc edx
mov dword [esp + 0x40], ebx
shl ecx, 1
dec eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x1c], eax
jmp 0x4c8ffe
mov al, byte [ebx + 4]
mov ecx, dword [ebx]
mov edi, eax
mov dl, 1
and edi, 0xff
mov byte [esp + 0xc8], al
mov al, byte [ebx + 5]
mov esi, dword [ecx + edi*4 + 0xc]
mov ecx, edi
shl dl, cl
xor al, dl
mov byte [ebx + 5], al
je 0x4c894a
test al, 0xf
je 0x4c8924
test al, 3
je 0x4c8913
and al, 1
jmp 0x4c8943
mov cl, byte [ebx + 5]
shr cl, 2
and cl, 1
add cl, 2
mov byte [ebx + 4], cl
jmp 0x4c8946
test al, 0x30
je 0x4c8939
mov dl, byte [ebx + 5]
shr dl, 4
and dl, 1
add dl, 4
mov byte [ebx + 4], dl
jmp 0x4c8946
mov al, byte [ebx + 5]
shr al, 6
and al, 1
add al, 6
mov byte [ebx + 4], al
xor byte [ebx + 4], 1
mov edi, dword [esp + 0x60]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x1c]
shr edi, 1
dec edx
dec ecx
mov dword [esp + 0x30], edx
inc eax
mov edx, ebx
mov dword [esp + 0x1c], eax
mov al, byte [esi + 0x30]
add ebx, 0x14
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x60], edi
mov dword [ebx], esi
mov byte [ebx + 5], al
mov cl, byte [edx + 6]
mov dword [esp + 0x40], ebx
test cl, cl
je 0x4c89ea
test al, al
mov byte [ebx + 6], 1
je 0x4c8ffe
test al, 0xf
je 0x4c89be
test al, 3
je 0x4c89aa
and al, 1
mov byte [ebx + 4], al
xor al, 1
mov byte [ebx + 4], al
jmp 0x4c8ffe
shr al, 2
and al, 1
add al, 2
mov byte [ebx + 4], al
xor al, 1
mov byte [ebx + 4], al
jmp 0x4c8ffe
test al, 0x30
je 0x4c89d6
shr al, 4
and al, 1
add al, 4
mov byte [ebx + 4], al
xor al, 1
mov byte [ebx + 4], al
jmp 0x4c8ffe
shr al, 6
and al, 1
add al, 6
mov byte [ebx + 4], al
xor al, 1
mov byte [ebx + 4], al
jmp 0x4c8ffe
test al, al
mov byte [esp + 0xf], al
mov byte [ebx + 6], 0
je 0x4c8ffe
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0x30]
and eax, 0xff
lea eax, [eax + eax*2]
shl eax, 2
mov edi, dword [eax + 0x548000]
shl edi, cl
mov ecx, dword [edx + 8]
add edi, ecx
mov ecx, dword [esp + 0x30]
mov dword [ebx + 8], edi
mov edi, dword [eax + 0x548004]
mov eax, dword [eax + 0x548008]
shl edi, cl
mov ecx, dword [edx + 0xc]
add edi, ecx
mov ecx, dword [esp + 0x30]
shl eax, cl
mov dword [ebx + 0xc], edi
mov ecx, dword [edx + 0x10]
add eax, ecx
mov ecx, dword [ebx + 8]
mov dword [esp + 0xa8], ecx
mov edx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x10], eax
mov ebx, dword [ebx + 0xc]
mov edi, dword [ecx + 0xde0]
sub edx, edi
mov edi, dword [ecx + 0xde4]
mov dword [esp + 0x2c], edx
mov edx, dword [ecx + 0xde8]
fild dword [esp + 0x2c]
mov dword [esp + 0x2c], ebx
sub ebx, edi
mov dword [esp + 0x10], ebx
sub eax, edx
fstp qword [esp + 0x110]
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x60]
shr eax, 1
fstp qword [esp + 0x118]
fild dword [esp + 0x10]
mov dword [esp + 0xf8], eax
xor eax, eax
mov dword [esp + 0xfc], eax
add esi, 0xc
fstp qword [esp + 0x120]
fild qword [esp + 0xf8]
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], 0x548004
mov dword [esp + 0x50], esi
fst dword [esp + 0x44]
fmul dword [0x534ac8]
fstp dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov bl, byte [esp + 0xf]
mov edx, 1
shl edx, cl
test bl, dl
je 0x4c8f87
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x5c]
mov eax, dword [eax]
mov cx, word [eax + 0x3a]
or cx, word [eax + 0x38]
and ecx, edx
test cx, cx
je 0x4c8f71
mov eax, dword [esp + 0x34]
xor esi, esi
mov ecx, eax
mov dword [esp + 0x18], esi
and ecx, 1
lea edx, [ecx + ecx - 1]
mov ecx, eax
mov dword [esp + 0x14], edx
and ecx, 2
fild dword [esp + 0x14]
dec ecx
mov dword [esp + 0x14], ecx
fmul dword [esp + 0x44]
sar eax, 1
and eax, 2
fadd qword [esp + 0x110]
dec eax
fstp qword [esp + 0xd8]
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x1c]
cmp eax, esi
fmul dword [esp + 0x44]
fadd qword [esp + 0x118]
fstp qword [esp + 0xe0]
fild dword [esp + 0x14]
fmul dword [esp + 0x44]
fadd qword [esp + 0x120]
fstp qword [esp + 0xe8]
jle 0x4c8d1d
mov eax, dword [ebp + 0x14]
lea edi, [esp + 0x1980]
sub edi, eax
lea ebx, [esp + 0x580]
mov dword [esp + 0x38], edi
lea edi, [esp + 0x780]
sub edi, eax
lea edx, [esp + 0x1384]
mov dword [esp + 0x14], edi
lea ecx, [eax + 0x10]
xor edi, edi
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4c8d2f
fld qword [esp + 0xd8]
fsub qword [ecx - 0x10]
fld qword [esp + 0xe0]
fsub qword [ecx - 8]
fld qword [esp + 0xe8]
fsub qword [ecx]
fld st(0)
fstp qword [esp + 0x78]
fld st(1)
fstp qword [esp + 0x100]
fld st(2)
fstp qword [esp + 0x108]
fmul dword [edx + 4]
fxch st(2)
fmul dword [edx - 4]
faddp st(2)
fld st(0)
fmul dword [edx]
faddp st(2)
fstp st(0)
fld qword [esp + 0x108]
fmul qword [esp + 0x108]
fld qword [esp + 0x100]
fmul qword [esp + 0x100]
faddp st(1)
fld qword [esp + 0x78]
fmul qword [esp + 0x78]
faddp st(1)
fld st(1)
fmul st(2)
fmul dword [ebx]
fsubp st(1)
fld dword [esp + 0x28]
fmul dword [esp + 0x28]
fcompp
fnstsw ax
test ah, 1
fstp st(0)
jne 0x4c8cf9
fld dword [esp + 0x28]
fadd qword [esp + 0xd8]
fcomp qword [esp + edi + 0x1980]
fnstsw ax
test ah, 1
jne 0x4c8cf9
fld dword [esp + 0x28]
fadd qword [esp + 0xe0]
fcomp qword [esp + edi + 0x1988]
fnstsw ax
test ah, 1
jne 0x4c8cf9
fld dword [esp + 0x28]
fadd qword [esp + 0xe8]
mov eax, dword [esp + 0x38]
fcomp qword [eax + ecx]
fnstsw ax
test ah, 1
jne 0x4c8cf9
fld dword [esp + 0x28]
fsubr qword [esp + 0xd8]
fcomp qword [esp + edi + 0x780]
fnstsw ax
test ah, 0x41
je 0x4c8cf9
fld dword [esp + 0x28]
fsubr qword [esp + 0xe0]
fcomp qword [esp + edi + 0x788]
fnstsw ax
test ah, 0x41
je 0x4c8cf9
fld dword [esp + 0x28]
fsubr qword [esp + 0xe8]
mov eax, dword [esp + 0x14]
fcomp qword [ecx + eax]
fnstsw ax
test ah, 0x41
je 0x4c8cf9
mov dword [esp + 0x18], 1
mov eax, dword [ebp + 0x1c]
inc esi
add edx, 0xc
add ebx, 4
add ecx, 0x18
add edi, 0x18
cmp esi, eax
jl 0x4c8bbd
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4c8d2f
mov bl, byte [esp + 0xf]
mov ecx, dword [esp + 0x34]
mov dl, 1
shl dl, cl
not dl
and bl, dl
mov byte [esp + 0xf], bl
jmp 0x4c8d33
mov bl, byte [esp + 0xf]
mov eax, dword [esp + 0x50]
mov eax, dword [eax]
mov edx, dword [eax + 0x3c]
test edx, edx
je 0x4c8f87
fld qword [esp + 0xb0]
fsub qword [esp + 0x8c]
fcom qword [0x534ac0]
fnstsw ax
test ah, 0x41
je 0x4c8e72
fld qword [esp + 0xb8]
fsub qword [esp + 0x94]
fcomp qword [0x534ac0]
fnstsw ax
test ah, 0x41
je 0x4c8e72
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0x70], 0
mov eax, dword [ecx + 0xde0]
mov edi, dword [esi - 4]
mov ecx, dword [esp + 0x4c]
mov esi, dword [esi]
shl edi, cl
shl esi, cl
mov ecx, dword [esp + 0x50]
fstp st(0)
sub edi, eax
mov ecx, dword [ecx]
add edi, ebx
mov ebx, dword [esp + 0x2c]
sub esi, eax
mov ecx, dword [ecx]
mov dword [esp + 0x38], edi
add esi, ebx
fild dword [esp + 0x38]
mov dword [esp + 0x38], esi
mov eax, dword [edx + 8]
fild dword [esp + 0x38]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x38], eax
fstp qword [esp + 0x188]
fild qword [esp + 0x6c]
fstp dword [esp + 0x18]
fild dword [esp + 0x38]
fmul dword [0x533504]
fdiv dword [esp + 0x18]
fstp dword [esp + 0x14]
fld qword [esp + 0x8c]
fsub st(1)
fadd dword [esp + 0x18]
fmul dword [esp + 0x14]
fistp qword [esp + 0x78]
mov ecx, dword [esp + 0x78]
cmp ecx, eax
fstp st(0)
fld qword [esp + 0x94]
fsub qword [esp + 0x188]
fadd dword [esp + 0x18]
fmul dword [esp + 0x14]
fistp qword [esp + 0x78]
mov esi, dword [esp + 0x78]
jae 0x4c8f83
cmp esi, eax
jae 0x4c8f83
push esi
push ecx
push edx
call fcn.004e5580
add esp, 0xc
test eax, eax
jne 0x4c8f83
mov ecx, dword [esp + 0x34]
mov bl, byte [esp + 0xf]
mov dl, 1
shl dl, cl
not dl
and bl, dl
mov byte [esp + 0xf], bl
jmp 0x4c8f87
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x4c]
mov esi, dword [ebp + 8]
mov dword [esp + 0x24], 0
mov edi, dword [eax - 4]
mov eax, dword [eax]
shl edi, cl
shl eax, cl
mov ecx, dword [esi + 0xde4]
sub edi, dword [esi + 0xde0]
sub eax, ecx
mov ecx, dword [esp + 0x50]
add edi, dword [esp + 0xa8]
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x2c]
fild dword [esp + 0x38]
add eax, edi
mov dword [esp + 0x38], eax
mov eax, dword [ecx]
fild dword [esp + 0x38]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
fstp qword [esp + 0x170]
fild qword [esp + 0x20]
fstp dword [esp + 0x18]
fild dword [edx + 8]
fmul dword [0x533504]
fdiv dword [esp + 0x18]
fstp dword [esp + 0x14]
fld qword [esp + 0x8c]
fsub st(1)
fadd dword [esp + 0x18]
fmul dword [esp + 0x14]
fstp dword [esp + 0xd0]
fstp st(0)
fld qword [esp + 0x94]
fsub qword [esp + 0x170]
fadd dword [esp + 0x18]
fmul dword [esp + 0x14]
fstp dword [esp + 0xd4]
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0xf0]
mov eax, dword [esp + 0xf0]
fstp st(0)
fld qword [esp + 0xb8]
fsub qword [esp + 0x94]
fmul dword [esp + 0x14]
fstp dword [esp + 0xf4]
mov ecx, dword [esp + 0xf4]
push ecx
mov ecx, dword [esp + 0xd8]
push eax
mov eax, dword [esp + 0xd8]
push ecx
push eax
push edx
call fcn.004e5ba0
add esp, 0x14
test eax, eax
jne 0x4c8f87
mov ecx, dword [esp + 0x34]
mov dl, 1
shl dl, cl
not dl
and bl, dl
mov byte [esp + 0xf], bl
jmp 0x4c8f87
mov bl, byte [esp + 0xf]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x50]
add eax, 0xc
inc edi
add esi, 4
cmp eax, 0x548064
mov dword [esp + 0x34], edi
mov dword [esp + 0x50], esi
mov dword [esp + 0x10], eax
jl 0x4c8ae1
mov eax, dword [esp + 0x40]
test bl, bl
mov byte [eax + 5], bl
je 0x4c8ffe
test bl, 0xf
je 0x4c8fd6
test bl, 3
je 0x4c8fcb
and bl, 1
jmp 0x4c8fef
shr bl, 2
and bl, 1
add bl, 2
jmp 0x4c8fef
test bl, 0x30
je 0x4c8fe6
shr bl, 4
and bl, 1
add bl, 4
jmp 0x4c8fef
shr bl, 6
and bl, 1
add bl, 6
mov eax, dword [esp + 0x40]
mov cl, bl
xor cl, 1
mov byte [eax + 4], bl
mov byte [eax + 4], cl
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4c874f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret