Function at 0x4168b5
Capabilities:
Create directory
Query environment variable

Disassembly:
mov eax, 0x4e44d2
call fcn.004afe60
sub esp, 0x1c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
cmp dword [ebp + 8], edi
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 1
jne 0x4168df
lea ebx, [ebp - 0x20]
cmp dword [ebp + 0xc], edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
jne 0x416904
cmp dword [ebp + 8], edi
lea esi, [ebp - 0x1c]
je 0x416aca
mov eax, dword [ebx]
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edi, edi
mov eax, dword [esi]
cmp eax, edi
je 0x416913
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
push 0x26c
mov ecx, ebx
call fcn.004462b0
push 0x2d0
mov ecx, esi
call fcn.004462b0
test edi, edi
jg 0x41696b
push 0x208
push dword [esi]
push 0x4ef5e0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
jg 0x41695b
push 0x208
push dword [esi]
push 0x4ef5d4
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.004acbce
and dword [ebp - 0x28], 0
add esp, 0xc
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xc7
cmp dword [ebp + 8], 0
je 0x416a38
mov eax, dword [ebx]
lea eax, [eax + edi*2]
push 0x4ef5c8
mov dword [ebp - 0x24], eax
call fcn.00441790
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 - 0x24]
call dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
add esp, 0x18
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4169f7
push 5
mov ecx, 0x519150
call fcn.0041ecf1
dec dword [ebp - 0x14]
jns 0x41698a
mov edi, dword [ebp - 0x28]
jmp 0x416aae
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0x18], 1
je 0x416aca
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.004acbce
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 - 0x28], ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004167bc
mov edi, eax
test edi, edi
jne 0x416aa8
push 5
mov ecx, 0x519150
call fcn.0041ecf1
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xc8
jl 0x416a42
mov eax, dword [esi]
and word [eax], di
cmp dword [ebp - 0x18], 0
jne 0x416ab4
mov eax, dword [ebx]
and word [eax], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x416abf
mov dword [eax], edi
jmp 0x416aca
test edi, edi
je 0x416aca
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0043f290
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0043f290
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret