Function at 0x405666
Capabilities:
Create process on windows
Get system information on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x42e068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], ebx
call fcn.00411bb8
mov edi, eax
test edi, edi
js 0x4058b9
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x250]
mov dword [0x42e884], eax
mov eax, 0x10000
mov dword [0x42e890], eax
mov dword [0x42e898], eax
mov dword [0x42e8a0], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
mov dword [0x42e888], 0x3c
push eax
lea eax, [ebp - 0x220]
mov dword [0x42e88c], 1
push eax
lea eax, [ebp - 0x220]
mov dword [0x42e894], 1
push eax
mov dword [0x42e89c], 1
mov dword [0x42e8a4], 1
call fcn.0040557c
mov edi, eax
test edi, edi
js 0x4058b9
cmp edi, 1
je 0x4058b7
cmp dword [ebp - 0x218], ebx
je 0x40574d
push ebx
push ebx
call fcn.004051a0
mov edi, eax
jmp 0x4058b9
cmp dword [ebp - 0x21c], ebx
je 0x40586d
push 0x44
pop esi
push esi
lea eax, [ebp - 0x298]
push ebx
push eax
call fcn.004122e7
add esp, 0xc
mov dword [ebp - 0x298], esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4057a8
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x4058b9
push ebx
lea eax, [ebp - 0x210]
push eax
push 0x425848
push 0x425850
call fcn.0040f1b5
mov edi, eax
test edi, edi
js 0x4058b9
push ebx
push 1
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040f03f
mov edi, eax
test edi, edi
js 0x4058b9
push 4
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [ebp - 0x210]
lea eax, [ebp - 0x214]
push str.__s___standalone
push eax
call fcn.0040e331
mov edi, eax
add esp, 0xc
test edi, edi
js 0x4058b9
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x298]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [ebp - 0x214]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x405855
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x4058b9
push dword [ebp - 0x22c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x230]
call esi
jmp 0x4058b9
mov eax, dword [0x42e054]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x22c], 0x40c860
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x4058b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x4058b9
mov edi, ebx
cmp dword [0x42e87c], ebx
je 0x4058c8
push 1
call fcn.00410fd9
cmp dword [ebp - 0x214], ebx
je 0x4058db
push dword [ebp - 0x214]
call fcn.0040e6a6
cmp dword [ebp - 0x210], ebx
je 0x4058ee
push dword [ebp - 0x210]
call fcn.0040e6a6
call fcn.00411be8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411738
mov esp, ebp
pop ebp
ret 0x10