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

Disassembly:
push 0xffffffffffffffff
push 0x5f0ea2
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x667050]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x667050]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x8c]
lea esi, [esp + 0x58]
call fcn.004e29e0
lea eax, [esp + 0x3c]
push eax
mov esi, ebp
mov dword [esp + 0x88], 0
call fcn.0050b7f0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x88], 1
call dword [0x6104cc]
mov esi, dword [eax]
mov edi, dword [eax + 4]
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x5c]
call dword [0x6104d0]
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
lea edx, [esp + 0x24]
mov dword [esp + 0x14], ecx
push edx
lea ecx, [esp + 0x5c]
call dword [0x6104cc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push edi
mov dword [esp + 0x18], ecx
push esi
mov esi, dword [0x6106a8]
mov byte [esp + 0x1c], 0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
push edx
push ecx
push esi
lea edx, [esp + 0x28]
push ebx
push edx
mov edi, eax
call fcn.0050f0b0
add esp, 0x1c
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call dword [0x6104cc]
mov ebx, dword [eax]
mov edi, dword [eax + 4]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x40]
call dword [0x6104d0]
mov edx, dword [eax]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
call dword [0x6104cc]
mov edx, dword [eax]
mov eax, dword [eax + 4]
push edi
mov dword [esp + 0x18], edx
push ebx
mov byte [esp + 0x1c], 0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push esi
push ecx
lea edx, [esp + 0x34]
push edx
mov edi, eax
call fcn.0050f0b0
mov ecx, dword [esp + 0x78]
mov esi, 0x10
add esp, 0x1c
cmp dword [esp + 0x70], esi
jae 0x50b36e
lea ecx, [esp + 0x5c]
cmp dword [esp + 0x54], esi
mov eax, dword [esp + 0x40]
jae 0x50b37c
lea eax, [esp + 0x40]
push ecx
push eax
call dword [0x6106c0]
add esp, 8
test eax, eax
jne 0x50b3b9
lea ecx, [esp + 0x3c]
mov byte [esp + 0x84], al
call dword [0x610510]
lea ecx, [esp + 0x58]
mov dword [esp + 0x84], 0xffffffff
call dword [0x610510]
or eax, 0xffffffff
jmp 0x50b4b9
cmp dword [esp + 0x54], esi
mov ecx, dword [esp + 0x40]
jae 0x50b3c7
lea ecx, [esp + 0x40]
sub eax, ecx
xor esi, esi
mov edi, eax
xor ebx, ebx
nop
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x50b3ef
mov ecx, dword [ebp + 0x28]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
ja 0x50b490
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x50b41a
mov ecx, dword [ebp + 0x28]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x50b420
call dword [0x6105e8]
mov eax, dword [ebp + 0x24]
add eax, ebx
cmp dword [eax + 0x14], edi
ja 0x50b465
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x50b44d
mov ecx, dword [ebp + 0x28]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x50b453
call dword [0x6105e8]
mov eax, dword [ebp + 0x24]
sub edi, dword [eax + ebx + 0x14]
add esi, 1
add ebx, 0x3c
jmp 0x50b3d0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x84], 0
call dword [0x610510]
lea ecx, [esp + 0x58]
mov dword [esp + 0x84], 0xffffffff
call dword [0x610510]
mov eax, esi
jmp 0x50b4b9
lea ecx, [esp + 0x3c]
mov byte [esp + 0x84], 0
call dword [0x610510]
lea ecx, [esp + 0x58]
mov dword [esp + 0x84], 0xffffffff
call dword [0x610510]
mov eax, edi
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.005e693f
add esp, 0x74
ret 4