Function at 0x4042ae
Capabilities:
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
je 0x4042cb
mov dword [ebp - 4], eax
jmp 0x4042d1
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ecx
cmp dword [ebp + 0xc], ebx
mov esi, dword [ebp + 0xc]
jne 0x4042f4
cmp eax, ebx
lea esi, [ebp - 0x10]
jne 0x4042e7
xor edi, edi
jmp 0x4044c3
mov eax, dword [ebp - 4]
push dword [eax]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [esi]
xor edi, edi
cmp eax, ebx
je 0x404305
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
mov ecx, dword [ebp - 4]
push 0x26c
call fcn.00433c6b
push 0x2d0
mov ecx, esi
call fcn.00433c6b
cmp edi, ebx
jg 0x40435d
push 0x208
push dword [esi]
push 0x48fe2c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp edi, ebx
jg 0x40434e
push 0x208
push dword [esi]
push 0x48fe20
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
mov word [eax + edi*2], bx
lea eax, [edi + 1]
push eax
push dword [esi]
mov eax, dword [ebp - 4]
push dword [eax]
call fcn.0040414f
add esp, 0xc
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0xc7
cmp dword [ebp + 8], ebx
je 0x404432
mov eax, dword [ebp - 4]
mov eax, dword [eax]
lea eax, [eax + edi*2]
push 0x48fe14
mov dword [ebp - 0x18], eax
call fcn.004308d6
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 eax, dword [ebp - 4]
mov eax, dword [eax]
add esp, 0x18
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4043ee
push ebx
push 5
mov ecx, 0x4a6f08
call fcn.0040ce12
dec dword [ebp - 8]
jns 0x40437d
mov edi, dword [ebp - 0x1c]
jmp 0x4044a5
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0xc], 1
je 0x4042e0
mov eax, dword [ebp - 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [edi + 1]
push eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
push dword [eax]
push dword [esi]
call fcn.0040414f
mov eax, dword [esi]
mov word [eax + edi*2], 0x5c
mov edi, dword [ebp + 0xc]
mov eax, dword [esi]
add esp, 0xc
mov word [eax + edi*2], bx
lea eax, [edi + edi]
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], eax
push dword [ebp + 0x18]
mov edi, dword [esi]
push dword [ebp + 0xc]
add edi, dword [ebp + 8]
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
push ebx
push 0x80
push 1
push ebx
push ebx
push 0x40000000
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
call fcn.004041e7
mov edi, eax
cmp edi, ebx
jne 0x4044a0
push ebx
push 5
mov ecx, 0x4a6f08
call fcn.0040ce12
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0xc8
jl 0x40443b
mov eax, dword [esi]
mov word [eax], bx
cmp dword [ebp - 0xc], ebx
jne 0x4044ad
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov word [eax], bx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4044b8
mov dword [eax], edi
jmp 0x4044c3
cmp edi, ebx
je 0x4044c3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call fcn.0042eb98
lea ecx, [ebp - 0x14]
call fcn.0042eb98
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret