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 [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.00411b12
mov edi, eax
test edi, edi
js 0x405897
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x250]
mov dword [0x42e88c], eax
mov eax, 0x10000
mov dword [0x42e898], eax
mov dword [0x42e8a0], eax
mov dword [0x42e8a8], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
mov dword [0x42e890], 0x3c
push eax
lea eax, [ebp - 0x220]
mov dword [0x42e894], 1
push eax
lea eax, [ebp - 0x220]
mov dword [0x42e89c], 1
push eax
mov dword [0x42e8a4], 1
mov dword [0x42e8ac], 1
call fcn.0040555a
mov edi, eax
test edi, edi
js 0x405897
cmp edi, 1
je 0x405895
cmp dword [ebp - 0x218], ebx
je 0x40572b
push ebx
push ebx
call fcn.0040517e
mov edi, eax
jmp 0x405897
cmp dword [ebp - 0x21c], ebx
je 0x40584b
push 0x44
pop esi
push esi
lea eax, [ebp - 0x298]
push ebx
push eax
call fcn.00412207
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 0x405786
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x405897
push ebx
lea eax, [ebp - 0x210]
push eax
push 0x425890
push 0x425898
call fcn.0040f12f
mov edi, eax
test edi, edi
js 0x405897
push ebx
push 1
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040efb9
mov edi, eax
test edi, edi
js 0x405897
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.0040e2a9
mov edi, eax
add esp, 0xc
test edi, edi
js 0x405897
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 0x405833
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x405897
push dword [ebp - 0x22c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x230]
call esi
jmp 0x405897
mov eax, dword [0x42e054]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x22c], 0x40c7d8
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x405895
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x405897
mov edi, ebx
cmp dword [0x42e884], ebx
je 0x4058a6
push 1
call fcn.00410f5a
cmp dword [ebp - 0x214], ebx
je 0x4058b9
push dword [ebp - 0x214]
call fcn.0040e61e
cmp dword [ebp - 0x210], ebx
je 0x4058cc
push dword [ebp - 0x210]
call fcn.0040e61e
call fcn.00411b4c
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004116b9
mov esp, ebp
pop ebp
ret 0x10