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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x42104c]
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.0041a08e
mov edi, eax
test edi, edi
js 0x4084cb
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x250]
mov dword [0x421e40], eax
mov eax, 0x10000
mov dword [0x421e4c], eax
mov dword [0x421e54], eax
mov dword [0x421e5c], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x220]
push eax
mov dword [0x421e44], 0x3c
mov dword [0x421e48], 1
mov dword [0x421e50], 1
mov dword [0x421e58], 1
mov dword [0x421e60], 1
call fcn.00408914
mov edi, eax
test edi, edi
js 0x4084cb
cmp edi, 1
je 0x4084c9
cmp dword [ebp - 0x218], ebx
je 0x408353
push ebx
push ebx
call fcn.00408518
mov edi, eax
jmp 0x4084cb
cmp dword [ebp - 0x21c], ebx
je 0x40847b
push 0x44
pop esi
push esi
lea eax, [ebp - 0x298]
push ebx
push eax
call fcn.00411211
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
mov dword [ebp - 0x298], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4083b2
call esi
mov edi, eax
test edi, edi
jle 0x4083ac
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x4084cb
push ebx
lea eax, [ebp - 0x210]
push eax
push 0x401838
push 0x401840
call fcn.004176db
mov edi, eax
test edi, edi
js 0x4084cb
push ebx
push 1
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
call fcn.004174bd
mov edi, eax
test edi, edi
js 0x4084cb
push 4
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [ebp - 0x210]
lea eax, [ebp - 0x214]
push 0x401848
push eax
call fcn.0041700b
mov edi, eax
add esp, 0xc
test edi, edi
js 0x4084cb
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 0x408463
call esi
mov edi, eax
test edi, edi
jle 0x408461
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x4084cb
push dword [ebp - 0x22c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x230]
call esi
jmp 0x4084cb
mov eax, dword [0x421044]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x22c], 0x40fcc3
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x4084c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x4084c7
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x4084cb
mov edi, ebx
cmp dword [0x421e38], ebx
je 0x4084da
push 1
call fcn.00419610
cmp dword [ebp - 0x214], ebx
je 0x4084ed
push dword [ebp - 0x214]
call fcn.00417131
cmp dword [ebp - 0x210], ebx
je 0x408500
push dword [ebp - 0x210]
call fcn.00417131
call fcn.0041a091
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410f5c
leave
ret 0x10