Function at 0x40a790
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x44480c
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x4571dc]
xor eax, esp
mov dword [esp + 0x2bc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4571dc]
xor eax, esp
push eax
lea eax, [esp + 0x2d4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2e4]
mov edi, dword [esp + 0x2e8]
mov ebx, dword [esp + 0x2ec]
mov esi, dword [esp + 0x2f0]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x2f8]
mov dword [esp + 0x5c], ecx
push 0x44760c
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x48], ebx
call fcn.004018a0
xor ebp, ebp
push 0x44760c
lea ecx, [esp + 0x18]
mov dword [esp + 0x2e0], ebp
call fcn.004018a0
push ebx
lea ecx, [esp + 0x44]
mov byte [esp + 0x2e0], 1
call fcn.004018a0
push edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x2e0], 2
mov dword [esp + 0x1c], ebp
call fcn.004018a0
push esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x2e0], 3
call fcn.004018a0
push 0x40
lea edx, [esp + 0x88]
push ebp
push edx
mov byte [esp + 0x2e8], 4
mov dword [esp + 0x8c], ebp
call fcn.00428a10
xor eax, eax
add esp, 0xc
push 0x44760c
lea ecx, [esp + 0x4c]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
call fcn.004018a0
push 0x208
lea eax, [esp + 0xc8]
push ebp
push eax
mov byte [esp + 0x2e8], 5
call fcn.00428a10
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc8]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, ebp
ja 0x40a9d7
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x2dc], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a905
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x2dc], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a92d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x2dc], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a955
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x2dc], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a97d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x2dc], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a9a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x2dc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a9d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40b0e0
lea eax, [esp + 0xc4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40a9e1
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xc8]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00401610
mov edx, dword [esp + 0x24]
push 0x5c
push edx
call fcn.00428cb0
add esp, 8
cmp eax, ebp
jne 0x40aa1a
or eax, 0xffffffff
jmp 0x40aa22
sub eax, dword [esp + 0x24]
sar eax, 1
je 0x40aa6b
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
call fcn.00402470
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x2e0], 6
call fcn.00401770
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x2dc], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aa6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x447b44
lea ecx, [esp + 0x1c]
call fcn.00401610
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004024f0
push 1
push 0x44764c
lea ecx, [esp + 0x1c]
call fcn.004024f0
mov edx, dword [esp + 0x1c]
cmp edx, ebp
jne 0x40aaa9
xor eax, eax
jmp 0x40aabf
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40aab0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.004024f0
push 1
push 0x447b44
lea ecx, [esp + 0x1c]
call fcn.004024f0
cmp dword [esp + 0x2f4], ebp
je 0x40aaff
push 0x447cdc
lea ecx, [esp + 0x18]
call fcn.00402c90
push 0x447cd4
lea ecx, [esp + 0x18]
call fcn.00402c90
push 0x44760c
lea ecx, [esp + 0x38]
call fcn.004018a0
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x38]
push str.szCommandLine_s
push edx
mov byte [esp + 0x2e8], 7
call fcn.00407b80
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x38]
push eax
add esi, 0x1f0
push esi
call fcn.00416050
mov ecx, dword [esp + 0x28]
mov ebp, dword [ecx - 0xc]
inc ebp
lea ebx, [ebp + ebp]
push ebx
call fcn.004288b0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x40aba2
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x2dc], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ab81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x2dc], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40a8f9
push ebx
push 0
push edi
call fcn.00428a10
mov ecx, dword [esp + 0x20]
push ecx
push ebp
push edi
call fcn.0042955d
mov eax, dword [esp + 0x58]
add esp, 0x18
cmp dword [eax - 0xc], 0
mov ebx, eax
jne 0x40abca
mov ebx, dword [esp + 0x18]
push 0x44
lea edx, [esp + 0x84]
push 0
push edx
call fcn.00428a10
xor eax, eax
add esp, 0xc
push 0x44760c
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x84], 0x44
call fcn.004018a0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2e0], 8
call fcn.00401770
push 0x44764c
lea ecx, [esp + 0x3c]
call fcn.00402c90
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00402c90
push 0x447c68
push esi
call fcn.00415f40
mov ebp, dword [esp + 0x64]
add esp, 8
mov ecx, ebp
call fcn.004167b0
test eax, eax
je 0x40ae75
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x84]
push eax
push 0
push 0
push 0
push edi
push 0
push 1
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x40ac93
mov esi, 1
jmp 0x40af92
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x64]
mov ebx, eax
call fcn.004165c0
push 0x44760c
lea ecx, [esp + 0x24]
mov byte [esp + 0x2e0], 9
call fcn.004018a0
push 0x44760c
lea ecx, [esp + 0x20]
mov byte [esp + 0x2e0], 0xa
call fcn.004018a0
push 0x44760c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2e0], 0xb
call fcn.004018a0
push 0x44760c
lea ecx, [esp + 0x30]
mov byte [esp + 0x2e0], 0xc
call fcn.004018a0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x2e0], 0xd
call fcn.00416410
lea ecx, [esp + 0x2c]
cmp ebx, 5
jne 0x40ad4c
push 0x447c38
call fcn.00401810
push 0x87
lea ecx, [esp + 0x20]
call fcn.004016c0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00407b80
add esp, 0xc
jmp 0x40adb5
cmp ebx, 0x52e
jne 0x40ad85
push 0x447c0c
call fcn.00401810
push 0x89
lea ecx, [esp + 0x20]
call fcn.004016c0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00407b80
add esp, 0xc
jmp 0x40adb5
push 0x447be8
call fcn.00401810
push 0x88
lea ecx, [esp + 0x20]
call fcn.004016c0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ebx
push ecx
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00407b80
add esp, 0x10
mov ecx, ebp
call fcn.004167c0
test eax, eax
jne 0x40add3
mov ecx, dword [esp + 0x18]
push 0x30
push str.Installer
push ecx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x44760c
lea ecx, [esp + 0x2c]
call fcn.004018a0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
lea edx, [esp + 0x34]
push 0x447bb4
mov bl, 0xe
push edx
mov byte [esp + 0x2f0], bl
call fcn.00407b80
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.00407bd0
add esp, 0x20
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x2e0], 0xf
call fcn.00401770
lea ecx, [esp + 0x44]
mov byte [esp + 0x2dc], bl
call fcn.00401c10
mov eax, dword [esp + 0x2c]
push eax
push esi
call fcn.00415e30
add esp, 8
lea ecx, [esp + 0x28]
xor esi, esi
call fcn.00401c10
lea ecx, [esp + 0x2c]
call fcn.00401c10
lea ecx, [esp + 0x18]
call fcn.00401c10
lea ecx, [esp + 0x1c]
jmp 0x40af73
push str.CreateProcess
push esi
call fcn.00415f40
add esp, 8
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x84]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40aeb3
mov esi, 1
jmp 0x40af92
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x64]
mov ebp, eax
call fcn.004165c0
push 0x44760c
lea ecx, [esp + 0x24]
mov byte [esp + 0x2e0], 0x10
call fcn.004018a0
push 0x44760c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2e0], 0x11
call fcn.004018a0
push 0x44760c
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2e0], 0x12
call fcn.004018a0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x2e0], 0x13
call fcn.00416410
push 0x88
lea ecx, [esp + 0x1c]
call fcn.004016c0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push ebp
push ecx
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00407b80
mov ecx, dword [esp + 0x38]
add esp, 0x10
push 0x30
push str.Installer
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x447be8
push esi
call fcn.00415e30
add esp, 8
lea ecx, [esp + 0x28]
xor esi, esi
call fcn.00401c10
lea ecx, [esp + 0x18]
call fcn.00401c10
lea ecx, [esp + 0x20]
call fcn.00401c10
lea ecx, [esp + 0x64]
mov byte [esp + 0x2dc], 8
call fcn.004165d0
push edi
call fcn.0042897a
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x2dc], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40afc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x2dc], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40afeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x2dc], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b013
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x2dc], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b03b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x2dc], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b063
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x2dc], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b08b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x2dc], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x2dc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x2d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2bc]
xor ecx, esp
call fcn.00428852
add esp, 0x2cc
ret 0x18