Function at 0x407e50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x148
mov eax, dword [esp + 0x14c]
push ebp
push edi
mov edi, dword [esp + 0x158]
push edi
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov cl, byte [0x44d2c0]
test cl, cl
mov dword [esp + 0x10], eax
ja 0x40828d
test eax, eax
je 0x40828d
push edi
call fcn.004077f0
mov ebp, eax
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0x3c
test ebp, ebp
rep stosd dword es:[edi], eax
je 0x40828d
mov eax, dword [ebp + 0x20]
cmp eax, 1
je 0x407f68
cmp eax, 2
je 0x407f68
cmp eax, 6
je 0x407f68
mov byte [esp + 0xb], 0
xor al, al
push ebx
push esi
push eax
push 1
call fcn.0040a050
mov eax, dword [ebp + 0x20]
add esp, 8
test eax, eax
mov esi, 0x43f4a8
je 0x407ef4
cmp eax, 1
jne 0x408010
mov ecx, dword [ebp + 0x18]
xor bl, bl
push ecx
mov dword [esp + 0x18], esi
call fcn.00427e80
add esp, 4
lea edx, [esp + 0x14]
mov edi, eax
push edx
push 0
push edi
call fcn.004119b0
test eax, eax
je 0x408002
mov cl, byte [eax]
mov dl, 0x5c
cmp cl, dl
jne 0x407f81
cmp byte [eax + 1], dl
jne 0x407f81
cmp byte [eax + 2], 0x3f
jne 0x407f61
cmp byte [eax + 3], dl
jne 0x407f81
mov cl, byte [eax + 4]
cmp cl, 0x55
je 0x407f42
cmp cl, 0x75
jne 0x407f81
mov cl, byte [eax + 5]
cmp cl, 0x4e
je 0x407f4f
cmp cl, 0x6e
jne 0x407f81
mov cl, byte [eax + 6]
cmp cl, 0x43
je 0x407f5c
cmp cl, 0x63
jne 0x407f81
cmp byte [eax + 7], dl
jne 0x407f81
mov ecx, 1
jmp 0x407f83
mov byte [esp + 0xb], 1
call fcn.0040a210
test al, al
je 0x407ed0
mov al, 1
jmp 0x407ed2
xor ecx, ecx
neg cl
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], 0
sbb ecx, ecx
mov dword [esp + 0x2c], eax
and ecx, 0x80
mov dword [esp + 0x30], edx
or ch, 4
mov dword [esp + 0x38], 1
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x15c]
mov dword [esp + 0x24], ecx
mov eax, dword [ebp + 0x1c]
cmp byte [eax], 0
je 0x407ff2
lea ecx, [esp + 0x58]
push 0x100
push ecx
push eax
call fcn.0040d610
test al, al
je 0x407fe1
lea edx, [esp + 0x58]
mov dword [esp + 0x44], edx
jmp 0x407fe8
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
or al, 1
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
setne bl
push edi
call fcn.00427d30
test bl, bl
jne 0x408010
mov byte [esp + 0x13], bl
mov eax, dword [ebp + 0x20]
cmp eax, 4
je 0x40801d
cmp eax, 6
jne 0x40808f
mov edx, dword [ebp + 0x18]
xor bl, bl
push edx
mov dword [esp + 0x18], esi
call fcn.00427e80
add esp, 4
mov edi, eax
lea eax, [esp + 0x14]
push eax
push 0
push edi
call fcn.004119b0
test eax, eax
je 0x408081
mov edx, dword [ebp + 0x20]
xor ecx, ecx
cmp edx, 6
jne 0x408051
mov ecx, 1
mov dl, byte [0x44d2c0]
inc dl
mov byte [0x44d2c0], dl
mov edx, dword [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x164]
push ecx
push eax
call fcn.00401620
mov bl, al
mov al, byte [0x44d2c0]
dec al
mov byte [0x44d2c0], al
push edi
call fcn.00427d30
test bl, bl
jne 0x40808f
mov byte [esp + 0x13], bl
cmp dword [ebp + 0x20], 3
jne 0x4080dc
mov edi, dword [ebp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
push esi
call fcn.00427860
mov edi, eax
test edi, edi
je 0x4080dc
mov ecx, dword [ebp + 0x18]
push 0
push 0
push esi
push edi
push 0
push ecx
call fcn.004291a0
test al, al
je 0x4080d6
mov edx, dword [esp + 0x15c]
push 0
push edi
push edx
call fcn.00401100
push edi
call fcn.00427d30
mov al, byte [esp + 0x13]
test al, al
je 0x4080f8
mov eax, dword [esp + 0x15c]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [ebp + 0x20], 5
jne 0x40810e
mov ecx, dword [esp + 0x15c]
push 6
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0x20], 7
jne 0x408119
call fcn.00405970
cmp dword [ebp + 0x20], 8
jne 0x408124
call fcn.004059f0
mov eax, dword [ebp + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [esp + 0x18]
cmp eax, 0xb
jne 0x408152
push 0
push 0
push 0xf0
push edi
call esi
test eax, eax
jne 0x40814d
call fcn.00405970
jmp 0x408152
call fcn.004059f0
cmp dword [ebp + 0x20], 0xc
jne 0x408175
push 0
push 0
push 0xf0
push edi
call esi
test eax, eax
jne 0x40816b
push eax
jmp 0x40816d
push 1
call fcn.0040a1a0
add esp, 4
mov eax, dword [ebp + 0x20]
cmp eax, 0xb
je 0x408182
cmp eax, 0xc
jne 0x4081a2
push 0
push 0
push 0xf0
push edi
call esi
test eax, eax
push 0
jne 0x408198
push 1
jmp 0x40819a
push 0
push 0xf1
push edi
call esi
cmp dword [ebp + 0x20], 0xd
jne 0x40820b
push 0
push 0
push 0xf0
push edi
call esi
mov ebx, eax
push 0
test ebx, ebx
jne 0x4081c0
push 1
jmp 0x4081c2
push 0
push 0xf1
push edi
call esi
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
xor edx, edx
test ebx, ebx
mov ebx, dword [esp + 0x15c]
sete dl
push edx
push eax
push ecx
push ebx
call fcn.00408750
sub eax, 0
je 0x4081fd
dec eax
jne 0x408212
push 0
push 1
push 0xf1
push edi
call esi
jmp 0x408212
push 0
push 0
push 0xf1
push edi
call esi
jmp 0x408212
mov ebx, dword [esp + 0x15c]
cmp dword [ebp + 0x20], 0xe
jne 0x40825a
push 0
push 0
push 0xf0
push edi
call esi
test eax, eax
push 0
jne 0x408242
push 1
push 0xf1
push edi
call esi
mov edx, dword [ebp + 0x18]
push 1
push edx
push ebx
call fcn.00407c70
jmp 0x408260
push 0
push 0xf1
push edi
call esi
mov eax, dword [ebp + 0x18]
push 0
push eax
push ebx
call fcn.00407c70
jmp 0x408260
push ebx
call fcn.004082a0
cmp dword [ebp + 0x20], 9
jne 0x408270
mov ecx, dword [ebp + 0x18]
push ecx
push ebx
call fcn.0040db10
cmp dword [ebp + 0x20], 0xa
jne 0x40827e
push 1
push ebx
call fcn.00401ff0
pop esi
pop ebx
pop edi
mov al, 1
pop ebp
add esp, 0x148
ret 8
pop edi
xor al, al
pop ebp
add esp, 0x148
ret 8