Function at 0x417f4e
Capabilities:
Create directory
Query environment variable

Disassembly:
mov eax, 0x4e8750
call fcn.004b48a0
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 0x417f78
lea ebx, [ebp - 0x20]
cmp dword [ebp + 0xc], edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
jne 0x417f9d
cmp dword [ebp + 8], edi
lea esi, [ebp - 0x1c]
je 0x418163
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 0x417fac
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
push 0x26c
mov ecx, ebx
call fcn.004494e0
push 0x2d0
mov ecx, esi
call fcn.004494e0
test edi, edi
jg 0x418004
push 0x208
push dword [esi]
push 0x4f3c00
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
jg 0x417ff4
push 0x208
push dword [esi]
push 0x4f3bf4
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.00417dcd
and dword [ebp - 0x28], 0
add esp, 0xc
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xc7
cmp dword [ebp + 8], 0
je 0x4180d1
mov eax, dword [ebx]
lea eax, [eax + edi*2]
push 0x4f3be8
mov dword [ebp - 0x24], eax
call fcn.00445d10
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 0x418090
push 5
mov ecx, 0x51d2a0
call fcn.0042072b
dec dword [ebp - 0x14]
jns 0x418023
mov edi, dword [ebp - 0x28]
jmp 0x418147
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0x18], 1
je 0x418163
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.00417dcd
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.00417e55
mov edi, eax
test edi, edi
jne 0x418141
push 5
mov ecx, 0x51d2a0
call fcn.0042072b
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xc8
jl 0x4180db
mov eax, dword [esi]
and word [eax], di
cmp dword [ebp - 0x18], 0
jne 0x41814d
mov eax, dword [ebx]
and word [eax], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x418158
mov dword [eax], edi
jmp 0x418163
test edi, edi
je 0x418163
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00443880
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00443880
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret