Function at 0x40413a
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 0x404156
lea ebx, [ebp - 0x14]
cmp dword [ebp + 0xc], edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
jne 0x404179
cmp dword [ebp + 8], edi
lea esi, [ebp - 0x10]
je 0x40433f
push dword [ebx]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edi, edi
mov eax, dword [esi]
cmp eax, edi
je 0x404188
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
push 0x26c
mov ecx, ebx
call fcn.0042e20b
push 0x2d0
mov ecx, esi
call fcn.0042e20b
test edi, edi
jg 0x4041e0
push 0x208
push dword [esi]
push 0x484e0c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
jg 0x4041d0
push 0x208
push dword [esi]
push 0x484e00
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.00403fda
and dword [ebp - 0x1c], 0
add esp, 0xc
and dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xc7
cmp dword [ebp + 8], 0
je 0x4042ad
mov eax, dword [ebx]
lea eax, [eax + edi*2]
push 0x484df4
mov dword [ebp - 0x18], eax
call fcn.0042a64d
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 0x40426c
push 5
mov ecx, 0x49aed0
call fcn.0040c4a3
dec dword [ebp - 8]
jns 0x4041ff
mov edi, dword [ebp - 0x1c]
jmp 0x404323
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0xc], 1
je 0x40433f
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.00403fda
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.00404073
mov edi, eax
test edi, edi
jne 0x40431d
push 5
mov ecx, 0x49aed0
call fcn.0040c4a3
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xc8
jl 0x4042b7
mov eax, dword [esi]
and word [eax], di
cmp dword [ebp - 0xc], 0
jne 0x404329
mov eax, dword [ebx]
and word [eax], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x404334
mov dword [eax], edi
jmp 0x40433f
test edi, edi
je 0x40433f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call fcn.00428a48
lea ecx, [ebp - 0x14]
call fcn.00428a48
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret