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

Disassembly:
push 0xffffffffffffffff
push 0x5ecce0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x667050]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
mov ecx, edi
sub ecx, ebp
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
sub eax, edx
sar eax, 1
lea eax, [eax + eax*8]
lea esi, [ebp + eax*4]
push ebx
lea eax, [edi - 0x24]
push esi
mov ecx, ebp
call fcn.0050fd00
add esp, 8
cmp ebp, esi
lea edi, [esi + 0x24]
mov dword [esp + 0x18], edi
jae 0x50f659
lea ebp, [esi - 0x20]
mov ecx, dword [esi]
sub esp, 0x24
mov eax, esp
mov dword [eax], ecx
mov edx, dword [ebp + 0x24]
lea ecx, [ebp + 0x28]
mov dword [esp + 0x40], esp
push ecx
lea ecx, [eax + 8]
mov dword [eax + 4], edx
call dword [0x610494]
mov dword [esp + 0x54], 0
mov ecx, dword [ebp - 4]
sub esp, 0x24
mov eax, esp
mov dword [eax], ecx
mov edx, dword [ebp]
lea ecx, [ebp + 4]
mov dword [esp + 0x68], esp
push ecx
lea ecx, [eax + 8]
mov dword [eax + 4], edx
call dword [0x610494]
mov dword [esp + 0x78], 0xffffffff
call ebx
add esp, 0x48
test al, al
jne 0x50f659
mov ecx, dword [ebp - 4]
sub esp, 0x24
mov eax, esp
mov dword [eax], ecx
mov edx, dword [ebp]
lea ecx, [ebp + 4]
mov dword [esp + 0x44], esp
push ecx
lea ecx, [eax + 8]
mov dword [eax + 4], edx
call dword [0x610494]
mov dword [esp + 0x54], 1
mov ecx, dword [esi]
sub esp, 0x24
mov eax, esp
mov dword [eax], ecx
mov edx, dword [ebp + 0x24]
lea ecx, [ebp + 0x28]
mov dword [esp + 0x64], esp
push ecx
lea ecx, [eax + 8]
mov dword [eax + 4], edx
call dword [0x610494]
mov dword [esp + 0x78], 0xffffffff
call ebx
add esp, 0x48
test al, al
jne 0x50f659
sub esi, 0x24
sub ebp, 0x24
cmp dword [esp + 0x3c], esi
jb 0x50f595
cmp edi, dword [esp + 0x40]
jae 0x50f723
mov ecx, dword [esi]
sub esp, 0x24
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esi + 4]
lea ecx, [esi + 8]
mov dword [esp + 0x44], esp
push ecx
lea ecx, [eax + 8]
mov dword [eax + 4], edx
call dword [0x610494]
mov dword [esp + 0x54], 2
mov edx, dword [edi]
sub esp, 0x24
mov eax, esp
mov dword [eax], edx
mov ecx, dword [edi + 4]
mov dword [esp + 0x64], esp
mov dword [eax + 4], ecx
lea ebp, [edi + 8]
push ebp
lea ecx, [eax + 8]
call dword [0x610494]
mov dword [esp + 0x78], 0xffffffff
call ebx
add esp, 0x48
test al, al
jne 0x50f71f
mov edx, dword [edi]
sub esp, 0x24
mov eax, esp
mov dword [eax], edx
mov ecx, dword [edi + 4]
mov dword [esp + 0x44], esp
mov dword [eax + 4], ecx
push ebp
lea ecx, [eax + 8]
call dword [0x610494]
mov dword [esp + 0x54], 3
mov edx, dword [esi]
sub esp, 0x24
mov eax, esp
mov dword [eax], edx
mov ecx, dword [esi + 4]
lea edx, [esi + 8]
mov dword [esp + 0x64], esp
mov dword [eax + 4], ecx
push edx
lea ecx, [eax + 8]
call dword [0x610494]
mov dword [esp + 0x78], 0xffffffff
call ebx
add esp, 0x48
test al, al
jne 0x50f71f
add edi, 0x24
cmp edi, dword [esp + 0x40]
jb 0x50f663
mov dword [esp + 0x18], edi
mov eax, esi
mov ebp, edi
mov dword [esp + 0x1c], eax
jmp 0x50f730
cmp ebp, dword [esp + 0x40]
jae 0x50f827
lea ebx, [ebx]
mov ecx, dword [ebp]
sub esp, 0x24
mov eax, esp
mov dword [eax], ecx
mov edx, dword [ebp + 4]
lea ecx, [ebp + 8]
mov dword [esp + 0x44], esp
push ecx
lea ecx, [eax + 8]
mov dword [eax + 4], edx
call dword [0x610494]
mov dword [esp + 0x54], 4
mov ecx, dword [esi]
sub esp, 0x24
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esi + 4]
lea ecx, [esi + 8]
mov dword [esp + 0x6c], esp
push ecx
lea ecx, [eax + 8]
mov dword [eax + 4], edx
call dword [0x610494]
mov dword [esp + 0x78], 0xffffffff
call ebx
add esp, 0x48
test al, al
jne 0x50f816
mov edx, dword [esi]
sub esp, 0x24
mov eax, esp
mov dword [eax], edx
mov ecx, dword [esi + 4]
lea edx, [esi + 8]
mov dword [esp + 0x48], esp
mov dword [eax + 4], ecx
push edx
lea ecx, [eax + 8]
call dword [0x610494]
mov dword [esp + 0x54], 5
mov ecx, dword [ebp]
sub esp, 0x24
mov eax, esp
mov dword [eax], ecx
mov edx, dword [ebp + 4]
lea ecx, [ebp + 8]
mov dword [esp + 0x68], esp
push ecx
lea ecx, [eax + 8]
mov dword [eax + 4], edx
call dword [0x610494]
mov dword [esp + 0x78], 0xffffffff
call ebx
add esp, 0x48
test al, al
jne 0x50f823
mov edx, dword [ebp]
mov eax, edi
mov ecx, dword [eax]
add edi, 0x24
mov dword [eax], edx
mov dword [ebp], ecx
mov dword [esp + 0x18], edi
lea ecx, [eax + 4]
lea edi, [ebp + 4]
call fcn.00510650
mov edi, dword [esp + 0x18]
add ebp, 0x24
cmp ebp, dword [esp + 0x40]
jb 0x50f740
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x3c]
jbe 0x50f920
lea edi, [eax - 0x20]
mov ecx, dword [esi]
sub esp, 0x24
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esi + 4]
lea ecx, [esi + 8]
mov dword [esp + 0x48], esp
push ecx
lea ecx, [eax + 8]
mov dword [eax + 4], edx
call dword [0x610494]
mov dword [esp + 0x54], 6
mov ecx, dword [edi - 4]
sub esp, 0x24
mov eax, esp
mov dword [eax], ecx
mov edx, dword [edi]
lea ecx, [edi + 4]
mov dword [esp + 0x68], esp
push ecx
lea ecx, [eax + 8]
mov dword [eax + 4], edx
call dword [0x610494]
mov dword [esp + 0x78], 0xffffffff
call ebx
add esp, 0x48
test al, al
jne 0x50f8fc
mov ecx, dword [edi - 4]
sub esp, 0x24
mov eax, esp
mov dword [eax], ecx
mov edx, dword [edi]
lea ecx, [edi + 4]
mov dword [esp + 0x48], esp
push ecx
lea ecx, [eax + 8]
mov dword [eax + 4], edx
call dword [0x610494]
mov dword [esp + 0x54], 7
mov ecx, dword [esi]
sub esp, 0x24
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esi + 4]
lea ecx, [esi + 8]
mov dword [esp + 0x68], esp
push ecx
lea ecx, [eax + 8]
mov dword [eax + 4], edx
call dword [0x610494]
mov dword [esp + 0x78], 0xffffffff
call ebx
add esp, 0x48
test al, al
jne 0x50f914
mov ecx, dword [edi - 4]
mov eax, dword [esi - 0x24]
sub esi, 0x24
mov dword [esi], ecx
lea ecx, [esi + 4]
mov dword [edi - 4], eax
call fcn.00510650
mov eax, dword [esp + 0x1c]
sub eax, 0x24
sub edi, 0x24
cmp dword [esp + 0x3c], eax
mov dword [esp + 0x1c], eax
jb 0x50f834
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
cmp eax, dword [esp + 0x3c]
jne 0x50f978
cmp ebp, dword [esp + 0x40]
je 0x50f9f0
cmp edi, ebp
je 0x50f947
mov edx, dword [edi]
mov eax, dword [esi]
mov dword [esi], edx
mov dword [edi], eax
add edi, 4
lea ecx, [esi + 4]
call fcn.00510650
mov edi, dword [esp + 0x18]
add edi, 0x24
mov eax, ebp
mov ecx, esi
mov edx, dword [ecx]
mov dword [esp + 0x18], edi
mov edi, dword [eax]
mov dword [ecx], edi
lea edi, [eax + 4]
add ecx, 4
add esi, 0x24
add ebp, 0x24
mov dword [eax], edx
call fcn.00510650
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
jmp 0x50f730
sub eax, 0x24
cmp ebp, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
jne 0x50f9cb
sub esi, 0x24
cmp eax, esi
je 0x50f9a3
mov ecx, dword [eax]
mov edx, dword [esi]
mov dword [eax], edx
mov dword [esi], ecx
lea edi, [esi + 4]
lea ecx, [eax + 4]
call fcn.00510650
mov edi, dword [esp + 0x18]
mov ecx, dword [edi - 0x24]
mov eax, dword [esi]
sub edi, 0x24
mov dword [esi], ecx
mov dword [edi], eax
mov dword [esp + 0x18], edi
add edi, 4
lea ecx, [esi + 4]
call fcn.00510650
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
jmp 0x50f730
mov ecx, dword [ebp]
mov edx, dword [eax]
mov dword [ebp], edx
mov dword [eax], ecx
lea edi, [eax + 4]
lea ecx, [ebp + 4]
call fcn.00510650
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
add ebp, 0x24
jmp 0x50f730
mov eax, dword [esp + 0x38]
mov dword [eax], esi
mov dword [eax + 4], edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret