Function at 0x40f3a6
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xe8
mov eax, dword [0x419010]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
cmp ebx, edi
mov esi, edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
je 0x40f406
cmp esi, edi
je 0x40f406
push ebx
lea ecx, [ebp - 4]
call fcn.004092df
push edi
push ebx
lea ecx, [ebp - 0x14]
mov edx, 0x404d70
mov dword [ebp + 8], edi
mov dword [ebp - 0x14], edi
call fcn.0040efe4
cmp dword [ebp - 0x14], edi
jne 0x40f41d
lea esi, [ebp + 8]
call fcn.0040d7cd
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, 0x80070057
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413c2a
add ebp, 0x78
leave
ret
push dword [ebp - 0x14]
lea eax, [ebp + 0x10]
push 0x405fc8
push 0x32
push eax
call fcn.0040da14
add esp, 0x10
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 4]
call fcn.0040f93b
cmp dword [ebp - 4], edi
jne 0x40f45a
lea esi, [ebp + 8]
call fcn.0040d7cd
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, 0x8007000e
jmp 0x40f40b
lea eax, [ebp - 8]
push eax
push 0x20019
push edi
push dword [ebp - 4]
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
mov dword [esi], edi
mov dword [ebp + 0xc], ebx
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x10], esi
jne 0x40f495
lea esi, [ebp + 8]
call fcn.0040d7cd
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov dword [ebp + 8], eax
cmp dword [ebp + 0xc], ebx
je 0x40f4a3
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jle 0x40f4b5
and esi, 0xffff
or esi, 0x80070000
cmp esi, edi
jl 0x40f6a5
cmp dword [ebp + 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp], edi
mov dword [ebp - 8], edi
je 0x40f4e0
push edi
push edi
push edi
push edi
lea eax, [ebp - 8]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 8], edi
mov dword [ebp + 0xc], edi
jbe 0x40f557
lea eax, [ebp + 4]
push eax
push dword [ebp + 0xc]
lea ebx, [ebp + 8]
mov dword [ebp + 4], edi
call fcn.0040d974
mov ebx, dword [ebp + 4]
push ebx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x40f545
push 0x405ff0
lea ecx, [ebp]
call fcn.0040f93b
push ebx
lea esi, [ebp]
call fcn.004090a2
cmp eax, edi
jl 0x40f5bf
push 0x404fd0
mov ecx, esi
call fcn.0040f93b
cmp dword [ebp - 0xc], edi
jne 0x40f545
lea eax, [ebp - 0xc]
push eax
mov edx, ebx
lea esi, [ebp + 8]
call fcn.0040d855
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
jb 0x40f4e8
push dword [ebp]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
call esi
test eax, eax
je 0x40f693
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x40f693
mov eax, dword [ebp - 0x18]
xor ebx, ebx
inc ebx
mov dword [eax], ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x404d70
call fcn.0040efe4
test eax, eax
jne 0x40f5c5
mov ebx, 0x80070057
push dword [ebp]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push dword [ebp - 0xc]
call edi
lea esi, [ebp + 8]
call fcn.0040d7cd
push dword [ebp - 4]
call edi
mov eax, ebx
jmp 0x40f40b
push eax
call fcn.00408f45
push 0xbb8
push dword [ebp - 0x10]
lea esi, [ebp + 4]
mov dword [ebp + 0xc], edi
mov dword [ebp + 4], edi
call fcn.004090e0
lea eax, [ebp + 0xc]
push eax
push dword [ebp]
push 0x1a36
push dword [ebp - 0x10]
call fcn.0040e813
cmp dword [ebp + 0xc], edi
jne 0x40f609
push dword [ebp + 4]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push edi
call esi
mov ebx, 0x8007000e
jmp 0x40f59b
push 0x11
push dword [ebp + 4]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, ebx
jne 0x40f681
push 0x40
lea eax, [ebp - 0x6c]
push edi
push eax
call sub.MSVCR80.dll_memset
mov dword [ebp - 0x2c], edi
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
xor eax, eax
push eax
push eax
push 8
push ebx
push eax
push eax
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x70], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40f671
push dword [ebp + 4]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp + 0xc]
call esi
jmp 0x40f596
push dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
push dword [ebp + 4]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push dword [ebp + 0xc]
call edi
jmp 0x40f699
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp]
call edi
push dword [ebp - 0xc]
call edi
jmp 0x40f6ab
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [ebp + 8]
call fcn.0040d7cd
push dword [ebp - 4]
call edi
xor eax, eax
jmp 0x40f40b