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

Disassembly:
push 0xffffffffffffffff
push 0x578958
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x6b38a0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x14]
call fcn.00417d80
mov ebx, dword [esp + 0x4c]
push 0xa
push 0
push 5
push ebx
mov dword [esp + 0x54], 0
call fcn.0041aa70
fmul qword [0x674328]
lea eax, [esp + 0x40]
movzx esi, bl
push eax
fstp dword [esp + 0x44]
push esi
push 0x2000045
call fcn.00419cf0
lea ecx, [esp + 0x2f]
push ecx
push esi
push 0x101007b
call fcn.00419de0
lea edx, [esp + 0x3b]
push edx
push esi
push 0x201002d
call fcn.00419cf0
push 0xa
push 0
push 9
push ebx
call fcn.0041aa70
fstp dword [esp + 0x78]
add esp, 0x44
lea eax, [esp + 0x34]
push eax
push esi
push 0x2000046
call fcn.00419cf0
lea ecx, [esp + 0x1f]
push ecx
push esi
push 0x1010070
call fcn.00419de0
lea edx, [esp + 0x2b]
push edx
push esi
push 0x201002e
call fcn.00419cf0
push 0xa
push 0
push 0
push ebx
call fcn.0041aa70
fstp dword [esp + 0x58]
lea eax, [esp + 0x49]
push eax
push esi
push 0x101006e
call fcn.00419de0
add esp, 0x40
cmp byte [esp + 0x15], 0
je 0x50e64f
lea ecx, [esp + 0x13]
mov byte [esp + 0x13], 3
push ecx
jmp 0x50e659
lea edx, [esp + 0x13]
mov byte [esp + 0x13], 0
push edx
push esi
push 0x2010009
call fcn.00419cf0
add esp, 0xc
lea eax, [esp + 0x16]
push eax
push esi
push 0x301044c
call fcn.00419de0
lea ecx, [esp + 0x2c]
push ecx
push esi
push 0x30000fa
call fcn.00419de0
lea edx, [esp + 0x34]
push edx
push esi
push 0x30000fb
call fcn.00419de0
mov al, byte [esp + 0x3a]
add esp, 0x24
cmp al, 4
jne 0x50e6c1
lea eax, [esp + 0x28]
push eax
push esi
push 0x30001e0
call fcn.00419de0
fld dword [esp + 0x30]
fld dword [esp + 0x34]
add esp, 0xc
fcompp
jmp 0x50e722
cmp al, 5
jne 0x50e74c
lea eax, [esp + 0x38]
push eax
push esi
push 0x30001e1
call fcn.00419de0
lea ecx, [esp + 0x34]
push ecx
push esi
push 0x30001e0
call fcn.00419de0
fld dword [esp + 0x3c]
fld dword [esp + 0x50]
add esp, 0x18
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x50e71c
lea edx, [esp + 0x20]
fstp st(0)
push edx
push esi
push 0x3000106
call fcn.00419de0
lea eax, [esp + 0x28]
push eax
push esi
push 0x3000107
jmp 0x50e744
fld dword [esp + 0x28]
fcompp
fnstsw ax
test ah, 5
jp 0x50e74c
lea ecx, [esp + 0x20]
push ecx
push esi
push 0x3000100
call fcn.00419de0
lea edx, [esp + 0x28]
push edx
push esi
push 0x3000101
call fcn.00419de0
add esp, 0x18
fld dword [esp + 0x24]
sub esp, 0xc
fstp dword [esp + 8]
lea ecx, [esp + 0x20]
fld dword [esp + 0x28]
fstp dword [esp + 4]
fld dword [esp + 0x2c]
fstp dword [esp]
call fcn.00417d90
lea eax, [esp + 0x2c]
fstp dword [esp + 0x2c]
push eax
push 0
push 0x2000037
call fcn.00419cf0
lea ecx, [esp + 0x30]
push ecx
push esi
push 0x2000032
call fcn.00419cf0
lea edx, [esp + 0x44]
push edx
push esi
push 0x2000004
call fcn.00419cf0
lea eax, [esp + 0x3c]
push eax
push esi
push 0x2020003
call fcn.00419de0
lea ecx, [esp + 0x47]
push ecx
push esi
push 0x2010010
call fcn.00419de0
fld dword [esp + 0x68]
movzx eax, word [esp + 0x54]
fstp dword [esp + 0x38]
movzx ecx, byte [esp + 0x53]
cdq
idiv ecx
add esp, 0x38
mov ecx, edi
push edx
call fcn.005038d0
lea edx, [esp + 0x13]
push edx
push esi
push 0x2010008
call fcn.00419cf0
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0xffffffff
call fcn.00415980
mov eax, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x38
ret 4