Function at 0x5188f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x605609
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x697bc0]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
push edi
mov eax, dword [0x697bc0]
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 0x518acb
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 + 0x670800]
mov byte [esp + 0x1b], al
test al, al
je 0x5189ca
mov eax, dword [edx + 0xc]
inc esi
inc eax
mov dword [esp + 0x2c], esi
cmp eax, dword [edx + 0x10]
jbe 0x5189b0
push 1
mov ecx, edx
call fcn.00517d00
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 0x518958
cmp byte [esp + 0x13], 0x75
jne 0x518ab2
push ecx
lea eax, [esp + 0x30]
inc esi
push eax
mov ecx, edi
mov dword [esp + 0x34], esi
call fcn.005196e0
cmp dword [edi + 0x18], 0
mov ecx, eax
jne 0x518beb
lea eax, [ecx - 0xd800]
mov dword [esp + 0xc], eax
cmp eax, 0x3ff
ja 0x518a8b
mov esi, dword [esp + 0x2c]
cmp byte [esi], 0x5c
jne 0x518a22
inc esi
mov dword [esp + 0x2c], esi
cmp byte [esi], 0x75
jne 0x518a22
inc esi
mov dword [esp + 0x2c], esi
jmp 0x518a3a
mov eax, dword [esp + 0x24]
mov dword [edi + 0x18], 9
mov dword [edi + 0x1c], eax
cmp dword [edi + 0x18], 0
jne 0x518c00
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push esi
push eax
mov ecx, edi
call fcn.005196e0
cmp dword [edi + 0x18], 0
jne 0x518beb
cmp eax, 0xdc00
jb 0x518a63
cmp eax, 0xdfff
jbe 0x518a77
mov dword [edi + 0x18], 9
mov dword [edi + 0x1c], esi
cmp dword [edi + 0x18], 0
jne 0x518beb
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.00519750
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 0x51895c
mov dword [edi + 0x18], 0xa
mov dword [edi + 0x1c], ecx
cmp dword [edi + 0x18], 0
jne 0x518afb
mov ecx, dword [esp + 0xc]
jmp 0x518960
cmp al, 0x22
je 0x518c11
cmp al, 0x20
jae 0x518bb3
test al, al
mov eax, esi
jne 0x518ba5
sub eax, ecx
mov dword [edi + 0x18], 0xb
mov dword [edi + 0x1c], eax
cmp dword [edi + 0x18], 0
je 0x518960
mov eax, dword [esp + 0x14]
cmp dword [edi + 0x18], 0
jne 0x518b79
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 0x518c42
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 0x24]
add eax, 0x10
cmp eax, dword [edi + 0x28]
jbe 0x518b3d
push 1
lea ecx, [edi + 0x18]
call fcn.00518710
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 0x518b79
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.00515db0
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.005c6c09
mov esp, ebp
pop ebp
ret 0xc
sub eax, ecx
mov dword [edi + 0x18], 0xa
jmp 0x518aee
mov eax, dword [edx + 0xc]
inc esi
inc eax
mov dword [esp + 0x2c], esi
cmp eax, dword [edx + 0x10]
jbe 0x518bce
push 1
mov ecx, edx
call fcn.00517d00
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 0x518958
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
jmp 0x518afb
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
jmp 0x518afb
mov eax, dword [edx + 0xc]
inc esi
inc eax
mov dword [esp + 0x2c], esi
cmp eax, dword [edx + 0x10]
jbe 0x518c2c
push 1
mov ecx, edx
call fcn.00517d00
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 0x518aff
push 1
push ecx
mov ecx, dword [esp + 0x30]
push edx
call fcn.00517520
test al, al
jne 0x518b79
mov ecx, dword [esp + 0xc]
mov eax, esi
sub eax, ecx
mov dword [edi + 0x18], 0x10
mov dword [edi + 0x1c], eax
jmp 0x518b7d