Function at 0x4fd6a0
Capabilities:
Access peb ldr_data
Create directory
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56acb8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5b3680]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x5b3680]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x14]
push 0x58b3fc
mov dword [esp + 0x1c], esi
call fcn.004031c0
mov dword [esp + 0x50], 0
lea ecx, [esp + 0x10]
push 0x58b3fc
call fcn.004031c0
mov byte [esp + 0x50], 1
lea ecx, [esp + 0x1c]
call fcn.00482350
mov byte [esp + 0x50], 2
mov edx, eax
push 0x589b1c
lea ecx, [esp + 0x24]
call fcn.00415f60
add esp, 4
mov byte [esp + 0x50], 4
or ebx, 0xffffffff
mov edx, dword [esp + 0x1c]
mov eax, ebx
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4fd74d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [esp + 0x24]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call fcn.00402a00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4fd777
push 0x80004005
call fcn.004027b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x50], 7
mov edx, str.usblog
push 0
push 1
lea ecx, [esp + 0x24]
call fcn.004820b0
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x28]
push edi
push 0x58b238
push eax
call fcn.00443ea0
push 0x180
push 0x8109
push dword [esp + 0x3c]
call fcn.00530900
add esp, 0x20
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
je 0x4fd9fc
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x14]
mov edx, 1
mov dword [esp + 0x2c], 0x100
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, 0x100
or eax, edx
jge 0x4fd810
push 0x100
lea ecx, [esp + 0x18]
call fcn.00402590
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x4fd854
mov eax, dword [esp + 0x14]
push dword [eax - 8]
push eax
call fcn.00529878
mov edx, eax
add esp, 8
test edx, edx
js 0x4fd9af
mov ecx, dword [esp + 0x14]
cmp edx, dword [ecx - 8]
jg 0x4fd9af
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [esp + 0x14]
mov word [eax + edx*2], cx
movzx eax, word [esp + 0x3c]
push eax
movzx eax, word [esp + 0x3e]
push eax
movzx eax, word [esp + 0x40]
push eax
movzx eax, word [esp + 0x3c]
push eax
movzx eax, word [esp + 0x42]
push eax
movzx eax, word [esp + 0x4a]
push eax
lea eax, [esp + 0x28]
push str._d._d._d__d:_d:_d_
push eax
call fcn.00415d20
mov ebx, dword [esi + 0x1c]
add esp, 0x20
sub ebx, dword [esi + 0x18]
mov esi, dword [esi + 0x18]
sar ebx, 1
call fcn.00402a00
push eax
push ebx
push esi
lea ecx, [esp + 0x30]
call fcn.00415d40
mov byte [esp + 0x50], 9
lea eax, [esp + 0x10]
mov esi, dword [esp + 0x24]
push esi
push str._s__
push eax
call fcn.00443ea0
add esp, 0xc
mov byte [esp + 0x50], 7
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4fd8e1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x18]
mov ebx, dword [eax + 0x10]
sub ebx, dword [eax + 0xc]
mov esi, dword [eax + 0xc]
sar ebx, 1
call fcn.00402a00
push eax
push ebx
push esi
lea ecx, [esp + 0x30]
call fcn.00415d40
mov byte [esp + 0x50], 0xc
lea eax, [esp + 0x10]
mov esi, dword [esp + 0x24]
push esi
push 0x593184
push eax
call fcn.00443ea0
add esp, 0xc
mov byte [esp + 0x50], 7
add esi, 0xfffffff0
or ebx, 0xffffffff
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4fd93e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 0x14]
lea eax, [esp + 0x14]
push 0x593184
push eax
call fcn.00443ea0
mov eax, dword [esp + 0x24]
add esp, 0xc
add eax, 0x48
cmp dword [eax + 0x14], 8
jb 0x4fd963
mov eax, dword [eax]
push eax
lea eax, [esp + 0x14]
push 0x59318c
push eax
call fcn.00443ea0
mov esi, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [esi - 0xc]
add eax, eax
cmp dword [esi - 4], 1
mov dword [esp + 0x18], eax
jle 0x4fd99d
push dword [esi - 0xc]
lea ecx, [esp + 0x14]
call fcn.004024c0
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
or ecx, 0xffffffff
xor edx, edx
test eax, eax
je 0x4fd9ce
cmp ecx, 4
jl 0x4fd9b9
xor ecx, ecx
jmp 0x4fd9ba
push 0x80070057
call fcn.004027b0
inc ecx
mov al, byte [ecx + 0x5898b8]
xor byte [edx + esi], al
inc edx
cmp edx, dword [esp + 0x18]
jb 0x4fd9a6
mov esi, dword [esp + 0x10]
cmp dword [esi - 4], 1
jle 0x4fd9e4
push dword [esi - 0xc]
lea ecx, [esp + 0x14]
call fcn.004024c0
mov esi, dword [esp + 0x10]
push dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x30]
push esi
call fcn.0053092d
push esi
call fcn.00531281
add esp, 0x10
mov byte [esp + 0x50], 4
add edi, 0xfffffff0
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4fda1a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x50], 1
mov ecx, ebx
mov edx, dword [esp + 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4fda3c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x50], 0
mov ecx, ebx
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4fda5e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x50], 0xffffffff
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4fda81
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005295e2
mov esp, ebp
pop ebp
ret 4