Function at 0x408570
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c5da
mov eax, dword fs:[0]
push eax
sub esp, 0x398
mov eax, dword [0x5b21b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x290], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x220]
push str.__c_attrib__h__r__s__s__d
mov dword [ebp - 0x220], 0
call fcn.00402c50
push 0x44
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 1
push 0
push eax
mov dword [ebp - 0x224], 0xffffffff
call fcn.00535060
add esp, 0xc
mov dword [ebp - 0x26c], 0x44
xor eax, eax
mov dword [ebp - 0x240], 1
mov word [ebp - 0x23c], ax
push eax
push 0x24
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str._system32cmd.exe
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.00408c70
add esp, 0xc
push 0x592604
push eax
lea eax, [ebp - 0x280]
mov byte [ebp - 4], 2
push eax
call fcn.00402a50
add esp, 0xc
push 0x592600
push eax
lea eax, [ebp - 0x294]
mov byte [ebp - 4], 3
push eax
call fcn.00402a50
add esp, 0xc
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.00408af0
add esp, 0xc
push 0x5925f4
push eax
lea eax, [ebp - 0x284]
mov byte [ebp - 4], 5
push eax
call fcn.00402a50
add esp, 0xc
mov byte [ebp - 4], 6
or edi, 0xffffffff
mov ecx, dword [eax]
mov esi, dword [ebp - 0x220]
add esi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x408711
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x408702
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x408702
push edx
call fcn.00402b30
add esp, 4
mov dword [ebp - 0x288], eax
mov ecx, edi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x4086f7
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x288]
add eax, 0x10
mov dword [ebp - 0x220], eax
jmp 0x408711
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x220]
call fcn.00402d70
mov byte [ebp - 4], 5
mov ecx, edi
mov edx, dword [ebp - 0x284]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408734
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov ecx, edi
mov edx, dword [ebp - 0x28c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408757
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov ecx, edi
mov edx, dword [ebp - 0x294]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40877a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x280]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40879d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x298]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4087c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x220]
xor eax, eax
mov word [ebp - 0x23c], ax
lea eax, [ebp - 0x3a0]
mov dword [ebp - 0x3a4], eax
test ebx, ebx
jne 0x4087e9
xor eax, eax
mov dword [ebp - 0x3a4], eax
jmp 0x408839
mov esi, ebx
lea ecx, [esi + 2]
mov edi, edi
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4087f0
sub esi, ecx
lea eax, [ebp - 0x3a0]
push 0x80
push eax
sar esi, 1
lea eax, [ebp - 0x3a4]
inc esi
push esi
push eax
call fcn.00408bb0
lea eax, [esi + esi]
push eax
push ebx
push eax
push dword [ebp - 0x3a4]
call fcn.00532584
push eax
call fcn.00402f60
mov eax, dword [ebp - 0x3a4]
add esp, 0x24
lea ecx, [ebp - 0x27c]
push ecx
lea ecx, [ebp - 0x26c]
push ecx
push 0
push 0
push 0x4000000
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [ebp - 0x3a4]
lea ecx, [ebp - 0x3a0]
cmp eax, ecx
je 0x408878
push eax
call fcn.00533616
add esp, 4
mov ebx, dword [ebp - 0x290]
mov ecx, dword [ebp - 0x27c]
mov eax, dword [ebp - 0x278]
push 0xffffffffffffffff
push ecx
mov dword [ebx + 0x27c], ecx
mov dword [ebx + 0x280], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x224]
push 0x592608
call fcn.00409ca0
add esp, 8
cmp dword [ebp - 0x224], 0
jne 0x4088eb
lea eax, [ebx + 0x118]
test eax, eax
je 0x4088db
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0x27c]
call fcn.004075c0
mov ecx, dword [ebp - 0x278]
call fcn.004075c0
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408924
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x408945
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005322c6
mov esp, ebp
pop ebp
ret 4