Function at 0x50c660
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59bbf9
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x615720]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
push edi
mov eax, dword [0x615720]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x34], eax
mov ecx, dword [eax + 4]
mov esi, dword [eax]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x30], ecx
inc esi
mov dword [esp + 0x48], 0
mov edx, edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], edx
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
mov al, byte [esi]
mov byte [esp + 0x13], al
cmp al, 0x5c
jne 0x50c83b
mov al, byte [esi + 1]
mov ecx, esi
sub ecx, dword [esp + 0xc]
inc esi
mov byte [esp + 0x13], al
movzx eax, al
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], esi
mov al, byte [eax + 0x5f95c0]
mov byte [esp + 0x1b], al
test al, al
je 0x50c73a
mov eax, dword [edx + 0xc]
inc esi
inc eax
mov dword [esp + 0x2c], esi
cmp eax, dword [edx + 0x10]
jbe 0x50c720
push 1
mov ecx, edx
call fcn.0050bc10
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 0xc]
lea eax, [ecx + 1]
mov dword [edx + 0xc], eax
mov al, byte [esp + 0x1b]
mov byte [ecx], al
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
inc eax
jmp 0x50c6c8
cmp byte [esp + 0x13], 0x75
jne 0x50c822
push ecx
lea eax, [esp + 0x30]
inc esi
push eax
mov ecx, edi
mov dword [esp + 0x34], esi
call fcn.0050d450
cmp dword [edi + 0x18], 0
mov ecx, eax
jne 0x50c95b
lea eax, [ecx - 0xd800]
mov dword [esp + 0xc], eax
cmp eax, 0x3ff
ja 0x50c7fb
mov esi, dword [esp + 0x2c]
cmp byte [esi], 0x5c
jne 0x50c792
inc esi
mov dword [esp + 0x2c], esi
cmp byte [esi], 0x75
jne 0x50c792
inc esi
mov dword [esp + 0x2c], esi
jmp 0x50c7aa
mov eax, dword [esp + 0x24]
mov dword [edi + 0x18], 9
mov dword [edi + 0x1c], eax
cmp dword [edi + 0x18], 0
jne 0x50c970
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push esi
push eax
mov ecx, edi
call fcn.0050d450
cmp dword [edi + 0x18], 0
jne 0x50c95b
cmp eax, 0xdc00
jb 0x50c7d3
cmp eax, 0xdfff
jbe 0x50c7e7
mov dword [edi + 0x18], 9
mov dword [edi + 0x1c], esi
cmp dword [edi + 0x18], 0
jne 0x50c95b
mov ecx, dword [esp + 0xc]
add eax, 0xffff2400
shl ecx, 0xa
or ecx, eax
add ecx, 0x10000
push ecx
lea eax, [esp + 0x20]
push eax
call fcn.0050d4c0
mov ecx, dword [esp + 0x38]
add esp, 8
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xc], ecx
jmp 0x50c6cc
mov dword [edi + 0x18], 0xa
mov dword [edi + 0x1c], ecx
cmp dword [edi + 0x18], 0
jne 0x50c86b
mov ecx, dword [esp + 0xc]
jmp 0x50c6d0
cmp al, 0x22
je 0x50c981
cmp al, 0x20
jae 0x50c923
test al, al
mov eax, esi
jne 0x50c915
sub eax, ecx
mov dword [edi + 0x18], 0xb
mov dword [edi + 0x1c], eax
cmp dword [edi + 0x18], 0
je 0x50c6d0
mov eax, dword [esp + 0x14]
cmp dword [edi + 0x18], 0
jne 0x50c8e9
sub dword [edx + 0xc], eax
lea ecx, [eax - 1]
cmp byte [ebp + 0x10], 0
mov edx, dword [edx + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], edx
je 0x50c9b2
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 0x24]
add eax, 0x10
cmp eax, dword [edi + 0x28]
jbe 0x50c8ad
push 1
lea ecx, [edi + 0x18]
call fcn.0050c480
mov edx, dword [esp + 0x24]
mov ecx, dword [edi + 0x24]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], ecx
lea eax, [ecx + 0x10]
mov dword [edi + 0x24], eax
mov byte [esp + 0x48], 3
test ecx, ecx
je 0x50c8e9
mov eax, dword [esp + 0x28]
xorps xmm0, xmm0
mov eax, dword [eax + 0x10]
push eax
sub esp, 8
mov eax, esp
movdqu xmmword [ecx], xmm0
mov dword [eax], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 4], edx
call fcn.0050a020
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x34]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0055e4ed
mov esp, ebp
pop ebp
ret 0xc
sub eax, ecx
mov dword [edi + 0x18], 0xa
jmp 0x50c85e
mov eax, dword [edx + 0xc]
inc esi
inc eax
mov dword [esp + 0x2c], esi
cmp eax, dword [edx + 0x10]
jbe 0x50c93e
push 1
mov ecx, edx
call fcn.0050bc10
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 0xc]
lea eax, [ecx + 1]
mov dword [edx + 0xc], eax
mov al, byte [esp + 0x13]
mov byte [ecx], al
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
inc eax
jmp 0x50c6c8
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
jmp 0x50c86b
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
jmp 0x50c86b
mov eax, dword [edx + 0xc]
inc esi
inc eax
mov dword [esp + 0x2c], esi
cmp eax, dword [edx + 0x10]
jbe 0x50c99c
push 1
mov ecx, edx
call fcn.0050bc10
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 0xc]
lea eax, [ecx + 1]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x14]
mov byte [ecx], 0
inc eax
jmp 0x50c86f
push 1
push ecx
mov ecx, dword [esp + 0x30]
push edx
call fcn.0050b530
test al, al
jne 0x50c8e9
mov ecx, dword [esp + 0xc]
mov eax, esi
sub eax, ecx
mov dword [edi + 0x18], 0x10
mov dword [edi + 0x1c], eax
jmp 0x50c8ed