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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x42e070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push edi
push str.Kernel32.dll
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x4056a3
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x4058f7
push str.SetDefaultDllDirectories
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4056d6
push 0x800
call eax
test eax, eax
jne 0x4056d6
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x4058f7
call fcn.0041174d
mov edi, eax
test edi, edi
js 0x4058f7
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x250]
mov dword [0x42e89c], eax
mov eax, 0x10000
mov dword [0x42e8a8], eax
mov dword [0x42e8b0], eax
mov dword [0x42e8b8], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
mov dword [0x42e8a0], 0x3c
push eax
lea eax, [ebp - 0x220]
mov dword [0x42e8a4], 1
push eax
lea eax, [ebp - 0x220]
mov dword [0x42e8ac], 1
push eax
mov dword [0x42e8b4], 1
mov dword [0x42e8bc], 1
call fcn.0040555a
mov edi, eax
test edi, edi
js 0x4058f7
cmp edi, 1
je 0x4058f5
cmp dword [ebp - 0x218], 0
je 0x405790
push 0
push 0
call fcn.0040517e
mov edi, eax
jmp 0x4058f7
cmp dword [ebp - 0x21c], 0
je 0x4058ad
push 0x44
pop edi
push edi
xor ebx, ebx
lea eax, [ebp - 0x298]
push ebx
push eax
call fcn.0041259b
add esp, 0xc
mov dword [ebp - 0x298], edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4057e8
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x4058f7
push ebx
lea eax, [ebp - 0x210]
push eax
push 0x42585c
push 0x425864
call fcn.0040f287
mov edi, eax
test edi, edi
js 0x4058f7
push ebx
push 1
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040f111
mov edi, eax
test edi, edi
js 0x4058f7
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.0040e3cc
mov edi, eax
add esp, 0xc
test edi, edi
js 0x4058f7
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 0x405895
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x4058f7
push dword [ebp - 0x22c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x230]
call esi
jmp 0x4058f7
mov eax, dword [0x42e05c]
and dword [ebp - 0x228], 0
and dword [ebp - 0x224], 0
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x22c], 0x40c83b
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x4058f5
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x4058f7
xor edi, edi
cmp dword [0x42e894], 0
je 0x405907
push 1
call fcn.00411261
cmp dword [ebp - 0x214], 0
je 0x40591b
push dword [ebp - 0x214]
call fcn.0040e741
cmp dword [ebp - 0x210], 0
je 0x40592f
push dword [ebp - 0x210]
call fcn.0040e741
call fcn.00414d65
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004119c3
mov esp, ebp
pop ebp
ret 0x10