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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x29c
mov eax, dword [0x42f058]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
xor eax, eax
push esi
push edi
mov ebx, eax
mov dword [esp + 0x14], eax
mov esi, eax
mov dword [esp + 0x18], eax
push eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov dword [0x430314], eax
inc ecx
mov eax, 0x10000
mov dword [0x430318], 0x3c
mov dword [0x430320], eax
mov dword [0x430328], eax
mov dword [0x430330], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
mov dword [0x43031c], ecx
push eax
mov dword [0x430324], ecx
mov dword [0x43032c], ecx
mov dword [0x430334], ecx
call fcn.00404f4a
mov edi, eax
test edi, edi
js 0x404efb
cmp edi, 1
je 0x404ef9
cmp dword [esp + 0x14], ebx
je 0x404db6
xor edx, edx
xor ecx, ecx
call fcn.0040502b
mov edi, eax
jmp 0x404efb
cmp dword [esp + 0x18], ebx
je 0x404eba
push 0x44
pop edi
push edi
lea eax, [esp + 0x54]
push 0
push eax
call fcn.00412d6c
add esp, 0xc
mov dword [esp + 0x50], edi
lea eax, [esp + 0x98]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x404e0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x404efb
push ecx
lea eax, [esp + 0x14]
push eax
call fcn.0040f16e
mov ebx, dword [esp + 0x10]
mov edi, eax
test edi, edi
js 0x404efb
push ecx
push ecx
mov edx, ebx
lea ecx, [esp + 0xa0]
call fcn.0040efaa
mov edi, eax
test edi, edi
js 0x404efb
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebx
lea eax, [esp + 0x10]
push str.__s___standalone
push eax
call fcn.0040e474
mov esi, dword [esp + 0x18]
mov edi, eax
add esp, 0xc
test edi, edi
js 0x404efb
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x54]
push eax
xor eax, eax
push eax
push eax
push 0x20
push eax
push eax
push eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x404ea2
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x404efb
push dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x1c]
call esi
mov esi, dword [esp + 0xc]
jmp 0x404efb
and dword [esp + 0x24], ebx
lea eax, [esp + 0x1c]
and dword [esp + 0x28], ebx
push eax
mov dword [esp + 0x20], 0x42b7f0
mov dword [esp + 0x24], 0x40c719
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x404ef9
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x404efb
xor edi, edi
cmp dword [0x430310], 0
je 0x404f09
call fcn.00410a51
test esi, esi
je 0x404f1d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x404f31
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x2a4]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004116a3
mov esp, ebp
pop ebp
ret 0x10