Function at 0x48eec0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4db0ab
push eax
mov eax, 0x1054
mov dword fs:[0], esp
call fcn.004d4ce0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x1074]
lea ecx, [esp + 0x1c]
push eax
push 0x4ed128
push 0x823
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov edx, dword [0x4ed0fc]
mov dword [esp + 0x24], edx
mov esi, dword [esp + 0x1088]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x107c], ebp
lea eax, [esi + 0xc]
push eax
push 0x4fb5d8
push ecx
call fcn.004b16a0
lea edx, [esp + 0x30]
push edx
push 0x4fb5d8
push eax
call fcn.004b16a0
mov dword [esp + 0x40], eax
mov eax, dword [0x4ed0fc]
mov ecx, 0x4fb5d4
add esp, 0x28
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x48efbb
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
cmp edi, ebp
je 0x48efbb
push edi
lea ecx, [esp + 0x14]
call fcn.00406580
test eax, eax
je 0x48efbb
mov ecx, dword [esp + 0x10]
lea eax, [edi + 1]
cmp eax, ebp
mov edi, ecx
jne 0x48ef96
cmp ecx, ebp
jne 0x48efb0
push eax
push ecx
push 0xffffffffffffffff
push 0x4fb5d4
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebp
jle 0x48efb0
mov word [edi + eax*2 - 2], bp
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0040f9d0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
mov edx, dword [0x4ed100]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
sete bl
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48f002
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48f002
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004d4cc1
add esp, 4
test bl, bl
je 0x48f00f
mov dword [esi + 8], 1
jmp 0x48f012
mov dword [esi + 8], ebp
mov ecx, dword [esp + 0x18]
lea eax, [esi + 0x10]
push eax
push 0x4fb5d8
push ecx
call fcn.004b16a0
lea ebp, [esi + 0x18]
push ebp
push 0x4fb5d8
push eax
call fcn.004b16a0
add esi, 0x14
push esi
push 0x4fb5d8
push eax
call fcn.004b16a0
mov esi, dword [ebp]
add esp, 0x24
cmp dword [esi - 0xc], 1
jle 0x48f07d
mov ecx, ebp
call fcn.00406610
mov edx, dword [esi - 8]
mov ecx, ebp
push edx
call fcn.00406580
test eax, eax
je 0x48f07d
mov eax, dword [esi - 8]
mov edi, dword [ebp]
lea ecx, [eax + eax + 2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp]
mov edi, dword [sym.imp.MSVCRT.dll_iswspace]
mov ax, word [esi]
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
add esp, 4
test eax, eax
je 0x48f0ab
push esi
call ebx
mov esi, eax
mov ax, word [esi]
push eax
call edi
add esp, 4
test eax, eax
jne 0x48f099
mov eax, dword [ebp]
mov ecx, esi
sub ecx, eax
mov edi, dword [eax - 8]
sar ecx, 1
sub edi, ecx
lea edx, [edi + edi + 2]
push edx
push esi
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
mov eax, dword [ebp]
add esp, 0xc
mov dword [eax - 8], edi
mov esi, dword [ebp]
cmp dword [esi - 0xc], 1
jle 0x48f106
mov ecx, ebp
call fcn.00406610
mov ecx, dword [esi - 8]
push ecx
mov ecx, ebp
call fcn.00406580
test eax, eax
je 0x48f106
mov edx, dword [esi - 8]
mov edi, dword [ebp]
lea ecx, [edx + edx + 2]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp]
xor esi, esi
mov ax, word [edi]
test ax, ax
je 0x48f149
push eax
call dword [sym.imp.MSVCRT.dll_iswspace]
add esp, 4
test eax, eax
je 0x48f129
test esi, esi
jne 0x48f12b
mov esi, edi
jmp 0x48f12b
xor esi, esi
push edi
call ebx
mov edi, eax
mov ax, word [edi]
test ax, ax
jne 0x48f113
test esi, esi
je 0x48f149
mov word [esi], ax
mov ebp, dword [ebp]
sub esi, ebp
sar esi, 1
mov dword [ebp - 8], esi
mov eax, dword [esp + 0x14]
mov edx, dword [0x4ed100]
pop edi
pop esi
lea ecx, [eax - 0xc]
pop ebp
cmp ecx, edx
pop ebx
je 0x48f17c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48f17c
mov edx, dword [esp + 4]
add edx, 0xfffffff4
push edx
call fcn.004d4cc1
add esp, 4
mov ecx, dword [esp + 0x1054]
mov dword fs:[0], ecx
add esp, 0x1060
ret