Function at 0x4042a1
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 0x4042bd
lea ebx, [ebp - 0x14]
cmp dword [ebp + 0xc], edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
jne 0x4042e0
cmp dword [ebp + 8], edi
lea esi, [ebp - 0x10]
je 0x4044a6
push dword [ebx]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edi, edi
mov eax, dword [esi]
cmp eax, edi
je 0x4042ef
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
push 0x26c
mov ecx, ebx
call fcn.00432cfe
push 0x2d0
mov ecx, esi
call fcn.00432cfe
test edi, edi
jg 0x404347
push 0x208
push dword [esi]
push 0x48ee2c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
jg 0x404337
push 0x208
push dword [esi]
push 0x48ee20
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.00404142
and dword [ebp - 0x1c], 0
add esp, 0xc
and dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xc7
cmp dword [ebp + 8], 0
je 0x404414
mov eax, dword [ebx]
lea eax, [eax + edi*2]
push 0x48ee14
mov dword [ebp - 0x18], eax
call fcn.0042fa40
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 0x4043d3
push 5
mov ecx, 0x4a5f08
call fcn.0040ce62
dec dword [ebp - 8]
jns 0x404366
mov edi, dword [ebp - 0x1c]
jmp 0x40448a
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0xc], 1
je 0x4044a6
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.00404142
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.004041da
mov edi, eax
test edi, edi
jne 0x404484
push 5
mov ecx, 0x4a5f08
call fcn.0040ce62
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xc8
jl 0x40441e
mov eax, dword [esi]
and word [eax], di
cmp dword [ebp - 0xc], 0
jne 0x404490
mov eax, dword [ebx]
and word [eax], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40449b
mov dword [eax], edi
jmp 0x4044a6
test edi, edi
je 0x4044a6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call fcn.0042dd2d
lea ecx, [ebp - 0x14]
call fcn.0042dd2d
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret