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
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.00411bfc
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 [0x42e890], eax
mov eax, 0x10000
mov dword [0x42e89c], eax
mov dword [0x42e8a4], eax
mov dword [0x42e8ac], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
mov dword [0x42e894], 0x3c
push eax
lea eax, [ebp - 0x220]
mov dword [0x42e898], 1
push eax
lea eax, [ebp - 0x220]
mov dword [0x42e8a0], 1
push eax
mov dword [0x42e8a8], 1
mov dword [0x42e8b0], 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.004122f1
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 0x425838
push 0x425840
call fcn.0040f14d
mov edi, eax
test edi, edi
js 0x405897
push ebx
push 1
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040efd7
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.0040e2c9
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], 0x40c7f8
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 [0x42e8b4], ebx
je 0x4058a6
push 1
call fcn.00410f58
cmp dword [ebp - 0x214], ebx
je 0x4058b9
push dword [ebp - 0x214]
call fcn.0040e63e
cmp dword [ebp - 0x210], ebx
je 0x4058cc
push dword [ebp - 0x210]
call fcn.0040e63e
call fcn.00412285
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411786
mov esp, ebp
pop ebp
ret 0x10