Function at 0x50c4a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59ba49
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 0x50c67b
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 + 0x5f9430]
mov byte [esp + 0x1b], al
test al, al
je 0x50c57a
mov eax, dword [edx + 0xc]
inc esi
inc eax
mov dword [esp + 0x2c], esi
cmp eax, dword [edx + 0x10]
jbe 0x50c560
push 1
mov ecx, edx
call fcn.0050ba50
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 0x50c508
cmp byte [esp + 0x13], 0x75
jne 0x50c662
push ecx
lea eax, [esp + 0x30]
inc esi
push eax
mov ecx, edi
mov dword [esp + 0x34], esi
call fcn.0050d290
cmp dword [edi + 0x18], 0
mov ecx, eax
jne 0x50c79b
lea eax, [ecx - 0xd800]
mov dword [esp + 0xc], eax
cmp eax, 0x3ff
ja 0x50c63b
mov esi, dword [esp + 0x2c]
cmp byte [esi], 0x5c
jne 0x50c5d2
inc esi
mov dword [esp + 0x2c], esi
cmp byte [esi], 0x75
jne 0x50c5d2
inc esi
mov dword [esp + 0x2c], esi
jmp 0x50c5ea
mov eax, dword [esp + 0x24]
mov dword [edi + 0x18], 9
mov dword [edi + 0x1c], eax
cmp dword [edi + 0x18], 0
jne 0x50c7b0
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push esi
push eax
mov ecx, edi
call fcn.0050d290
cmp dword [edi + 0x18], 0
jne 0x50c79b
cmp eax, 0xdc00
jb 0x50c613
cmp eax, 0xdfff
jbe 0x50c627
mov dword [edi + 0x18], 9
mov dword [edi + 0x1c], esi
cmp dword [edi + 0x18], 0
jne 0x50c79b
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.0050d300
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 0x50c50c
mov dword [edi + 0x18], 0xa
mov dword [edi + 0x1c], ecx
cmp dword [edi + 0x18], 0
jne 0x50c6ab
mov ecx, dword [esp + 0xc]
jmp 0x50c510
cmp al, 0x22
je 0x50c7c1
cmp al, 0x20
jae 0x50c763
test al, al
mov eax, esi
jne 0x50c755
sub eax, ecx
mov dword [edi + 0x18], 0xb
mov dword [edi + 0x1c], eax
cmp dword [edi + 0x18], 0
je 0x50c510
mov eax, dword [esp + 0x14]
cmp dword [edi + 0x18], 0
jne 0x50c729
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 0x50c7f2
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 0x24]
add eax, 0x10
cmp eax, dword [edi + 0x28]
jbe 0x50c6ed
push 1
lea ecx, [edi + 0x18]
call fcn.0050c2c0
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 0x50c729
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.00509e60
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.0055e34d
mov esp, ebp
pop ebp
ret 0xc
sub eax, ecx
mov dword [edi + 0x18], 0xa
jmp 0x50c69e
mov eax, dword [edx + 0xc]
inc esi
inc eax
mov dword [esp + 0x2c], esi
cmp eax, dword [edx + 0x10]
jbe 0x50c77e
push 1
mov ecx, edx
call fcn.0050ba50
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 0x50c508
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
jmp 0x50c6ab
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
jmp 0x50c6ab
mov eax, dword [edx + 0xc]
inc esi
inc eax
mov dword [esp + 0x2c], esi
cmp eax, dword [edx + 0x10]
jbe 0x50c7dc
push 1
mov ecx, edx
call fcn.0050ba50
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 0x50c6af
push 1
push ecx
mov ecx, dword [esp + 0x30]
push edx
call fcn.0050b370
test al, al
jne 0x50c729
mov ecx, dword [esp + 0xc]
mov eax, esi
sub eax, ecx
mov dword [edi + 0x18], 0x10
mov dword [edi + 0x1c], eax
jmp 0x50c72d