Function at 0x419110
Capabilities:
Create directory
Get common file path
Set environment variable

Disassembly:
push 0xffffffffffffffff
push 0x42a881
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push ebp
push esi
mov ebx, ecx
mov byte [esp + 0xf], 0
mov al, byte [esp + 0xf]
push edi
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], ebx
mov byte [esp + 0x18], al
call fcn.00402000
mov edi, 0x431f30
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x431f30
lea ecx, [esp + 0x1c]
call fcn.0041afd0
mov eax, dword [esp + 0x150]
mov dword [esp + 0x148], 0
test eax, eax
je 0x41948f
push str.TEMP
call fcn.004230cd
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.0041afd0
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x419249
push 0x42e680
call fcn.004230cd
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.0041afd0
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x419249
lea ecx, [esp + 0x38]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x41948f
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x3b], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x38]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.0041afd0
mov edi, str.TEMP
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.TEMP
lea ecx, [esp + 0x1c]
call fcn.0041af10
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41948f
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x419256
mov esi, 0x42b148
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], al
call fcn.00402000
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x28]
push ebp
call fcn.00408e80
test al, al
je 0x4192a5
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.00408e60
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
mov byte [esp + 0x14c], 1
call fcn.0041a7f0
test al, al
push 1
lea ecx, [esp + 0x28]
sete bl
mov byte [esp + 0x14c], 0
call fcn.00402000
test bl, bl
je 0x4192f3
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4192e2
mov eax, 0x42b148
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x41948f
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x419300
mov esi, 0x42b148
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x28], cl
lea ecx, [esp + 0x28]
call fcn.00402000
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x28]
push ebp
call fcn.00408e80
test al, al
je 0x41934f
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.00408e60
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x14c], 2
call fcn.0041a7f0
test al, al
push 1
lea ecx, [esp + 0x28]
sete bl
mov byte [esp + 0x14c], 0
call fcn.00402000
test bl, bl
jne 0x41948f
push 0x42e680
call fcn.004230cd
add esp, 4
test eax, eax
jne 0x4193b7
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4193a3
mov eax, 0x42b148
push eax
push 0x42e680
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x41948f
mov ebp, dword [esp + 0x1c]
lea esi, [ebp - 1]
cmp ebp, esi
jb 0x4193fe
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4193fe
mov cl, byte [eax - 1]
test cl, cl
je 0x4193ea
cmp cl, 0xff
je 0x4193ea
push 0
push ebp
lea ecx, [esp + 0x1c]
call fcn.00408e80
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4193fa
mov byte [eax - 1], 0xff
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add eax, esi
jmp 0x419403
mov eax, 0x42b148
cmp byte [eax], 0x5c
je 0x419470
mov edi, 0x42d8ac
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x42b14c]
sub ecx, ebp
cmp ecx, esi
ja 0x41942e
call fcn.00422147
mov ebp, dword [esp + 0x1c]
test esi, esi
jbe 0x419470
add ebp, esi
push 0
push ebp
lea ecx, [esp + 0x1c]
call fcn.00408e80
test al, al
je 0x419470
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, esi
mov esi, 0x42d8ac
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
mov ecx, dword [0x42b14c]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x154]
push 0
push edx
call fcn.0041a9d0
mov byte [esp + 0x13], 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
test ecx, ecx
pop ebx
je 0x4194b7
mov al, byte [ecx - 1]
test al, al
je 0x4194ad
cmp al, 0xff
je 0x4194ad
dec al
mov byte [ecx - 1], al
jmp 0x4194b7
dec ecx
push ecx
call fcn.0042213c
add esp, 4
mov ecx, dword [esp + 0x130]
mov al, byte [esp + 3]
mov dword fs:[0], ecx
add esp, 0x13c
ret 4