Function at 0x404cfd
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 [0x42e058]
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 [0x42f1f4], eax
inc ecx
mov eax, 0x10000
mov dword [0x42f1f8], 0x3c
mov dword [0x42f200], eax
mov dword [0x42f208], eax
mov dword [0x42f210], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
mov dword [0x42f1fc], ecx
push eax
mov dword [0x42f204], ecx
mov dword [0x42f20c], ecx
mov dword [0x42f214], ecx
call fcn.00404f50
mov edi, eax
test edi, edi
js 0x404f01
cmp edi, 1
je 0x404eff
cmp dword [esp + 0x14], ebx
je 0x404dbc
xor edx, edx
xor ecx, ecx
call fcn.00405031
mov edi, eax
jmp 0x404f01
cmp dword [esp + 0x18], ebx
je 0x404ec0
push 0x44
pop edi
push edi
lea eax, [esp + 0x54]
push 0
push eax
call fcn.00412d4c
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 0x404e12
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x404f01
push ecx
lea eax, [esp + 0x14]
push eax
call fcn.0040f196
mov ebx, dword [esp + 0x10]
mov edi, eax
test edi, edi
js 0x404f01
push ecx
push ecx
mov edx, ebx
lea ecx, [esp + 0xa0]
call fcn.0040efd4
mov edi, eax
test edi, edi
js 0x404f01
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.0040e48f
mov esi, dword [esp + 0x18]
mov edi, eax
add esp, 0xc
test edi, edi
js 0x404f01
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 0x404ea8
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x404f01
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 0x404f01
and dword [esp + 0x24], ebx
lea eax, [esp + 0x1c]
and dword [esp + 0x28], ebx
push eax
mov dword [esp + 0x20], 0x42a620
mov dword [esp + 0x24], 0x40c75b
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x404eff
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x404f01
xor edi, edi
cmp dword [0x42f1f0], 0
je 0x404f0f
call fcn.00410a4f
test esi, esi
je 0x404f23
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x404f37
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.00411690
mov esp, ebp
pop ebp
ret 0x10