Function at 0x404c88
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 [0x42e05c]
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 [0x42f314], eax
inc ecx
mov eax, 0x10000
mov dword [0x42f318], 0x3c
mov dword [0x42f320], eax
mov dword [0x42f328], eax
mov dword [0x42f330], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
mov dword [0x42f31c], ecx
push eax
mov dword [0x42f324], ecx
mov dword [0x42f32c], ecx
mov dword [0x42f334], ecx
call fcn.00404ec9
mov edi, eax
test edi, edi
js 0x404e8c
cmp edi, 1
je 0x404e8a
cmp dword [esp + 0x14], ebx
je 0x404d47
xor edx, edx
xor ecx, ecx
call fcn.00404f9f
mov edi, eax
jmp 0x404e8c
cmp dword [esp + 0x18], ebx
je 0x404e4b
push 0x44
pop edi
push edi
lea eax, [esp + 0x54]
push 0
push eax
call fcn.00412599
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 0x404d9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x404e8c
push ecx
lea eax, [esp + 0x14]
push eax
call fcn.0040ef88
mov ebx, dword [esp + 0x10]
mov edi, eax
test edi, edi
js 0x404e8c
push ecx
push ecx
mov edx, ebx
lea ecx, [esp + 0xa0]
call fcn.0040edd9
mov edi, eax
test edi, edi
js 0x404e8c
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.0040e2e8
mov esi, dword [esp + 0x18]
mov edi, eax
add esp, 0xc
test edi, edi
js 0x404e8c
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 0x404e33
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x404e8c
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 0x404e8c
and dword [esp + 0x24], ebx
lea eax, [esp + 0x1c]
and dword [esp + 0x28], ebx
push eax
mov dword [esp + 0x20], 0x42a670
mov dword [esp + 0x24], 0x40c5c1
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x404e8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x404e8c
xor edi, edi
cmp dword [0x42f310], 0
je 0x404e9a
call fcn.004107e2
test esi, esi
je 0x404ea5
mov ecx, esi
call fcn.00411025
test ebx, ebx
je 0x404eb0
mov ecx, ebx
call fcn.00411025
mov ecx, dword [esp + 0x2a4]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00411433
mov esp, ebp
pop ebp
ret 0x10