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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61fc58
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x20]
cmp ecx, 0xffffffff
je 0x5137c6
mov eax, dword [0x6621f4]
push ecx
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 0x3c]
mov ecx, eax
call fcn.0042a720
mov ebx, 7
lea ecx, [esi + 0x2c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], ebx
lea ebp, [esi + 0x78]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x30], 6
mov edx, dword [esp + 0x10]
mov edx, dword [edx]
mov eax, dword [edx + 0x14]
mov dword [esp + 0x3c], eax
mov ecx, dword [edx + 0x18]
mov eax, dword [esi + 8]
mov dword [esp + 0x40], ecx
mov ecx, ebx
shr eax, cl
and al, 3
mov byte [esp + 0x34], al
mov eax, dword [esp + 0x34]
and eax, 0xff
sub eax, 0
je 0x513741
dec eax
je 0x51357d
dec eax
jne 0x513799
fld dword [ebp + 8]
fcomp dword [ebp]
fnstsw ax
test ah, 0x44
jnp 0x5134a5
mov ecx, dword [esp + 0x54]
fld dword [ecx + 0xc]
fmul dword [ebp + 4]
fld dword [ebp + 8]
fcomp dword [ebp]
fnstsw ax
test ah, 5
jp 0x51348f
fadd dword [ebp + 8]
fst dword [ebp + 8]
fcomp dword [ebp]
fnstsw ax
and eax, 0x4100
jne 0x5134a5
mov edx, dword [ebp]
mov dword [ebp + 8], edx
jmp 0x5134a5
fsubr dword [ebp + 8]
fst dword [ebp + 8]
fcomp dword [ebp]
fnstsw ax
test ah, 5
jp 0x5134a5
mov eax, dword [ebp]
mov dword [ebp + 8], eax
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x3c]
fld dword [ebp + 8]
mov ecx, dword [edi]
push eax
fstp dword [esp + 0x44]
mov edx, dword [ecx]
call dword [edx + 0x50]
fld dword [ebp + 8]
fld dword [ebp]
fcompp
fnstsw ax
test ah, 0x44
jp 0x513799
fld dword [ebp]
fcomp dword [edi + 0x34]
fnstsw ax
test ah, 0x44
jp 0x513572
push ecx
mov ecx, dword [esi + 0xdc]
mov eax, esp
mov dword [esp + 0x3c], esp
mov dword [eax], ecx
mov ecx, dword [edi]
mov edx, dword [ecx]
call dword [edx + 0x68]
mov eax, dword [esi + 0xdc]
xor ecx, ecx
mov cl, al
xor edx, edx
mov dword [esp + 0x2c], ecx
mov dword [esi + 0xc4], eax
fild dword [esp + 0x2c]
mov dl, byte [esi + 0xc5]
xor eax, eax
mov al, byte [esi + 0xc6]
mov dword [esp + 0x2c], edx
fstp dword [esi + 0xcc]
fild dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
xor ecx, ecx
mov cl, byte [esi + 0xc7]
fstp dword [esi + 0xd0]
fild dword [esp + 0x2c]
mov dword [esp + 0x2c], ecx
fstp dword [esi + 0xd4]
fild dword [esp + 0x2c]
fstp dword [esi + 0xd8]
fld dword [esi + 0x58]
mov edx, dword [esi + 0x50]
fstp dword [esi + 0xc8]
mov dword [esi + 0xc0], edx
mov edx, 1
jmp 0x513780
fld dword [edi + 0x34]
fstp dword [ebp]
jmp 0x513799
mov eax, dword [esp + 0x54]
mov ecx, dword [esi + 0xc0]
lea edi, [esi + 0xc0]
mov dword [esp + 0x4c], 0
fld dword [eax + 0xc]
cmp dword [edi + 4], ecx
je 0x5136bf
fmul dword [edi + 8]
xor edx, edx
xor eax, eax
mov dl, cl
mov al, byte [edi + 1]
fmul dword [0x622c14]
mov dword [esp + 0x24], edx
xor edx, edx
mov dl, byte [edi + 2]
fstp dword [esp + 0x14]
fild dword [esp + 0x24]
mov dword [esp + 0x24], eax
xor eax, eax
mov al, byte [edi + 3]
fsub dword [edi + 0xc]
fstp dword [esp + 0x18]
fild dword [esp + 0x24]
mov dword [esp + 0x24], edx
fsub dword [edi + 0x10]
fstp dword [esp + 0x1c]
fild dword [esp + 0x24]
mov dword [esp + 0x24], eax
fsub dword [edi + 0x14]
fstp dword [esp + 0x20]
fild dword [esp + 0x24]
fsub dword [edi + 0x18]
fst dword [esp + 0x24]
fmul dword [esp + 0x24]
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fst dword [esp + 0x38]
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
fxch st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x51363e
mov dword [edi + 4], ecx
jmp 0x5136c1
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00591820
fmul dword [esp + 0x18]
fld dword [esp + 0x1c]
add esp, 4
fmul st(1)
fadd dword [edi + 0xc]
fst dword [edi + 0xc]
fld dword [esp + 0x1c]
fmul st(2)
fadd dword [edi + 0x10]
fst dword [esp + 0x38]
fstp dword [edi + 0x10]
fld dword [esp + 0x20]
fmul st(2)
fadd dword [edi + 0x14]
fst dword [esp + 0x20]
fstp dword [edi + 0x14]
fld dword [esp + 0x24]
fmul st(2)
fadd dword [edi + 0x18]
fst dword [esp + 0x24]
fstp dword [edi + 0x18]
call fcn.00608fb4
fstp st(0)
fld dword [esp + 0x38]
mov byte [edi + 4], al
call fcn.00608fb4
fld dword [esp + 0x20]
mov byte [edi + 5], al
call fcn.00608fb4
fld dword [esp + 0x24]
mov byte [edi + 6], al
call fcn.00608fb4
mov ebx, dword [esp + 0x2c]
mov byte [edi + 7], al
jmp 0x5136c1
fstp st(0)
mov ecx, edi
call fcn.00461a00
mov edx, dword [eax]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 0x68]
mov eax, dword [esi + 0xc4]
mov ecx, dword [esi + 0x50]
cmp eax, ecx
jne 0x5136fc
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0xdc]
mov dword [esi + 0xc8], eax
jmp 0x51370d
cmp eax, dword [esi + 0xdc]
jne 0x51370f
mov edx, dword [esi + 0x58]
mov dword [esi + 0xc8], edx
mov dword [edi], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
call fcn.00428ad0
test al, al
jne 0x513737
mov eax, dword [esi + 8]
mov edx, 3
mov ecx, ebx
shl edx, cl
not edx
and edx, eax
xor eax, eax
shl eax, cl
or edx, eax
mov dword [esi + 8], edx
mov dword [esp + 0x4c], 0xffffffff
jmp 0x513799
mov ecx, edx
call fcn.00428ad0
test al, al
je 0x513799
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x28]
mov al, byte [esp + 0x58]
and ecx, 0xffffff8f
fld dword [esp + 0x40]
shl edx, 4
or ecx, edx
test al, al
mov dword [esi + 8], ecx
je 0x51376f
fadd dword [esi + 0x5c]
jmp 0x513772
fsub dword [esi + 0x5c]
fstp dword [ebp]
fld dword [esi + 0x54]
fstp dword [ebp + 4]
mov edx, 2
mov eax, 3
mov ecx, ebx
shl eax, cl
mov ecx, dword [esi + 8]
not eax
and eax, ecx
mov ecx, ebx
shl edx, cl
or eax, edx
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
inc eax
add edi, 4
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
add ebp, 0xc
add ebx, 2
dec eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], eax
jne 0x513410
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret 8