Function at 0x403205
Capabilities:
Create directory
Get common file path
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.MSVCRT.dll_strncpy]
push edi
cmp byte [esi + 0x38], 0
lea edi, [esi + 0x38]
mov dword [ebp - 8], edi
jne 0x403335
push str.tmpdir
push str.TMPDIR
push dword [esi]
call fcn.00403515
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
je 0x4032b4
push eax
call sub.MSVCRT.dll_strlen
cmp eax, 0x104
pop ecx
jle 0x403262
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
jmp 0x40343f
inc eax
push eax
push dword [ebp - 4]
push edi
call ebx
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x10
push edi
call sub.MSVCRT.dll_strlen
mov edi, eax
pop ecx
test edi, edi
je 0x403293
mov al, byte [0x40b19c]
cmp byte [edi + esi + 0x37], al
je 0x403293
mov byte [edi + esi + 0x38], al
inc edi
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x4032d9
dec dword [ebp + 8]
jmp 0x4032dd
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
jle 0x403276
push 0x104
push str.TEMP_path_need_more_than__d_characters
call fcn.00402bf9
pop ecx
jmp 0x40325c
and dword [ebp + 8], 0
mov eax, 0xfd
sub eax, dword [ebp + 8]
cmp edi, eax
jg 0x40343f
push 3
lea eax, [edi + esi + 0x38]
push 0x40c7bc
push eax
call ebx
add esp, 0xc
add edi, 3
cmp dword [ebp + 8], 0
je 0x403324
mov byte [edi + esi + 0x38], 0x2d
push dword [ebp + 8]
inc edi
lea eax, [ebp - 0x118]
push eax
lea eax, [edi + esi + 0x38]
push eax
call ebx
add esp, 0xc
add edi, dword [ebp + 8]
mov al, byte [0x40b19c]
add edi, esi
mov byte [edi + 0x38], al
and byte [edi + 0x39], 0
mov edi, dword [ebp - 8]
xor eax, eax
cmp dword [ebp + 0xc], eax
jne 0x403397
cmp dword [esi + 0x30], eax
jne 0x403390
push edi
call dword [sym.imp.MSVCRT.dll__mkdir]
test eax, eax
pop ecx
je 0x403364
mov esi, dword [sym.imp.MSVCRT.dll__errno]
call esi
cmp dword [eax], 0x11
je 0x403390
call esi
push dword [eax]
push edi
jmp 0x403428
push 0x1ed
push edi
call dword [sym.imp.MSVCRT.dll__chmod]
pop ecx
test eax, eax
pop ecx
je 0x403389
call dword [sym.imp.MSVCRT.dll__errno]
push dword [eax]
push edi
push str.chmod___s___0755__failed__errno_d_n
jmp 0x40342d
mov dword [esi + 0x30], 1
mov eax, edi
jmp 0x4034d3
cmp dword [esi + 0x34], eax
jne 0x4034cd
push edi
call sub.MSVCRT.dll_strlen
mov edi, eax
pop ecx
movsx eax, byte [0x40b19c]
push eax
call dword [sym.imp.MSVCRT.dll__getpid]
push eax
lea eax, [ebp - 0x14]
push str._d_c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
push dword [ebp - 8]
mov dword [ebp + 8], eax
lea eax, [esi + 0x13d]
push eax
call sub.MSVCRT.dll_strcpy
mov ecx, dword [ebp + 8]
mov eax, 0x104
sub eax, edi
add esp, 0x18
cmp ecx, eax
jg 0x40343f
lea eax, [edi + esi]
inc ecx
push ecx
lea ecx, [ebp - 0x14]
mov byte [eax + 0x13c], 0x2d
add eax, 0x13d
push ecx
push eax
call ebx
lea ebx, [esi + 0x13d]
push ebx
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 0x10
test eax, eax
je 0x403446
mov edi, dword [sym.imp.MSVCRT.dll__errno]
call edi
cmp dword [eax], 0x11
je 0x403446
call edi
push dword [eax]
push ebx
push str.mkdir___s___failed__errno_d_n
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
xor eax, eax
jmp 0x4034d3
push 0x40e350
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x40e370]
test eax, eax
mov edi, eax
je 0x403475
push dword [edi + 4]
push ebx
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x403471
mov edi, dword [edi]
test edi, edi
jne 0x40345c
test edi, edi
jne 0x4034bb
push str.cleanup_entry
push 8
call fcn.004034d8
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x4034bb
mov eax, dword [0x40e370]
push str.cleanup_path
push ebx
mov dword [edi], eax
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
call fcn.004034d8
pop ecx
mov dword [edi + 4], eax
test eax, eax
pop ecx
je 0x4034b5
push ebx
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov dword [0x40e370], edi
push 0x40e350
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esi + 0x34], 1
lea eax, [esi + 0x13d]
pop edi
pop esi
pop ebx
leave
ret