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

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x50fb5b
sub esp, 0x84
lea eax, [0x6db7c0]
mov dword [esp], eax
call fcn.0040dea0
mov eax, dword [esp + 4]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x88]
mov dword [esp], ecx
call fcn.00510010
mov eax, dword [esp + 4]
movzx ecx, byte [esp + 0xc]
mov edx, dword [esp + 8]
jmp 0x50f71e
mov eax, dword [esp + 0x88]
mov dword [esp], eax
call fcn.00510010
mov eax, dword [esp + 4]
movzx ecx, byte [esp + 0xc]
mov edx, dword [esp + 8]
test cl, cl
je 0x50f802
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00510930
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00510840
mov eax, dword [esp + 0xc]
test eax, eax
je 0x50f702
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x50], ecx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov byte [esp + 8], 0x3a
call fcn.00404130
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x50f7b5
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x50]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00510840
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
sub eax, ecx
dec eax
mov edx, eax
neg eax
sar eax, 0x1f
inc ecx
and ecx, eax
mov eax, dword [esp + 8]
mov dword [esp + 0x54], eax
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x30], ebx
mov ebp, dword [esp + 0x50]
add ecx, ebp
jmp 0x50f825
lea eax, [0x7066ac]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.00480a00
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x5c]
mov dword [edx + 0x14], eax
mov eax, dword [0x8c88d8]
test eax, eax
je 0x50f7f1
call fcn.004772f0
mov dword [edi], ecx
mov eax, dword [edx + 0x18]
mov dword [edi + 4], eax
mov dword [edx + 0x18], ecx
mov dword [esp + 0x8c], edx
add esp, 0x84
ret
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x8c], eax
add esp, 0x84
ret
lea esi, [esp + 0x70]
call fcn.004778be
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.00510840
mov eax, dword [esp + 0xc]
test eax, eax
je 0x50f702
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x4c], ecx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov byte [esp + 8], 0x20
call fcn.00404130
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
jne 0x50f86d
xor ecx, ecx
xor eax, eax
mov edx, dword [esp + 0x20]
jmp 0x50f8a2
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x20]
sub ecx, eax
dec ecx
mov edx, ecx
neg ecx
sar ecx, 0x1f
lea ebx, [eax + 1]
and ebx, ecx
mov ecx, dword [esp + 0x4c]
add ebx, ecx
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.00510840
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x24], edx
test ecx, ecx
je 0x50f94d
cmp byte [eax], 0x5b
je 0x50f8be
xor ebp, ebp
xor esi, esi
xor ebx, ebx
jmp 0x50f953
mov dword [esp + 0x6c], eax
mov dword [esp + 0x48], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov byte [esp + 8], 0x5d
call fcn.00404130
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x50fb0e
mov dword [esp + 0x40], eax
lea ecx, [eax - 1]
mov dword [esp + 0x44], ecx
mov edx, ecx
neg ecx
sar ecx, 0x1f
and ecx, 1
mov ebx, dword [esp + 0x6c]
add ecx, ebx
mov dword [esp + 0x68], ecx
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.0050fb70
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x50fa95
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x40]
sub edx, ebx
lea ecx, [edx - 1]
mov edx, ecx
neg edx
sar edx, 0x1f
inc ebx
and ebx, edx
mov edx, dword [esp + 8]
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x6c]
lea eax, [edi + ebx]
mov ebx, edx
mov edx, dword [esp + 0x24]
jmp 0x50f953
xor ebp, ebp
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x20], ecx
mov edi, dword [esp + 0x5c]
mov eax, dword [edi + 0x1c]
test eax, eax
jne 0x50f9b0
mov dword [esp + 0x58], ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], esi
call fcn.0046c450
mov eax, dword [0x8c88d8]
mov ecx, dword [esp]
test eax, eax
jne 0x50f98a
mov eax, dword [esp + 0x5c]
jmp 0x50f99b
call fcn.004772f0
mov dword [edi], ecx
mov eax, dword [esp + 0x5c]
mov edx, dword [eax + 0x1c]
mov dword [edi + 4], edx
mov dword [eax + 0x1c], ecx
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov edi, eax
mov eax, dword [edi + 0x1c]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], esi
lea ecx, [0x6c3760]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x30]
mov dword [esp + 0xc], edx
call fcn.0046f120
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
inc edx
mov ebx, dword [eax]
cmp ecx, edx
jae 0x50fa56
mov dword [esp + 0x64], eax
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x6de080]
mov dword [esp + 0x10], eax
call fcn.00472770
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x64]
mov dword [ebx + 8], eax
mov eax, dword [0x8c88d8]
test eax, eax
je 0x50fa50
call fcn.004772f0
mov dword [edi], ecx
mov eax, dword [ebx]
mov dword [edi + 4], eax
mov dword [ebx], ecx
mov eax, ebx
mov ebx, ecx
mov dword [eax + 4], edx
mov eax, dword [0x8c88d8]
lea ecx, [edx + edx*4]
lea edi, [ebx + ecx*4 - 0x14]
test eax, eax
je 0x50f814
mov dword [esp + 0x60], edi
lea eax, [0x6de080]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
call fcn.004120e0
mov edi, dword [esp + 0x60]
jmp 0x50f814
mov dword [esp], 0
lea eax, [0x70761d]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x12
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
call fcn.00455df0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00480a00
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x5c]
mov dword [edx + 0x14], eax
mov eax, dword [0x8c88d8]
test eax, eax
je 0x50fafd
call fcn.004772f0
mov dword [edi], ecx
mov eax, dword [edx + 0x18]
mov dword [edi + 4], eax
mov dword [edx + 0x18], ecx
mov dword [esp + 0x8c], edx
add esp, 0x84
ret
lea eax, [0x70c382]
mov dword [esp], eax
mov dword [esp + 4], 0x1a
call fcn.00480a00
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x5c]
mov dword [edx + 0x14], eax
mov eax, dword [0x8c88d8]
test eax, eax
je 0x50fb4a
call fcn.004772f0
mov dword [edi], ecx
mov eax, dword [edx + 0x18]
mov dword [edi + 4], eax
mov dword [edx + 0x18], ecx
mov dword [esp + 0x8c], edx
add esp, 0x84
ret
call fcn.00475ee0
jmp fcn.0050f6b0