Function at 0x48e3e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4d9b0b
push eax
mov eax, 0x1054
mov dword fs:[0], esp
call fcn.004d3780
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 0x4eb504
push 0x823
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov edx, dword [0x4eb4c0]
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 0x4faa34
push ecx
call fcn.004b0350
lea edx, [esp + 0x30]
push edx
push 0x4faa34
push eax
call fcn.004b0350
mov dword [esp + 0x40], eax
mov eax, dword [0x4eb4c0]
mov ecx, 0x4faa30
add esp, 0x28
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x48e4db
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
cmp edi, ebp
je 0x48e4db
push edi
lea ecx, [esp + 0x14]
call fcn.00407580
test eax, eax
je 0x48e4db
mov ecx, dword [esp + 0x10]
lea eax, [edi + 1]
cmp eax, ebp
mov edi, ecx
jne 0x48e4b6
cmp ecx, ebp
jne 0x48e4d0
push eax
push ecx
push 0xffffffffffffffff
push 0x4faa30
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebp
jle 0x48e4d0
mov word [edi + eax*2 - 2], bp
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.004107f0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
mov edx, dword [0x4eb24c]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
sete bl
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48e522
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48e522
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004d3765
add esp, 4
test bl, bl
je 0x48e52f
mov dword [esi + 8], 1
jmp 0x48e532
mov dword [esi + 8], ebp
mov ecx, dword [esp + 0x18]
lea eax, [esi + 0x10]
push eax
push 0x4faa34
push ecx
call fcn.004b0350
lea ebp, [esi + 0x18]
push ebp
push 0x4faa34
push eax
call fcn.004b0350
add esi, 0x14
push esi
push 0x4faa34
push eax
call fcn.004b0350
mov esi, dword [ebp]
add esp, 0x24
cmp dword [esi - 0xc], 1
jle 0x48e59d
mov ecx, ebp
call fcn.00407610
mov edx, dword [esi - 8]
mov ecx, ebp
push edx
call fcn.00407580
test eax, eax
je 0x48e59d
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 0x48e5cb
push esi
call ebx
mov esi, eax
mov ax, word [esi]
push eax
call edi
add esp, 4
test eax, eax
jne 0x48e5b9
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 0x48e626
mov ecx, ebp
call fcn.00407610
mov ecx, dword [esi - 8]
push ecx
mov ecx, ebp
call fcn.00407580
test eax, eax
je 0x48e626
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 0x48e669
push eax
call dword [sym.imp.MSVCRT.dll_iswspace]
add esp, 4
test eax, eax
je 0x48e649
test esi, esi
jne 0x48e64b
mov esi, edi
jmp 0x48e64b
xor esi, esi
push edi
call ebx
mov edi, eax
mov ax, word [edi]
test ax, ax
jne 0x48e633
test esi, esi
je 0x48e669
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 [0x4eb24c]
pop edi
pop esi
lea ecx, [eax - 0xc]
pop ebp
cmp ecx, edx
pop ebx
je 0x48e69c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48e69c
mov edx, dword [esp + 4]
add edx, 0xfffffff4
push edx
call fcn.004d3765
add esp, 4
mov ecx, dword [esp + 0x1054]
mov dword fs:[0], ecx
add esp, 0x1060
ret