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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x20]
cmp eax, dword [ecx + 8]
jbe 0x5103cb
sub esp, 0xa0
mov ecx, dword [esp + 0xb4]
test ecx, ecx
je 0x50feb8
cmp ecx, 1
je 0x50fe37
mov eax, dword [esp + 0xac]
test eax, eax
je 0x50fc4a
mov ebx, dword [esp + 0xa4]
lea ebp, [ebx + eax*4 - 4]
mov edx, dword [esp + 0xb8]
mov esi, dword [esp + 0xb0]
lea edi, [esi + edx*4 - 4]
cmp edi, ebp
jne 0x50fc5f
xor eax, eax
xor ebx, ebx
jmp 0x50fc5f
mov edx, dword [esp + 0xb8]
mov esi, dword [esp + 0xb0]
mov ebx, dword [esp + 0xa4]
cmp dword [0x862e08], ecx
jg 0x50fd58
mov ebp, dword [0x862e0c]
cmp ecx, ebp
jl 0x50fc85
nop
mov edi, ecx
xor ecx, ecx
mov dword [esp + 0x74], ecx
mov ecx, edi
jmp 0x50ffe7
mov ebp, ecx
shl ecx, 1
cmp eax, ecx
jl 0x50fc98
jae 0x50fd14
jmp 0x50ffce
cmp ecx, 1
jne 0x50fcd9
lea eax, [0x65a4c0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.004480c0
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0xb8]
mov ebp, dword [esp + 0xb4]
mov eax, 1
mov ecx, 1
jmp 0x50fd14
mov dword [esp + 0x68], ecx
lea eax, [0x65a4c0]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [ecx + 4]
mov dword [esp + 0x3c], eax
mov dword [esp + 8], eax
call fcn.004480c0
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0xb8]
mov ebp, dword [esp + 0xb4]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x84], ebx
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov esi, dword [esp + 0xb0]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edx
call fcn.0050f4d0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x84]
mov edx, eax
jmp 0x50ff87
mov ebp, ecx
shl ecx, 1
cmp eax, ecx
jl 0x50fd6b
jae 0x50fde7
jmp 0x50ff7e
cmp ecx, 1
jne 0x50fdac
lea eax, [0x65a4c0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.004480c0
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0xb8]
mov ebp, dword [esp + 0xb4]
mov eax, 1
mov ecx, 1
jmp 0x50fde7
mov dword [esp + 0x6c], ecx
lea eax, [0x65a4c0]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [ecx + 4]
mov dword [esp + 0x40], eax
mov dword [esp + 8], eax
call fcn.004480c0
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0xb8]
mov ebp, dword [esp + 0xb4]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x88], ebx
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov esi, dword [esp + 0xb0]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], edx
call fcn.0050dc30
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x88]
mov edx, eax
jmp 0x50ff37
mov eax, dword [esp + 0xb0]
mov eax, dword [eax]
mov ecx, dword [esp + 0xac]
cmp ecx, 2
jl 0x50fe55
mov edx, dword [esp + 0xa4]
jmp 0x50fe86
mov dword [esp + 0x78], eax
lea eax, [0x65a4c0]
mov dword [esp], eax
mov dword [esp + 4], 2
mov dword [esp + 8], 6
call fcn.004480c0
mov eax, dword [esp + 0xc]
mov edx, eax
mov ecx, 6
mov eax, dword [esp + 0x78]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x44], ecx
mov dword [esp], eax
mov dword [esp + 4], eax
call fcn.00517230
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x8c]
mov dword [edx + 4], eax
mov dword [edx], ecx
mov eax, 2
jmp 0x50fee8
mov eax, dword [esp + 0xa4]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], 0
mov eax, dword [esp + 0xac]
mov dword [esp + 0xc4], eax
add esp, 0xa0
ret
mov eax, ebx
test eax, eax
jle 0x50fefc
lea ebx, [eax - 1]
cmp ebx, 2
jae 0x50ff29
mov ebp, dword [edx + eax*4 - 4]
test ebp, ebp
je 0x50fee6
mov ebx, dword [esp + 0x44]
cmp eax, ebx
ja 0x50ff20
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ebx
add esp, 0xa0
ret
mov ecx, eax
mov edx, ebx
call fcn.0045f070
mov eax, ebx
mov ecx, 2
call fcn.0045f030
mov eax, ebx
test eax, eax
jle 0x50ff4a
lea ebx, [eax - 1]
cmp edx, ebx
jbe 0x50ff75
mov ebp, dword [ecx + eax*4 - 4]
test ebp, ebp
je 0x50ff35
mov edx, dword [esp + 0x40]
cmp eax, edx
ja 0x50ff6e
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], edx
add esp, 0xa0
ret
mov ecx, eax
call fcn.0045f070
mov eax, ebx
mov ecx, edx
call fcn.0045f030
mov edx, eax
call fcn.0045f070
mov eax, ebx
test eax, eax
jle 0x50ff9a
lea ebx, [eax - 1]
cmp edx, ebx
jbe 0x50ffc5
mov ebp, dword [ecx + eax*4 - 4]
test ebp, ebp
je 0x50ff85
mov edx, dword [esp + 0x3c]
cmp eax, edx
ja 0x50ffbe
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], edx
add esp, 0xa0
ret
mov ecx, eax
call fcn.0045f070
mov eax, ebx
mov ecx, edx
call fcn.0045f030
mov edx, eax
call fcn.0045f070
sar ecx, 1
mov esi, dword [esp + 0x74]
inc esi
mov dword [esp + 0x74], esi
mov esi, dword [esp + 0xb0]
cmp ecx, ebp
jg 0x50ffd5
mov dword [esp + 0x90], ebx
mov dword [esp + 0x64], ecx
mov ebp, dword [esp + 0x74]
cmp ebp, 0x20
sbb esi, esi
mov ecx, ebp
mov ebx, dword [esp + 0x64]
shl ebx, cl
and ebx, esi
cmp edx, ebx
jb 0x5103c3
lea ebp, [ebx + ebx*2]
shl ebp, 1
mov esi, edi
shl edi, 1
cmp edi, ebp
jl 0x510020
mov ebp, edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], edi
cmp ebp, eax
jg 0x51003b
ja 0x5103ba
mov ecx, dword [esp + 0x90]
jmp 0x5100b5
cmp ebp, 1
jne 0x51007b
lea eax, [0x65a4c0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.004480c0
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0xb8]
mov eax, 1
mov ecx, ebx
mov ebp, 1
mov ebx, dword [esp + 0x4c]
jmp 0x5100b5
mov dword [esp + 0x48], ebp
lea eax, [0x65a4c0]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea eax, [ebp + 4]
mov dword [esp + 0x38], eax
mov dword [esp + 8], eax
call fcn.004480c0
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0x38]
mov ecx, ebx
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x80], ecx
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov ebp, dword [esp + 0xb0]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edx
call fcn.0050f7c0
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x50]
cmp edx, ecx
jb 0x5103b5
mov eax, dword [esp + 0x4c]
mov ebx, eax
shl eax, 1
cmp eax, ecx
ja 0x5103b0
mov dword [esp + 0x7c], eax
mov ebp, ecx
sub ecx, eax
mov esi, edx
sub edx, eax
neg edx
mov edi, ebx
shl ebx, 3
sar edx, 0x1f
and ebx, edx
mov edx, esi
mov esi, dword [esp + 0x80]
add ebx, esi
test ecx, ecx
je 0x510150
mov dword [esp], ebx
shl ecx, 2
mov dword [esp + 4], ecx
call fcn.0045f760
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x4c]
mov ebx, dword [esp + 0xb4]
cmp ebx, edi
jle 0x510355
mov dword [esp], eax
call fcn.005103e0
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov dword [esp + 0x60], ebx
nop
mov ebp, dword [esp + 0xb0]
mov esi, dword [esp + 0x4c]
mov edi, esi
jmp 0x51018d
mov esi, ebx
mov ebx, dword [esp + 0x60]
test esi, esi
jle 0x5101b0
lea ebx, [esi - 1]
cmp edi, ebx
jbe 0x5103a7
mov dword [esp + 0x70], esi
mov esi, dword [ebp + esi*4 - 4]
test esi, esi
je 0x510187
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xb8]
cmp eax, esi
jb 0x51039e
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
sub eax, edi
mov dword [esp + 0x58], eax
mov ecx, eax
neg eax
mov edx, edi
shl edi, 2
sar eax, 0x1f
and edi, eax
lea eax, [ebp + edi]
mov dword [esp + 0x94], eax
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0xb4]
sub ebx, edx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ecx
call fcn.0050eb00
mov eax, dword [esp + 0x24]
mov dword [esp + 0x9c], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x60], edx
mov ebx, dword [esp + 0x80]
mov dword [esp], ebx
mov ebp, dword [esp + 0x50]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x38]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x18], edi
call fcn.0050e9f0
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x9c]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x60]
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x18], edi
call fcn.0050e9f0
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], eax
call fcn.0050fbe0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x80]
mov dword [esp], ebx
mov ebp, dword [esp + 0x50]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x38]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
call fcn.0050e9f0
lea eax, [0x8ae350]
mov dword [esp], eax
lea eax, [0x68f280]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 8], eax
call fcn.00468840
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x80]
mov eax, ebp
jmp 0x51035b
mov ebp, ebx
test ebp, ebp
jle 0x51036e
lea ebx, [ebp - 1]
cmp eax, ebx
jbe 0x510395
mov edi, dword [esi + ebp*4 - 4]
test edi, edi
je 0x510359
cmp ebp, edx
ja 0x51038e
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xc4], edx
add esp, 0xa0
ret
mov ecx, ebp
call fcn.0045f070
mov ecx, eax
mov eax, ebx
call fcn.0045f030
mov ecx, esi
mov edx, eax
call fcn.0045f070
mov eax, ebx
mov ecx, edi
call fcn.0045f030
call fcn.0045f090
call fcn.0045f070
mov ecx, ebp
mov edx, eax
call fcn.0045f070
mov ecx, ebx
call fcn.0045f070
nop
call fcn.0045dba0
jmp fcn.0050fbe0