Function at 0x407f60
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 [0x44b2c0]
test cl, cl
mov dword [esp + 0x10], eax
ja 0x40838f
test eax, eax
je 0x40838f
push edi
call fcn.004078d0
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 0x40838f
mov eax, dword [ebp + 0x20]
cmp eax, 1
je 0x408078
cmp eax, 2
je 0x408078
cmp eax, 6
je 0x408078
mov byte [esp + 0xb], 0
xor al, al
push ebx
push esi
push eax
push 1
call fcn.0040a150
mov eax, dword [ebp + 0x20]
add esp, 8
test eax, eax
mov esi, 0x43e498
je 0x408004
cmp eax, 1
jne 0x408120
mov ecx, dword [ebp + 0x18]
xor bl, bl
push ecx
mov dword [esp + 0x18], esi
call fcn.00426790
add esp, 4
lea edx, [esp + 0x14]
mov edi, eax
push edx
push 0
push edi
call fcn.00411630
test eax, eax
je 0x408112
mov cl, byte [eax]
mov dl, 0x5c
cmp cl, dl
jne 0x408091
cmp byte [eax + 1], dl
jne 0x408091
cmp byte [eax + 2], 0x3f
jne 0x408071
cmp byte [eax + 3], dl
jne 0x408091
mov cl, byte [eax + 4]
cmp cl, 0x55
je 0x408052
cmp cl, 0x75
jne 0x408091
mov cl, byte [eax + 5]
cmp cl, 0x4e
je 0x40805f
cmp cl, 0x6e
jne 0x408091
mov cl, byte [eax + 6]
cmp cl, 0x43
je 0x40806c
cmp cl, 0x63
jne 0x408091
cmp byte [eax + 7], dl
jne 0x408091
mov ecx, 1
jmp 0x408093
mov byte [esp + 0xb], 1
call fcn.0040a310
test al, al
je 0x407fe0
mov al, 1
jmp 0x407fe2
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 0x408102
lea ecx, [esp + 0x58]
push 0x100
push ecx
push eax
call fcn.0040d690
test al, al
je 0x4080f1
lea edx, [esp + 0x58]
mov dword [esp + 0x44], edx
jmp 0x4080f8
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.00426640
test bl, bl
jne 0x408120
mov byte [esp + 0x13], bl
mov eax, dword [ebp + 0x20]
cmp eax, 4
je 0x40812d
cmp eax, 6
jne 0x40819f
mov edx, dword [ebp + 0x18]
xor bl, bl
push edx
mov dword [esp + 0x18], esi
call fcn.00426790
add esp, 4
mov edi, eax
lea eax, [esp + 0x14]
push eax
push 0
push edi
call fcn.00411630
test eax, eax
je 0x408191
mov edx, dword [ebp + 0x20]
xor ecx, ecx
cmp edx, 6
jne 0x408161
mov ecx, 1
mov dl, byte [0x44b2c0]
inc dl
mov byte [0x44b2c0], 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 [0x44b2c0]
dec al
mov byte [0x44b2c0], al
push edi
call fcn.00426640
test bl, bl
jne 0x40819f
mov byte [esp + 0x13], bl
cmp dword [ebp + 0x20], 3
jne 0x4081ec
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.00426170
mov edi, eax
test edi, edi
je 0x4081ec
mov ecx, dword [ebp + 0x18]
push 0
push 0
push esi
push edi
push 0
push ecx
call fcn.004279f0
test al, al
je 0x4081e6
mov edx, dword [esp + 0x15c]
push 0
push edi
push edx
call fcn.00401100
push edi
call fcn.00426640
mov al, byte [esp + 0x13]
test al, al
je 0x408208
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 0x40821e
mov ecx, dword [esp + 0x15c]
push 6
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0x20], 7
jne 0x408229
call fcn.004058e0
cmp dword [ebp + 0x20], 8
jne 0x408234
call fcn.00405960
mov eax, dword [ebp + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [esp + 0x18]
cmp eax, 0xb
jne 0x408262
push 0
push 0
push 0xf0
push edi
call esi
test eax, eax
jne 0x40825d
call fcn.004058e0
jmp 0x408262
call fcn.00405960
cmp dword [ebp + 0x20], 0xc
jne 0x408285
push 0
push 0
push 0xf0
push edi
call esi
test eax, eax
jne 0x40827b
push eax
jmp 0x40827d
push 1
call fcn.0040a2a0
add esp, 4
mov eax, dword [ebp + 0x20]
cmp eax, 0xb
je 0x408292
cmp eax, 0xc
jne 0x4082b2
push 0
push 0
push 0xf0
push edi
call esi
test eax, eax
push 0
jne 0x4082a8
push 1
jmp 0x4082aa
push 0
push 0xf1
push edi
call esi
cmp dword [ebp + 0x20], 0xd
jne 0x40831b
push 0
push 0
push 0xf0
push edi
call esi
mov ebx, eax
push 0
test ebx, ebx
jne 0x4082d0
push 1
jmp 0x4082d2
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.00408850
sub eax, 0
je 0x40830d
dec eax
jne 0x408322
push 0
push 1
push 0xf1
push edi
call esi
jmp 0x408322
push 0
push 0
push 0xf1
push edi
call esi
jmp 0x408322
mov ebx, dword [esp + 0x15c]
cmp dword [ebp + 0x20], 0xe
jne 0x40836a
push 0
push 0
push 0xf0
push edi
call esi
test eax, eax
push 0
jne 0x408352
push 1
push 0xf1
push edi
call esi
mov edx, dword [ebp + 0x18]
push 1
push edx
push ebx
call fcn.00407d80
jmp 0x408370
push 0
push 0xf1
push edi
call esi
mov eax, dword [ebp + 0x18]
push 0
push eax
push ebx
call fcn.00407d80
jmp 0x408370
push ebx
call fcn.004083a0
cmp dword [ebp + 0x20], 9
jne 0x408380
mov ecx, dword [ebp + 0x18]
push ecx
push ebx
call fcn.0040dbc0
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