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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x158
mov eax, dword [0x52f010]
xor eax, esp
mov dword [esp + 0x154], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x3c], esi
call fcn.0042cce0
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x90]
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
mov dword [esp + 0x44], eax
call fcn.0041f560
mov ecx, eax
call fcn.0041e8f0
push eax
lea ecx, [esp + 0x118]
call fcn.0041ed30
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x90]
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
call fcn.0041f5a0
mov ecx, eax
call fcn.0041e8f0
push 3
push 2
lea ecx, [esp + 0x11c]
call fcn.0041ec60
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x90]
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
call fcn.0041f5e0
mov ecx, eax
call fcn.0041e8f0
push eax
lea ecx, [esp + 0x130]
call fcn.0041ed30
lea ecx, [esp + 0x12c]
call fcn.0041ed20
lea ecx, [esp + 0x114]
call fcn.0041ed20
mov ecx, edi
call fcn.0042cd30
mov esi, eax
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x2c], esi
xor edx, edx
mov dword [esp + 0x30], eax
xor edi, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
test esi, esi
je 0x50f620
nop
xor esi, esi
cmp dword [esp + 0x38], esi
jbe 0x50f4c4
mov byte [esp + 0x84], 0
mov byte [esp + 0x88], 0
mov byte [esp + 0x8c], 0
mov byte [esp + 0x40], 0
mov byte [esp + 0x44], 0
mov byte [esp + 0x48], 0
mov byte [esp + 0x54], 0
mov byte [esp + 0x58], 0
mov byte [esp + 0x5c], 0
mov byte [esp + 0x60], 0
mov byte [esp + 0x64], 0
mov byte [esp + 0x68], 0
mov byte [esp + 0x6c], 0
mov byte [esp + 0x70], 0
mov byte [esp + 0x74], 0
lea ecx, [esp + 0x34]
call fcn.0050e2f0
lea ecx, [esp + 0x18]
call fcn.0050e2f0
lea ecx, [esp + 0x14]
call fcn.0050e2f0
push dword [esp + 0x84]
lea ecx, [esp + 0xb4]
push dword [esp + 0x8c]
push dword [esp + 0x94]
call fcn.0041f7e0
mov ecx, eax
call fcn.0041e8f0
push eax
lea ecx, [esp + 0x118]
call fcn.0041ed30
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x130]
call fcn.0041ed60
lea ecx, [esp + 0x12c]
call fcn.0041eb00
cmp eax, 5
jbe 0x50f26e
push 0x21
push 5
call fcn.0041ead0
push dword [esp + 0x40]
lea ecx, [esp + 0xc4]
push dword [esp + 0x48]
push dword [esp + 0x50]
call fcn.0041f820
mov ecx, eax
call fcn.0041e8f0
push eax
lea ecx, [esp + 0x118]
call fcn.0041ed10
lea ecx, [esp + 0x12c]
call fcn.0041ed20
lea ecx, [esp + 0x114]
call fcn.0041ed20
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x24]
push esi
call fcn.0050e450
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
push esi
call fcn.0050e450
push dword [esp + 0x54]
lea ecx, [esp + 0xd4]
push dword [esp + 0x5c]
push dword [esp + 0x64]
call fcn.0041fa60
mov ecx, eax
call fcn.0041e8f0
push eax
lea ecx, [esp + 0x118]
call fcn.0041ed30
push dword [esp + 0x60]
lea ecx, [esp + 0xe4]
push dword [esp + 0x68]
push dword [esp + 0x70]
call fcn.0041faa0
mov ecx, eax
call fcn.0041e8f0
push eax
lea edx, [esp + 0x118]
lea ecx, [esp + 0x130]
call fcn.0041fae0
push dword [esp + 0x6c]
lea ecx, [esp + 0xf4]
push dword [esp + 0x74]
push dword [esp + 0x7c]
call fcn.0041fb40
mov ecx, eax
call fcn.0041e8f0
push eax
push 3
lea ecx, [esp + 0x134]
call fcn.0041ec80
push 2
push 0
lea eax, [esp + 0x14c]
push eax
lea ecx, [esp + 0x120]
call fcn.0041e9f0
lea ecx, [esp + 0x144]
call fcn.0041ed20
lea ecx, [esp + 0x12c]
call fcn.0041ed20
lea ecx, [esp + 0x114]
call fcn.0041ed20
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x50f484
lea ecx, [esp + 0x14]
push ecx
push dword [esp + 0x24]
mov ecx, eax
push esi
call fcn.0050e450
mov byte [esp + 0x78], 0
lea ecx, [esp + 0x100]
push dword [esp + 0x78]
mov byte [esp + 0x80], 0
push dword [esp + 0x80]
mov byte [esp + 0x88], 0
push dword [esp + 0x88]
call fcn.0041f860
mov ecx, eax
call fcn.0041e8f0
push eax
lea ecx, [esp + 0x118]
call fcn.0041ed30
lea ecx, [esp + 0x114]
call fcn.0041ebc0
mov byte [esp + 0x90], 0
lea ecx, [esp + 0xa0]
push dword [esp + 0x90]
mov byte [esp + 0x28], 0
push dword [esp + 0x28]
mov byte [esp + 0x30], 0
push dword [esp + 0x30]
call fcn.0041f8a0
mov ecx, eax
call fcn.0041e8f0
push eax
lea ecx, [esp + 0x118]
call fcn.0041ece0
lea ecx, [esp + 0x114]
call fcn.0041ed20
lea ecx, [esp + 0x14]
call fcn.0050e330
mov edx, dword [esp + 0x1c]
cmp al, 0xff
je 0x50f488
inc edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], edx
call fcn.0050e310
cmp al, 0xff
jne 0x50f488
inc edi
jmp 0x50f488
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
call fcn.0050e330
cmp al, 0xff
je 0x50f4b1
inc dword [esp + 0x10]
lea ecx, [esp + 0x34]
call fcn.0050e310
cmp al, 0xff
mov eax, dword [esp + 0x30]
jne 0x50f4b5
inc eax
mov dword [esp + 0x30], eax
jmp 0x50f4b5
mov eax, dword [esp + 0x30]
inc esi
cmp esi, dword [esp + 0x38]
jb 0x50f1f0
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, dword [esp + 0x2c]
jb 0x50f190
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x50f620
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x50f4ef
test edx, edx
je 0x50f620
movd xmm0, ecx
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr ecx, 0x1f
shr eax, 0x1f
mov byte [esp + 0x2c], 0
mov byte [esp + 0x28], 0
mov byte [esp + 0x24], 0
cvtdq2pd xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x52bb30]
addsd xmm0, qword [ecx*8 + 0x52bb30]
push dword [esp + 0x2c]
lea ecx, [esp + 0xa4]
push dword [esp + 0x2c]
divsd xmm1, xmm0
push dword [esp + 0x2c]
movsd qword [esp + 0x9c], xmm1
call fcn.0041f4e0
mov ecx, eax
call fcn.0041e8f0
push eax
lea ecx, [esp + 0x118]
call fcn.0041ed30
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0xa0]
push dword [esp + 0x2c]
mov byte [esp + 0x2c], 0
push dword [esp + 0x2c]
mov byte [esp + 0x2c], 0
push dword [esp + 0x2c]
call fcn.0041f520
mov ecx, eax
call fcn.0041e8f0
push eax
lea ecx, [esp + 0x148]
call fcn.0041ed30
lea ecx, [esp + 0x144]
call fcn.0041ed20
lea ecx, [esp + 0x114]
call fcn.0041ed20
test esi, esi
je 0x50f5e8
mov eax, dword [esp + 0x1c]
movd xmm1, edi
cvtdq2pd xmm1, xmm1
shr edi, 0x1f
movd xmm0, eax
addsd xmm1, qword [edi*8 + 0x52bb30]
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x52bb30]
divsd xmm1, xmm0
jmp 0x50f5eb
xorps xmm1, xmm1
movsd xmm2, qword [0x52ac70]
movsd xmm0, qword [esp + 0x90]
comisd xmm0, xmm2
jae 0x50f608
comisd xmm1, xmm2
jb 0x50f620
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.00527df2
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x15c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.00527df2
mov esp, ebp
pop ebp
ret 4