Function at 0x52d4a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64c26b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x6cf428
mov dword [ebp - 0x14], ecx
push eax
mov dword [ebp - 4], 0
call fcn.0060b21f
mov esi, eax
add esp, 8
test esi, esi
je 0x52d507
push esi
call fcn.0061f3ea
push eax
call fcn.0060c78e
mov edi, eax
add esp, 8
cmp edi, 0x38
mov dword [ebp + 8], edi
jae 0x52d51c
push esi
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 edi
call fcn.00622acb
add esp, 4
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x18], ebx
push esi
je 0x52d4ff
push edi
push 1
push ebx
call fcn.0060c2bc
push esi
mov dword [ebp - 0x1c], eax
call fcn.0060b038
mov eax, dword [ebp - 0x1c]
add esp, 0x14
cmp eax, edi
je 0x52d553
push ebx
call fcn.00622af4
jmp 0x52d504
mov ecx, 0xc
mov esi, ebx
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp + 8]
cmp eax, ecx
lea esi, [eax + ebx]
jge 0x52d66a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x52d66a
push 6
push esi
push str.utf8
call fcn.00609d70
add esp, 0xc
test eax, eax
jne 0x52d60b
mov ecx, dword [ebp - 0x14]
add esi, 6
add ecx, 0x14
call fcn.00401070
test esi, esi
je 0x52d66a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x52d66a
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push esi
push eax
push 0xfde9
call ebx
mov edx, dword [ebp - 0x14]
test eax, eax
lea edi, [edx + 0x14]
mov dword [edi + 8], eax
je 0x52d670
lea eax, [eax + eax + 2]
push eax
call fcn.00622acb
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x52d670
mov ecx, dword [edi + 8]
push ecx
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call ebx
mov dword [edi + 8], eax
jmp 0x52d670
mov edx, dword [ebp - 0x14]
lea ecx, [edx + 0x14]
call fcn.00401070
test esi, esi
je 0x52d66a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x52d66a
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push esi
push eax
push eax
call ebx
mov ecx, dword [ebp - 0x14]
test eax, eax
lea edi, [ecx + 0x14]
mov dword [edi + 8], eax
je 0x52d670
lea edx, [eax + eax + 2]
push edx
call fcn.00622acb
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x52d670
mov ecx, dword [edi + 8]
push ecx
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call ebx
mov dword [edi + 8], eax
jmp 0x52d670
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x18]
lea esi, [edx + eax]
mov eax, dword [ebp + 8]
cmp edx, eax
jge 0x52d76f
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x52d76f
push 6
push esi
push str.utf8
call fcn.00609d70
add esp, 0xc
test eax, eax
jne 0x52d715
mov ecx, dword [ebp - 0x14]
lea edi, [esi + 6]
add ecx, 0x3c
call fcn.00401070
test edi, edi
je 0x52d76c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x52d76c
push eax
push eax
lea eax, [esi + 6]
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call ebx
mov edx, dword [ebp - 0x14]
test eax, eax
lea edi, [edx + 0x3c]
mov dword [edi + 8], eax
je 0x52d76c
lea eax, [eax + eax + 2]
push eax
call fcn.00622acb
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x52d76c
mov ecx, dword [edi + 8]
push ecx
push eax
lea eax, [esi + 6]
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
jmp 0x52d767
mov edx, dword [ebp - 0x14]
lea ecx, [edx + 0x3c]
call fcn.00401070
test esi, esi
je 0x52d76c
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x52d76c
push eax
push eax
push 0xffffffffffffffff
push esi
push eax
push eax
call ebx
mov ecx, dword [ebp - 0x14]
test eax, eax
lea edi, [ecx + 0x3c]
mov dword [edi + 8], eax
je 0x52d76c
lea edx, [eax + eax + 2]
push edx
call fcn.00622acb
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x52d76c
mov ecx, dword [edi + 8]
push ecx
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call ebx
mov dword [edi + 8], eax
mov edx, dword [ebp - 0x3c]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + edx + 1]
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x52d7f1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [ebp - 0x14]
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x18]
not ecx
dec ecx
add ecx, edx
lea eax, [ecx + eax + 1]
cmp byte [eax], 1
jne 0x52d7a7
mov byte [ebx + 0x38], 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 8]
not ecx
dec ecx
lea ecx, [ecx + edx + 2]
cmp eax, ecx
jbe 0x52d7f4
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 0x52d7e4
mov dword [ebx + 0x4c], 0x10
jmp 0x52d7f4
cmp al, 0x20
jne 0x52d7f4
mov dword [ebx + 0x4c], 0x20
jmp 0x52d7f4
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push eax
call fcn.00622af4
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebx + 0x24], edx
mov edx, dword [ebp - 0x2c]
mov dword [ebx + 0x28], eax
mov al, byte [ebp - 0x28]
mov dword [ebx + 0x2c], ecx
mov cl, byte [ebp - 0x27]
mov byte [ebx + 4], al
mov al, byte [ebp - 0x25]
mov dword [ebx + 0x30], edx
mov dl, byte [ebp - 0x26]
mov byte [ebx + 0x37], al
mov al, byte [ebp - 0x22]
mov byte [ebx + 0xc], cl
mov cl, byte [ebp - 0x24]
mov byte [ebx + 0x20], dl
mov dl, byte [ebp - 0x23]
mov byte [ebx + 0x34], al
mov eax, dword [ebp - 0x20]
mov byte [ebx + 0x36], cl
mov cl, byte [ebp - 0x21]
add esp, 4
mov byte [ebx + 0x35], dl
mov edx, dword [ebp - 0x48]
mov byte [ebx + 0x21], al
mov byte [ebx + 0x22], ah
mov eax, dword [ebp - 0x44]
mov byte [ebx + 0x23], cl
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x10], eax
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4