Function at 0x405070
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x46398c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x464280], 0
jne 0x4050ce
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [0x464280], 1
cmp dword [ebp + 0xc], 0
je 0x4050c3
push str.COINIT
mov eax, dword [ebp + 0xc]
push eax
call fcn.0043bed0
add esp, 8
test eax, eax
jne 0x4050c3
mov eax, 0xfffe7962
jmp 0x4053f2
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x14], 1
jmp 0x4050e6
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 5
jg 0x4053ef
push 0x3c
push 0
lea eax, [ebp - 0x80]
push eax
call fcn.0043af90
add esp, 0xc
mov dword [ebp - 0x80], 0x3c
cmp dword [ebp + 0x1c], 0
jne 0x405116
mov dword [ebp - 0x20], 0x400
jmp 0x40511d
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x20]
or ecx, 0x40
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x78], edx
cmp dword [ebp + 0xc], 0
je 0x40513a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
jmp 0x405141
mov dword [ebp - 0x24], str.open
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x10], 0xfffe7961
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x3c]
mov dword [ebp + 0x20], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x80]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4052f8
cmp dword [ebp - 0x48], 0
je 0x4052f8
cmp dword [ebp + 0x20], 0
je 0x4052dc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0xfffffefe
mov edx, dword [ebp + 0x20]
sub edx, 1
mov dword [ebp + 0x20], edx
cmp dword [ebp + 0x20], 0
jle 0x405236
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x405215
cmp dword [ebp - 0x18], 0x103
je 0x405215
cmp dword [ebp + 0x24], 0
je 0x40520a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x10], 0xfffffffe
mov edx, dword [ebp + 0x20]
add edx, 1
mov dword [ebp + 0x20], edx
jmp 0x405211
mov dword [ebp - 0x10], 0x29
jmp 0x405236
cmp dword [ebp + 0x28], 0
je 0x405229
mov eax, dword [ebp + 0x28]
push eax
call fcn.00409c90
add esp, 4
jmp 0x405234
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4051bd
cmp dword [ebp + 0x24], 0
je 0x4052da
push 0
call fcn.00411b00
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004120e0
add esp, 8
cmp dword [ebp + 0x24], 0
je 0x4052ce
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0x20]
sub ecx, 1
mov dword [ebp + 0x20], ecx
cmp dword [ebp - 0x40], 0
jl 0x4052ce
mov edx, dword [ebp - 0x1c]
push edx
push 1
mov eax, dword [ebp + 0x24]
push eax
call fcn.00409d80
add esp, 0xc
push eax
call fcn.004116a0
add esp, 4
test eax, eax
je 0x4052ad
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x10], 0x2a
jmp 0x4052ce
cmp dword [ebp + 0x28], 0
je 0x4052c1
mov ecx, dword [ebp + 0x28]
push ecx
call fcn.00409c90
add esp, 4
jmp 0x4052cc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40525d
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00412610
add esp, 4
jmp 0x4052e3
mov dword [ebp - 0x10], 0x2b
cmp dword [ebp + 0x2c], 0
je 0x4052f6
cmp dword [ebp - 0x10], 0
jle 0x4052f6
mov dword [ebp - 0x10], 0
jmp 0x405359
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x1f
jne 0x405316
mov dword [ebp - 0x28], 1
jmp 0x40531d
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x34], ecx
cmp dword [ebp + 0x2c], 0
je 0x405346
cmp dword [ebp - 0x2c], 0
jne 0x405338
mov dword [ebp - 0x30], 0xfffffffd
jmp 0x40533e
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
jmp 0x405359
cmp dword [ebp - 0x10], 0
je 0x405352
cmp dword [ebp - 0x10], 0x20
jle 0x405359
mov dword [ebp - 0x10], 0xffffffff
cmp dword [ebp - 0x48], 0
je 0x405369
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x34], 0
jne 0x405371
jmp 0x4053ef
mov edx, dword [ebp + 0x10]
push edx
call fcn.0043bc40
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 5
jae 0x405388
jmp 0x4053ef
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0x10]
lea edx, [ecx + eax - 4]
mov dword [ebp - 0x44], edx
xor eax, eax
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], al
push 4
mov ecx, dword [ebp - 0x44]
push ecx
lea edx, [ebp - 0xc]
push edx
call fcn.0043c120
add esp, 0xc
push 4
push str..BAT
lea eax, [ebp - 0xc]
push eax
call fcn.0043bfdf
add esp, 0xc
test eax, eax
je 0x4053df
push 4
push str..EXE
lea ecx, [ebp - 0xc]
push ecx
call fcn.0043bfdf
add esp, 0xc
test eax, eax
je 0x4053df
jmp 0x4053ef
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4050dd
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439ac1
mov esp, ebp
pop ebp
ret