Function at 0x4096b6
Capabilities:
Create directory
Get common file path
Get session user name
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x2a0]
sub esp, 0x320
mov eax, dword [0x4377f4]
push ebx
xor eax, ebp
push esi
push edi
mov edi, dword [ebp + 0x2ac]
mov dword [ebp + 0x29c], eax
mov eax, dword [ebp + 0x2a8]
xor ebx, ebx
push ebx
lea ecx, [ebp + 0x80]
mov dword [ebp - 0x2c], eax
mov dword [ebp + 0x98], 0xf
call fcn.00402121
mov esi, 0x100
push esi
lea eax, [ebp + 0x19c]
push ebx
push eax
call fcn.0041c310
lea eax, [ebp - 0x1c]
push eax
call fcn.00407ced
add esp, 0x10
cmp dword [ebp - 0x18], 6
mov byte [ebp - 0x1d], al
jae 0x40972b
cmp al, bl
je 0x40972b
push 0x26
jmp 0x40972d
push 0x1c
pop eax
lea ecx, [ebp - 0x28]
push ecx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
setge al
cmp al, bl
je 0x4097a8
lea eax, [ebp + 0x19c]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, ebx
je 0x4097a8
lea eax, [ebp + eax + 0x19b]
cmp byte [eax], 0x5c
jne 0x409791
mov byte [eax], bl
lea eax, [ebp + 0x19c]
push eax
lea ecx, [ebp + 0x80]
call fcn.0040291e
jmp 0x409831
cmp dword [ebp - 0x18], 6
jae 0x4097ba
cmp byte [ebp - 0x1d], bl
je 0x4097ba
push str.C:Program_Files
jmp 0x409798
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x9c]
push eax
mov dword [ebp - 0x24], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push str.AppDataLocal
lea eax, [ebp + 0x9c]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040299a
push eax
lea eax, [ebp - 0x48]
push str.C:Users_
push eax
call fcn.00402a59
add esp, 0xc
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00402e85
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x80]
call fcn.004026ab
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.00402285
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00402285
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.00402285
cmp dword [ebp + 0x98], 0x10
mov eax, dword [ebp + 0x84]
jae 0x409846
lea eax, [ebp + 0x84]
push eax
call fcn.00407cbf
test al, al
pop ecx
jne 0x40986e
cmp dword [ebp + 0x98], 0x10
mov eax, dword [ebp + 0x84]
jae 0x409866
lea eax, [ebp + 0x84]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x2c]
lea eax, [ebp + 0x80]
push 0x42c6fc
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00402e85
add esp, 0xc
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00402a92
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.004026ab
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.00402285
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00402285
cmp dword [edi + 0x18], 0x10
lea esi, [edi + 4]
jb 0x4098c4
mov eax, dword [esi]
jmp 0x4098c6
mov eax, esi
push eax
call fcn.00407cbf
test al, al
pop ecx
jne 0x4098e5
cmp dword [edi + 0x18], 0x10
jb 0x4098db
mov eax, dword [esi]
jmp 0x4098dd
mov eax, esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [edi + 0x18], 0x10
jb 0x4098ed
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebx
push 1
lea ecx, [ebp + 0x80]
call fcn.00402285
mov ecx, dword [ebp + 0x29c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c2f6
add ebp, 0x2a0
leave
ret