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

Disassembly:
sub esp, 0x68
push ebx
mov ebx, dword [esp + 0x70]
mov edx, ebx
push esi
shr edx, 1
mov esi, ecx
push edi
lea eax, [edx + edx*8]
mov dword [esp + 0xc], edx
mov ecx, dword [esi + eax*8 + 0x84]
lea edi, [esi + eax*8]
mov dword [esp + 0x20], edi
mov al, byte [ecx + 0x10]
shr al, 1
test al, 1
jne 0x4f1248
mov ecx, dword [0x6621f4]
push ebp
mov eax, dword [ecx + 0x50]
lea ecx, [ebx + ebx*8]
mov dword [esp + 0x14], eax
mov eax, dword [esi + ecx*4 + 0x1a8]
lea ebp, [esi + ecx*4]
add eax, 0x10
mov byte [ebp + 0x1ac], 0
or byte [eax], 2
mov eax, dword [esi + 0x48]
test eax, eax
je 0x4f07b5
mov dword [esp + 0x18], 2
mov edx, dword [ebp + 0x1a8]
mov eax, dword [edx + 4]
add eax, 0x70
mov ecx, dword [eax]
mov dword [esp + 0x60], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x64], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x68], eax
call fcn.00403de0
and eax, 0xffff
xor ebx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
fild qword [esp + 0x28]
fmul dword [0x622f68]
fsubr dword [0x6222d4]
fmul dword [esi + 0x58]
fstp dword [esp + 0x20]
call fcn.00403de0
and eax, 0xffff
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], eax
fild qword [esp + 0x30]
fmul dword [0x622f68]
fsubr dword [0x6222d4]
fmul dword [esi + 0x58]
fstp dword [esp + 0x1c]
call fcn.00403de0
and eax, 0xffff
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], eax
fild qword [esp + 0x38]
fmul dword [0x622f68]
fsubr dword [0x6222d4]
fmul dword [esi + 0x58]
fadd dword [esp + 0x60]
fstp dword [esp + 0x60]
fld dword [esp + 0x64]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x64]
fld dword [esp + 0x68]
fadd dword [esp + 0x20]
fst dword [esp + 0x68]
fmul dword [esp + 0x68]
fld dword [esp + 0x64]
fmul dword [esp + 0x64]
faddp st(1)
fld dword [esp + 0x60]
fmul dword [esp + 0x60]
faddp st(1)
fstp dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.005917c0
fcom dword [0x622c08]
add esp, 4
fnstsw ax
test ah, 0x44
jnp 0x4f0740
fdivr dword [0x6222d4]
fld dword [esp + 0x60]
fmul st(1)
fstp dword [esp + 0x60]
fld dword [esp + 0x64]
fmul st(1)
fstp dword [esp + 0x64]
fld dword [esp + 0x68]
fmul st(1)
fstp dword [esp + 0x68]
mov edx, dword [ebp + 0x1a8]
mov eax, dword [esi + 0x48]
push ebx
mov edi, dword [edx + 4]
mov eax, dword [eax]
fstp st(0)
add edi, 0x80
mov dword [esp + 0x24], eax
call fcn.00403de0
and eax, 0xffff
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x24]
fild qword [esp + 0x44]
push ecx
lea ecx, [esp + 0x68]
fmul dword [0x622f6c]
fld dword [esi + 0x54]
fsub dword [esi + 0x50]
fmulp st(1)
fadd dword [esi + 0x50]
fstp dword [esp]
push ecx
mov ecx, dword [esi + 0x48]
push edi
call dword [eax + 0x44]
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x4f062d
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x7c]
mov edx, dword [esp + 0x10]
mov ebp, dword [ebp + 0x1b4]
add ebp, 0x18
mov al, byte [ebp]
and al, 1
cmp al, 1
jne 0x4f07e6
push 0
push 0
mov ecx, ebp
call fcn.0044a1e0
mov ecx, dword [esp + 0x14]
push 1
push 1
add ecx, 0xc
call fcn.0044f520
mov edx, dword [esp + 0x10]
mov al, byte [ebp]
and al, 0xf7
mov byte [ebp], al
lea eax, [ebx + ebx*8 + 0x6c]
mov eax, dword [esi + eax*4]
mov cl, byte [eax + 0x18]
lea ebx, [eax + 0x18]
and cl, 1
cmp cl, 1
jne 0x4f0822
push 0
push 0
mov ecx, ebx
call fcn.0044a1e0
mov edx, dword [esp + 0x14]
push 1
push 1
lea ecx, [edx + 0xc]
call fcn.0044f520
mov edx, dword [esp + 0x10]
mov cl, byte [ebx]
and cl, 0xf7
mov byte [ebx], cl
mov al, byte [edi + 0x1ac]
test al, al
jg 0x4f11bd
mov al, byte [edi + 0x1d0]
test al, al
jg 0x4f11bd
lea ecx, [esi + 0x88]
mov ebp, 4
movsx eax, byte [esi + 0x564]
fld dword [ecx]
mov ebx, eax
shl ebx, 4
add ebx, eax
fcomp dword [esi + ebx*4 + 0x430]
lea ebx, [esi + ebx*4 + 0x430]
fnstsw ax
and eax, 0x4100
jne 0x4f087b
mov eax, dword [ebx]
mov dword [ecx], eax
add ecx, 0x48
dec ebp
jne 0x4f0850
mov al, byte [edi + 0xc8]
test al, al
je 0x4f08ad
mov ecx, dword [edi + 0xa8]
mov eax, dword [0x6621f4]
mov edx, dword [edi + 0x1a4]
push ecx
mov ecx, dword [eax + 0x88]
push edx
call fcn.004712e0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x60]
push edx
push ecx
mov ecx, esi
call fcn.004ef3e0
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x6c]
push edx
push eax
mov ecx, esi
call fcn.004ef490
mov edx, dword [esi + 0x20]
mov ecx, dword [edi + 0x84]
push ecx
mov ecx, dword [0x6621f4]
mov eax, dword [edx + 4]
mov ecx, dword [ecx + 0x18]
add eax, 0x180
push eax
call fcn.0043c2e0
mov edx, dword [esi + 0x20]
mov ecx, dword [0x6621f4]
xor ebx, ebx
mov eax, dword [edx + 4]
mov ecx, dword [ecx + 0x18]
push ebx
push ebx
push ebx
push 0x3f800000
add eax, 0x180
push 0x3f800000
push eax
call fcn.0043b730
mov edx, dword [0x6621f4]
mov eax, dword [esi + 0x2f8]
fld dword [esi + 0x2fc]
mov ecx, dword [edx + 0x68]
mov edx, dword [esi + 0x2f4]
fld dword [esi + 0x2ec]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x2f0]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x7c], eax
mov eax, 0x1000
test eax, edx
je 0x4f0a0f
fld dword [ecx + 0x670]
fcomp st(1)
fnstsw ax
and eax, 0x4100
jne 0x4f0971
fstp st(0)
fld dword [ecx + 0x670]
fstp dword [ecx + 0x670]
fild dword [esp + 0x18]
fdivr dword [0x6222d4]
fld dword [ecx + 0x678]
fcomp st(1)
fnstsw ax
and eax, 0x4100
jne 0x4f099a
fstp st(0)
fld dword [ecx + 0x678]
fstp dword [ecx + 0x678]
fld dword [ecx + 0x67c]
fcomp st(1)
fnstsw ax
and eax, 0x4100
jne 0x4f09b9
fstp st(0)
fld dword [ecx + 0x67c]
fstp dword [ecx + 0x67c]
fld dword [ecx + 0x674]
fcomp dword [esp + 0x7c]
fnstsw ax
and eax, 0x4100
jne 0x4f09da
fld dword [ecx + 0x674]
jmp 0x4f09de
fld dword [esp + 0x7c]
fstp dword [ecx + 0x674]
fld dword [ecx + 0x668]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x4f0a01
fld dword [esp + 0x10]
fstp dword [ecx + 0x668]
jmp 0x4f0a4d
fld dword [ecx + 0x668]
fstp dword [ecx + 0x668]
jmp 0x4f0a4d
mov edx, dword [ecx + 0xc]
or edx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0xc], edx
mov edx, dword [esp + 0x7c]
fstp dword [ecx + 0x670]
fild dword [esp + 0x18]
mov dword [ecx + 0x674], edx
mov dword [ecx + 0x668], eax
mov dword [ecx + 0x66c], ebx
fdivr dword [0x6222d4]
fstp dword [ecx + 0x678]
fstp dword [ecx + 0x67c]
mov dword [ecx + 0x680], ebx
mov al, byte [esi + 0x564]
inc al
mov byte [esi + 0x564], al
movsx eax, al
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [esi + 0x20]
mov edx, dword [esi + ecx*4 + 0x41c]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [0x6621f4]
push ecx
mov ecx, dword [edx + 0x18]
call fcn.0043c4c0
mov eax, dword [edi + 0x84]
or byte [eax + 0x10], 2
mov ebp, dword [edi + 0xa4]
add eax, 0x10
add ebp, 0x18
mov al, byte [ebp]
and al, 1
cmp al, 1
jne 0x4f0ac0
push ebx
push ebx
mov ecx, ebp
call fcn.0044a1e0
mov ecx, dword [esp + 0x14]
push 1
push 1
add ecx, 0xc
call fcn.0044f520
mov dl, byte [ebp]
and dl, 0xf7
mov byte [ebp], dl
mov eax, dword [edi + 0xa0]
mov dl, byte [eax + 0x18]
lea ebp, [eax + 0x18]
and dl, 1
cmp dl, 1
jne 0x4f0af6
push ebx
push ebx
mov ecx, ebp
call fcn.0044a1e0
mov eax, dword [esp + 0x14]
push 1
push 1
lea ecx, [eax + 0xc]
call fcn.0044f520
mov cl, byte [ebp]
and cl, 0xf7
mov byte [ebp], cl
mov eax, dword [esi + 0x70]
cmp eax, ebx
je 0x4f0d39
fld dword [esi + 0x58c]
fld dword [esi + 0x590]
fld dword [edi + 0x9c]
fadd dword [esi + 0x36c]
mov ecx, dword [esi + 0x594]
mov ebp, 6
mov dword [esp + 0x50], ecx
fstp dword [esp + 0x7c]
fld dword [esp + 0x60]
fmul dword [esp + 0x7c]
fadd st(2)
fstp dword [esp + 0x48]
fld dword [esp + 0x64]
fmul dword [esp + 0x7c]
fadd st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x68]
fmul dword [esp + 0x7c]
fadd dword [esp + 0x50]
fld dword [esi + 0x35c]
fchs
fld dword [esp + 0x6c]
fmul st(1)
fadd dword [esp + 0x48]
fstp dword [esp + 0x48]
fld dword [esp + 0x70]
fmul st(1)
fadd st(3)
fstp dword [esp + 0x4c]
fld dword [esp + 0x74]
fmul st(1)
fadd st(2)
fstp dword [esp + 0x50]
fstp st(0)
fstp st(0)
fstp st(0)
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
call fcn.00403de0
and eax, 0xffff
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], eax
fild qword [esp + 0x40]
fmul dword [0x622f68]
fsubr dword [0x6222d4]
fmul dword [esi + 0x80]
fstp dword [esp + 0x24]
call fcn.00403de0
and eax, 0xffff
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], eax
fild qword [esp + 0x38]
fmul dword [0x622f6c]
fmul dword [esi + 0x80]
fadd dword [0x622c20]
fstp dword [esp + 0x7c]
call fcn.00403de0
and eax, 0xffff
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], eax
fild qword [esp + 0x30]
fmul dword [0x622f68]
fsubr dword [0x6222d4]
fmul dword [esi + 0x80]
fadd dword [esp + 0x54]
fstp dword [esp + 0x54]
fld dword [esp + 0x58]
fadd dword [esp + 0x7c]
fstp dword [esp + 0x58]
fld dword [esp + 0x5c]
fadd dword [esp + 0x24]
fstp dword [esp + 0x5c]
fld dword [esp + 0x54]
fmul dword [esp + 0x54]
fld dword [esp + 0x5c]
fmul dword [esp + 0x5c]
faddp st(1)
fld dword [esp + 0x58]
fmul dword [esp + 0x58]
faddp st(1)
fstp dword [esp + 0x7c]
mov edx, dword [esp + 0x7c]
push edx
call fcn.005917c0
fcom dword [0x622c08]
add esp, 4
fnstsw ax
test ah, 0x44
jnp 0x4f0ca7
fdivr dword [0x6222d4]
fld dword [esp + 0x54]
fmul st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x58]
fmul st(1)
fstp dword [esp + 0x58]
fld dword [esp + 0x5c]
fmul st(1)
fstp dword [esp + 0x5c]
mov eax, dword [esi + 0x70]
push ebx
fstp st(0)
mov eax, dword [eax]
mov dword [esp + 0x80], eax
call fcn.00403de0
and eax, 0xffff
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
fild qword [esp + 0x2c]
mov eax, dword [esp + 0x80]
push ecx
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x50]
fmul dword [0x622f6c]
fld dword [esi + 0x7c]
fsub dword [esi + 0x78]
fmulp st(1)
fadd dword [esi + 0x78]
fstp dword [esp]
push ecx
mov ecx, dword [esi + 0x70]
push edx
call dword [eax + 0x44]
fld dword [esi + 0x35c]
fmul dword [0x627aac]
fld dword [esp + 0x6c]
dec ebp
fmul st(1)
fadd dword [esp + 0x48]
fstp dword [esp + 0x48]
fld dword [esp + 0x70]
fmul st(1)
fadd dword [esp + 0x4c]
fstp dword [esp + 0x4c]
fld dword [esp + 0x74]
fmul st(1)
fadd dword [esp + 0x50]
fstp dword [esp + 0x50]
fstp st(0)
jne 0x4f0b91
mov ecx, dword [edi + 0x1b8]
push ebx
call fcn.00446b30
mov ecx, dword [edi + 0x1dc]
push ebx
call fcn.00446b30
mov eax, dword [edi + 0x1a4]
or byte [eax + 0x10], 2
add eax, 0x10
mov eax, dword [edi + 0x1c8]
or byte [eax + 0x10], 2
add eax, 0x10
cmp dword [esi + 0x5c], ebx
je 0x4f11bd
fld dword [esi + 0x58c]
mov ecx, dword [edi + 0x9c]
mov eax, dword [esi + 0x594]
fld dword [esi + 0x590]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x5c], eax
fld dword [esp + 0x7c]
fmul dword [esp + 0x60]
fadd st(2)
fstp dword [esp + 0x54]
fld dword [esp + 0x64]
fmul dword [esp + 0x7c]
fadd st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x68]
fmul dword [esp + 0x7c]
mov dword [esp + 0x7c], 5
fadd dword [esp + 0x5c]
fld dword [esi + 0x370]
fld dword [esp + 0x6c]
fmul st(1)
fadd dword [esp + 0x54]
fstp dword [esp + 0x54]
fld dword [esp + 0x70]
fmul st(1)
fadd st(3)
fstp dword [esp + 0x58]
fld dword [esp + 0x74]
fmul st(1)
fadd st(2)
fstp dword [esp + 0x5c]
fstp st(0)
fstp st(0)
fstp st(0)
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
call fcn.00403de0
and eax, 0xffff
xor ebx, ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebx
fild qword [esp + 0x40]
fmul dword [0x622f68]
fsubr dword [0x6222d4]
fmul dword [esi + 0x6c]
fstp dword [esp + 0x20]
call fcn.00403de0
and eax, 0xffff
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], eax
fild qword [esp + 0x38]
fmul dword [0x622f6c]
fmul dword [esi + 0x6c]
fadd dword [0x622c20]
fstp dword [esp + 0x24]
call fcn.00403de0
and eax, 0xffff
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], eax
fild qword [esp + 0x30]
fmul dword [0x622f68]
fsubr dword [0x6222d4]
fmul dword [esi + 0x6c]
fadd dword [esp + 0x48]
fstp dword [esp + 0x48]
fld dword [esp + 0x4c]
fadd dword [esp + 0x24]
fstp dword [esp + 0x4c]
fld dword [esp + 0x50]
fadd dword [esp + 0x20]
fstp dword [esp + 0x50]
fld dword [esp + 0x48]
fmul dword [esp + 0x48]
fld dword [esp + 0x50]
fmul dword [esp + 0x50]
faddp st(1)
fld dword [esp + 0x4c]
fmul dword [esp + 0x4c]
faddp st(1)
fstp dword [esp + 0x24]
mov edx, dword [esp + 0x24]
push edx
call fcn.005917c0
fcom dword [0x622c08]
add esp, 4
fnstsw ax
test ah, 0x44
jnp 0x4f0f05
fdivr dword [0x6222d4]
fld dword [esp + 0x48]
fmul st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x4c]
fmul st(1)
fstp dword [esp + 0x4c]
fld dword [esp + 0x50]
fmul st(1)
fstp dword [esp + 0x50]
mov eax, dword [esi + 0x5c]
push ebx
fstp st(0)
mov ebp, dword [eax]
call fcn.00403de0
and eax, 0xffff
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], eax
push ecx
fild qword [esp + 0x30]
lea ecx, [esp + 0x50]
lea edx, [esp + 0x5c]
fmul dword [0x622f6c]
fld dword [esi + 0x68]
fsub dword [esi + 0x64]
fmulp st(1)
fadd dword [esi + 0x64]
fstp dword [esp]
push ecx
mov ecx, dword [esi + 0x5c]
push edx
call dword [ebp + 0x44]
movsx eax, byte [esi + 0x564]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [esp + 0x7c]
dec eax
fld dword [esi + ecx*4 + 0x428]
fmul dword [0x62468c]
fld dword [esp + 0x60]
mov dword [esp + 0x7c], eax
fmul st(1)
fadd dword [esp + 0x54]
fstp dword [esp + 0x54]
fld dword [esp + 0x64]
fmul st(1)
fadd dword [esp + 0x58]
fstp dword [esp + 0x58]
fld dword [esp + 0x68]
fmul st(1)
fadd dword [esp + 0x5c]
fstp dword [esp + 0x5c]
fstp st(0)
jne 0x4f0df6
fld dword [esi + 0x58c]
mov eax, dword [edi + 0x9c]
mov edx, dword [esi + 0x594]
fld dword [esi + 0x590]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x5c], edx
fld dword [esp + 0x7c]
fmul dword [esp + 0x60]
mov edi, 5
fadd st(2)
fstp dword [esp + 0x54]
fld dword [esp + 0x64]
fmul dword [esp + 0x7c]
fadd st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x68]
fmul dword [esp + 0x7c]
fadd dword [esp + 0x5c]
fld dword [esi + 0x370]
fchs
fld dword [esp + 0x6c]
fmul st(1)
fadd dword [esp + 0x54]
fstp dword [esp + 0x54]
fld dword [esp + 0x70]
fmul st(1)
fadd st(3)
fstp dword [esp + 0x58]
fld dword [esp + 0x74]
fmul st(1)
fadd st(2)
fstp dword [esp + 0x5c]
fstp st(0)
fstp st(0)
fstp st(0)
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
call fcn.00403de0
and eax, 0xffff
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], eax
fild qword [esp + 0x40]
fmul dword [0x622f68]
fsubr dword [0x6222d4]
fmul dword [esi + 0x6c]
fstp dword [esp + 0x24]
call fcn.00403de0
and eax, 0xffff
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], eax
fild qword [esp + 0x38]
fmul dword [0x622f6c]
fmul dword [esi + 0x6c]
fadd dword [0x622c20]
fstp dword [esp + 0x7c]
call fcn.00403de0
and eax, 0xffff
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], eax
fild qword [esp + 0x30]
fmul dword [0x622f68]
fsubr dword [0x6222d4]
fmul dword [esi + 0x6c]
fadd dword [esp + 0x48]
fstp dword [esp + 0x48]
fld dword [esp + 0x4c]
fadd dword [esp + 0x7c]
fstp dword [esp + 0x4c]
fld dword [esp + 0x50]
fadd dword [esp + 0x24]
fstp dword [esp + 0x50]
fld dword [esp + 0x48]
fmul dword [esp + 0x48]
fld dword [esp + 0x50]
fmul dword [esp + 0x50]
faddp st(1)
fld dword [esp + 0x4c]
fmul dword [esp + 0x4c]
faddp st(1)
fstp dword [esp + 0x7c]
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.005917c0
fcom dword [0x622c08]
add esp, 4
fnstsw ax
test ah, 0x44
jnp 0x4f112c
fdivr dword [0x6222d4]
fld dword [esp + 0x48]
fmul st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x4c]
fmul st(1)
fstp dword [esp + 0x4c]
fld dword [esp + 0x50]
fmul st(1)
fstp dword [esp + 0x50]
mov edx, dword [esi + 0x5c]
push ebx
fstp st(0)
mov ebp, dword [edx]
call fcn.00403de0
and eax, 0xffff
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], eax
push ecx
fild qword [esp + 0x30]
lea eax, [esp + 0x50]
lea ecx, [esp + 0x5c]
fmul dword [0x622f6c]
fld dword [esi + 0x68]
fsub dword [esi + 0x64]
fmulp st(1)
fadd dword [esi + 0x64]
fstp dword [esp]
push eax
push ecx
mov ecx, dword [esi + 0x5c]
call dword [ebp + 0x44]
movsx eax, byte [esi + 0x564]
mov edx, eax
shl edx, 4
add edx, eax
dec edi
fld dword [esi + edx*4 + 0x428]
fmul dword [0x62468c]
fld dword [esp + 0x60]
fmul st(1)
fadd dword [esp + 0x54]
fstp dword [esp + 0x54]
fld dword [esp + 0x64]
fmul st(1)
fadd dword [esp + 0x58]
fstp dword [esp + 0x58]
fld dword [esp + 0x68]
fmul st(1)
fadd dword [esp + 0x5c]
fstp dword [esp + 0x5c]
fstp st(0)
jne 0x4f101f
mov eax, dword [esi + 8]
mov byte [esp + 0x7c], 0
mov ecx, eax
pop ebp
shr ecx, 6
test cl, 1
je 0x4f11d5
mov byte [esp + 0x78], 1
mov edx, eax
shr edx, 7
test dl, 1
je 0x4f11e3
inc byte [esp + 0x78]
mov ecx, eax
shr ecx, 8
test cl, 1
je 0x4f11f1
inc byte [esp + 0x78]
shr eax, 9
test al, 1
je 0x4f11fc
inc byte [esp + 0x78]
movsx edx, byte [esi + 0x564]
mov eax, dword [esp + 0x78]
and eax, 0xff
cmp edx, eax
jl 0x4f1248
mov al, byte [esi + 0x1d]
cmp al, 6
je 0x4f1248
cmp al, 0xff
je 0x4f122d
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
and eax, 0xff
push 5
push 2
call dword [edx + eax*4]
mov al, byte [esi + 0x1d]
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
mov byte [esp + 0x78], al
mov eax, dword [esp + 0x78]
mov byte [esi + 0x1d], 5
push eax
push 1
call dword [edx + 0x14]
pop edi
pop esi
pop ebx
add esp, 0x68
ret 4