Function at 0x52e770
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64c2ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x6cf428
mov ebx, ecx
push eax
mov dword [ebp - 4], 0
call fcn.0060b21f
mov edi, eax
add esp, 8
test edi, edi
je 0x52e7d4
push edi
call fcn.0061f3ea
push eax
call fcn.0060c78e
add esp, 8
cmp eax, 0x2c
mov dword [ebp + 8], eax
jae 0x52e7e9
push edi
call fcn.0060b038
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
call fcn.00622acb
add esp, 4
mov esi, eax
test esi, esi
mov dword [ebp - 0x18], esi
push edi
je 0x52e7cc
mov ecx, dword [ebp + 8]
push ecx
push 1
push esi
call fcn.0060c2bc
push edi
mov dword [ebp - 0x14], eax
call fcn.0060b038
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
add esp, 0x14
cmp eax, edx
je 0x52e826
push esi
call fcn.00622af4
jmp 0x52e7d1
mov ecx, 0xb
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
lea esi, [eax + ecx]
mov ecx, dword [ebp + 8]
cmp eax, ecx
mov dword [ebp - 0x14], esi
jge 0x52e8da
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x52e8da
push 6
push esi
push str.utf8
call fcn.00609d70
add esp, 0xc
test eax, eax
jne 0x52e91e
lea edi, [esi + 6]
lea esi, [ebx + 0x10]
mov ecx, esi
call fcn.00401070
test edi, edi
je 0x52e8d7
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x52e8d7
mov edx, dword [ebp - 0x14]
push eax
push eax
push 0xffffffffffffffff
lea edi, [edx + 6]
push edi
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
mov dword [esi + 8], eax
je 0x52e8d7
lea eax, [eax + eax + 2]
push eax
call fcn.00622acb
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x52e8d7
mov ecx, dword [esi + 8]
push ecx
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [esi + 8], eax
mov esi, dword [ebp - 0x14]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x3c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + edx + 2]
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x52e987
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
mov edx, dword [ebp - 0x18]
lea eax, [ecx + edx + 2]
mov al, byte [ecx + edx + 2]
cmp al, 0x10
jne 0x52e97c
mov dword [ebx + 0x44], 0x10
jmp 0x52e987
lea ecx, [ebx + 0x10]
call fcn.00401070
test esi, esi
je 0x52e8da
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x52e8da
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push esi
push eax
push eax
call edi
test eax, eax
mov dword [ebx + 0x18], eax
je 0x52e8da
lea edx, [eax + eax + 2]
push edx
call fcn.00622acb
add esp, 4
mov dword [ebx + 0x10], eax
test eax, eax
je 0x52e8da
mov ecx, dword [ebx + 0x18]
push ecx
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
mov dword [ebx + 0x18], eax
jmp 0x52e8da
cmp al, 0x20
jne 0x52e987
mov dword [ebx + 0x44], 0x20
mov eax, dword [ebp - 0x18]
push eax
call fcn.00622af4
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x38]
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebx + 0xc], edx
mov edx, dword [ebp - 0x30]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x28], ecx
mov ecx, dword [ebp - 0x28]
mov dword [ebx + 0x2c], edx
mov dl, byte [ebp - 0x24]
mov dword [ebx + 0x30], eax
mov al, byte [ebp - 0x23]
mov dword [ebx + 0x34], ecx
mov cl, byte [ebp - 0x22]
mov byte [ebx + 9], al
mov al, byte [ebp - 0x20]
mov byte [ebx + 8], dl
mov dl, byte [ebp - 0x21]
mov byte [ebx + 0x1e], al
mov al, byte [ebp - 0x1d]
mov byte [ebx + 0x1c], cl
mov cl, byte [ebp - 0x1f]
add esp, 4
mov byte [ebx + 0x1d], dl
mov dl, byte [ebp - 0x1e]
mov byte [ebx + 0x21], al
mov eax, dword [ebp - 0x1c]
mov byte [ebx + 0x1f], cl
mov ecx, dword [ebp - 0xc]
pop edi
mov byte [ebx + 0x20], dl
mov byte [ebx + 0x22], al
mov byte [ebx + 0x23], ah
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4