Function at 0x407960
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x140
push ebx
push esi
mov esi, dword [esp + 0x150]
push edi
push esi
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov cl, byte [0x442238]
test cl, cl
ja 0x407c10
test eax, eax
je 0x407c10
push esi
call fcn.004075b0
mov esi, eax
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0x3c
test esi, esi
rep stosd dword es:[edi], eax
je 0x407c10
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4079c7
cmp eax, 1
jne 0x407ace
mov ecx, dword [esi + 0x18]
xor bl, bl
push ecx
mov dword [esp + 0x10], 0x4354f0
call fcn.00423080
add esp, 4
lea edx, [esp + 0xc]
mov edi, eax
push edx
push 0
push edi
call fcn.0040f220
test eax, eax
je 0x407ac0
mov cl, byte [eax]
mov dl, 0x5c
cmp cl, dl
jne 0x407a3f
cmp byte [eax + 1], dl
jne 0x407a3f
cmp byte [eax + 2], 0x3f
jne 0x407a38
cmp byte [eax + 3], dl
jne 0x407a3f
mov cl, byte [eax + 4]
cmp cl, 0x55
je 0x407a19
cmp cl, 0x75
jne 0x407a3f
mov cl, byte [eax + 5]
cmp cl, 0x4e
je 0x407a26
cmp cl, 0x6e
jne 0x407a3f
mov cl, byte [eax + 6]
cmp cl, 0x43
je 0x407a33
cmp cl, 0x63
jne 0x407a3f
cmp byte [eax + 7], dl
jne 0x407a3f
mov ecx, 1
jmp 0x407a41
xor ecx, ecx
neg cl
mov edx, dword [esp + 0xc]
mov dword [esp + 0x1c], 0
sbb ecx, ecx
mov dword [esp + 0x20], eax
and ecx, 0x80
mov dword [esp + 0x24], edx
or ch, 4
mov dword [esp + 0x2c], 1
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x150]
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 0x1c]
cmp byte [eax], 0
je 0x407ab0
lea ecx, [esp + 0x4c]
push 0x100
push ecx
push eax
call fcn.0040b140
test al, al
je 0x407a9f
lea edx, [esp + 0x4c]
mov dword [esp + 0x38], edx
jmp 0x407aa6
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
or al, 1
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
setne bl
push edi
call fcn.00422f50
test bl, bl
je 0x407c10
mov eax, dword [esi + 0x20]
cmp eax, 4
je 0x407adb
cmp eax, 6
jne 0x407b51
mov edx, dword [esi + 0x18]
xor bl, bl
push edx
mov dword [esp + 0x10], 0x4354f0
call fcn.00423080
add esp, 4
mov edi, eax
lea eax, [esp + 0xc]
push eax
push 0
push edi
call fcn.0040f220
test eax, eax
je 0x407b43
mov edx, dword [esi + 0x20]
xor ecx, ecx
cmp edx, 6
jne 0x407b13
mov ecx, 1
mov dl, byte [0x442238]
inc dl
mov byte [0x442238], dl
mov edx, dword [esp + 0xc]
push edx
push eax
mov eax, dword [esp + 0x158]
push ecx
push eax
call fcn.004016c0
mov bl, al
mov al, byte [0x442238]
dec al
mov byte [0x442238], al
push edi
call fcn.00422f50
test bl, bl
je 0x407c10
cmp dword [esi + 0x20], 3
jne 0x407b9e
mov edi, dword [esi + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
inc edi
push edi
call fcn.00422aa0
mov ebx, eax
test ebx, ebx
je 0x407b9e
mov ecx, dword [esi + 0x18]
push 0
push 0
push edi
push ebx
push 0
push ecx
call fcn.00424290
test al, al
je 0x407b98
mov edx, dword [esp + 0x150]
push 0
push ebx
push edx
call fcn.00401100
push ebx
call fcn.00422f50
mov eax, dword [esi + 0x20]
cmp eax, 1
je 0x407bb0
cmp eax, 2
je 0x407bb0
cmp eax, 6
jne 0x407bc6
mov edi, dword [esp + 0x150]
push 0
push 0
push 0x10
push edi
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x407bcd
mov edi, dword [esp + 0x150]
cmp dword [esi + 0x20], 5
jne 0x407bdc
push 6
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x20], 7
jne 0x407be7
call fcn.00405a20
cmp dword [esi + 0x20], 8
jne 0x407bf2
call fcn.00405aa0
cmp dword [esi + 0x20], 9
jne 0x407c02
mov eax, dword [esi + 0x18]
push eax
push edi
call fcn.0040b660
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x140
ret 8
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x140
ret 8