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

Disassembly:
push 0xffffffffffffffff
push 0x63fa20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x6c3c60
call fcn.004441f0
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call dword [eax + 0x14]
fild dword [eax + 4]
mov edx, dword [esi]
lea eax, [esp + 0x24]
push eax
fstp dword [esp + 0x14]
mov ecx, esi
call dword [edx + 0x14]
fild dword [eax]
mov ecx, dword [esp + 0x10]
sub esp, 0xc
mov eax, esp
mov dword [eax + 4], ecx
fstp dword [eax]
xor edi, edi
mov ecx, 0x6c3c60
mov dword [esp + 0x20], esp
mov dword [eax + 8], edi
call fcn.00440b50
mov eax, dword [esi + 0x154]
mov ecx, dword [esi + 0x158]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x10], edi
je 0x50f7e7
jmp 0x50f610
cmp edi, 1
mov eax, dword [esi + 0x154]
jne 0x50f76b
lea ecx, [esp + 0x18]
push ecx
lea ecx, [eax + 0xc]
call fcn.0049aca0
mov edi, eax
mov eax, dword [esi + 0x154]
lea edx, [esp + 0x24]
push edx
lea ecx, [eax + 0xc]
mov dword [esp + 0x84], 0
call fcn.0049aca0
mov ebp, eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
mov byte [esp + 0x80], 1
call fcn.0044fa50
mov ecx, dword [ebp]
mov ecx, dword [ecx + 4]
add ecx, ebp
mov edi, eax
call fcn.0044fa50
mov edx, dword [edi]
mov ebx, dword [esi + 0x160]
mov ebp, eax
lea eax, [esp + 0x48]
push eax
mov ecx, edi
call dword [edx + 0x10]
fld dword [esi + 0x198]
mov edi, eax
call fcn.00611c14
mov ecx, dword [edi + 0xc]
lea edx, [ecx + eax - 3]
mov eax, dword [ebp]
push edx
lea ecx, [esp + 0x5c]
push ecx
mov ecx, ebp
call dword [eax + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
push edx
push eax
push ecx
lea ecx, [esp + 0x78]
call fcn.004062d0
mov edx, dword [0x6b5a00]
push edx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, 0x6c3c60
call fcn.00442b40
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 0
call fcn.00450980
or edi, 0xffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x80], edi
call fcn.00450980
mov eax, dword [esi + 0x154]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [eax + 0xc]
call fcn.0049aca0
mov edx, dword [eax]
mov ecx, dword [edx + 4]
mov dword [esp + 0x80], 2
add ecx, eax
call fcn.0044fa50
mov ecx, dword [esi + 0x160]
mov ebx, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
mov edx, dword [eax]
push ebx
push ecx
mov ecx, eax
call dword [edx + 0x30]
lea ecx, [esp + 0x30]
mov dword [esp + 0x80], edi
call fcn.00450980
mov ecx, 0x6c3c60
call fcn.00441680
mov edi, dword [esp + 0x10]
jmp 0x50f7bc
lea edx, [esp + 0x3c]
lea ecx, [edi + edi*2]
push edx
lea ecx, [eax + ecx*4]
call fcn.0049aca0
mov edx, dword [eax]
mov ecx, dword [edx + 4]
add ecx, eax
mov dword [esp + 0x80], 3
call fcn.0044fa50
mov ecx, dword [esi + 0x160]
mov ebx, dword [ecx + edi*8 + 4]
mov ecx, dword [ecx + edi*8]
mov edx, dword [eax]
push ebx
push ecx
mov ecx, eax
call dword [edx + 0x30]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x80], 0xffffffff
call fcn.00450980
mov edx, dword [esi + 0x154]
mov ecx, dword [esi + 0x158]
sub ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
cmp edi, eax
mov dword [esp + 0x10], edi
jb 0x50f610
mov ecx, 0x6c3c60
call fcn.004412b0
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x74
ret