Function at 0x403dab
Capabilities:
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
jne 0x403dc7
lea ebx, [ebp - 0x14]
cmp dword [ebp + 0xc], edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
jne 0x403dea
cmp dword [ebp + 8], edi
lea esi, [ebp - 0x10]
je 0x403fb0
push dword [ebx]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edi, edi
mov eax, dword [esi]
cmp eax, edi
je 0x403df9
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
push 0x26c
mov ecx, ebx
call fcn.0042c850
push 0x2d0
mov ecx, esi
call fcn.0042c850
test edi, edi
jg 0x403e51
push 0x208
push dword [esi]
push 0x480d9c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
jg 0x403e41
push 0x208
push dword [esi]
push 0x480d90
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
mov eax, dword [esi]
mov word [eax + edi*2], 0x5c
mov eax, dword [esi]
inc edi
and word [eax + edi*2], 0
lea eax, [edi + 1]
push eax
push dword [esi]
push dword [ebx]
call fcn.00403c6b
and dword [ebp - 0x1c], 0
add esp, 0xc
and dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xc7
cmp dword [ebp + 8], 0
je 0x403f1e
mov eax, dword [ebx]
lea eax, [eax + edi*2]
push 0x480d84
mov dword [ebp - 0x18], eax
call fcn.00428f27
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp + 0x14]
push str.pecmd__s._lu._lu_s_
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, dword [ebp - 4]
mov eax, dword [ebx]
add esp, 0x18
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403edd
push 5
mov ecx, 0x496eb8
call fcn.0040b816
dec dword [ebp - 8]
jns 0x403e70
mov edi, dword [ebp - 0x1c]
jmp 0x403f94
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0xc], 1
je 0x403fb0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [edi + 1]
push eax
push dword [ebx]
mov dword [ebp + 8], eax
push dword [esi]
call fcn.00403c6b
mov eax, dword [esi]
mov word [eax + edi*2], 0x5c
mov edi, dword [ebp + 8]
mov eax, dword [esi]
add esp, 0xc
and word [eax + edi*2], 0
and dword [ebp + 8], 0
lea eax, [edi + edi]
mov dword [ebp + 0xc], eax
push dword [ebp + 0x18]
mov edi, dword [esi]
push dword [ebp + 8]
add edi, dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp + 0x14]
push str.pecmd__s._lu._lu_s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esi]
add esp, 0x18
xor ecx, ecx
push ecx
push 0x80
push 1
push ecx
push ecx
push 0x40000000
mov dword [ebp - 0x1c], ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403ce4
mov edi, eax
test edi, edi
jne 0x403f8e
push 5
mov ecx, 0x496eb8
call fcn.0040b816
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xc8
jl 0x403f28
mov eax, dword [esi]
and word [eax], di
cmp dword [ebp - 0xc], 0
jne 0x403f9a
mov eax, dword [ebx]
and word [eax], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x403fa5
mov dword [eax], edi
jmp 0x403fb0
test edi, edi
je 0x403fb0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call fcn.00427365
lea ecx, [ebp - 0x14]
call fcn.00427365
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret