Function at 0x407ca0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x148
mov eax, dword [esp + 0x14c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x15c]
push edi
push esi
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
mov al, byte [0x444250]
test al, al
mov dword [esp + 0x18], ebx
ja 0x408021
test ebx, ebx
je 0x408021
push esi
call fcn.004078a0
mov esi, eax
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], 0x3c
test esi, esi
rep stosd dword es:[edi], eax
je 0x408021
mov eax, dword [esi + 0x20]
cmp eax, 1
je 0x407db9
cmp eax, 2
je 0x407db9
cmp eax, 6
je 0x407db9
mov byte [esp + 0x13], 0
xor al, al
push eax
push 1
call fcn.00408c20
mov eax, dword [esi + 0x20]
add esp, 8
test eax, eax
mov ebp, 0x437500
je 0x407d45
cmp eax, 1
jne 0x407e65
mov ecx, dword [esi + 0x18]
xor bl, bl
push ecx
mov dword [esp + 0x18], ebp
call fcn.00424d50
add esp, 4
lea edx, [esp + 0x14]
mov edi, eax
push edx
push 0
push edi
call fcn.0040fcd0
test eax, eax
je 0x407e53
mov cl, byte [eax]
mov dl, 0x5c
cmp cl, dl
jne 0x407dd2
cmp byte [eax + 1], dl
jne 0x407dd2
cmp byte [eax + 2], 0x3f
jne 0x407db2
cmp byte [eax + 3], dl
jne 0x407dd2
mov cl, byte [eax + 4]
cmp cl, 0x55
je 0x407d93
cmp cl, 0x75
jne 0x407dd2
mov cl, byte [eax + 5]
cmp cl, 0x4e
je 0x407da0
cmp cl, 0x6e
jne 0x407dd2
mov cl, byte [eax + 6]
cmp cl, 0x43
je 0x407dad
cmp cl, 0x63
jne 0x407dd2
cmp byte [eax + 7], dl
jne 0x407dd2
mov ecx, 1
jmp 0x407dd4
mov byte [esp + 0x13], 1
call fcn.00408de0
test al, al
je 0x407d23
mov al, 1
jmp 0x407d25
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 [esi + 0x1c]
cmp byte [eax], 0
je 0x407e43
lea ecx, [esp + 0x58]
push 0x100
push ecx
push eax
call fcn.0040bb40
test al, al
je 0x407e32
lea edx, [esp + 0x58]
mov dword [esp + 0x44], edx
jmp 0x407e39
mov eax, dword [esi + 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.00424c20
test bl, bl
je 0x408021
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x20]
cmp eax, 4
je 0x407e72
cmp eax, 6
jne 0x407ee8
mov edx, dword [esi + 0x18]
xor bl, bl
push edx
mov dword [esp + 0x18], ebp
call fcn.00424d50
add esp, 4
mov edi, eax
lea eax, [esp + 0x14]
push eax
push 0
push edi
call fcn.0040fcd0
test eax, eax
je 0x407ed6
mov edx, dword [esi + 0x20]
xor ecx, ecx
cmp edx, 6
jne 0x407ea6
mov ecx, 1
mov dl, byte [0x444250]
inc dl
mov byte [0x444250], dl
mov edx, dword [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x164]
push ecx
push eax
call fcn.00401710
mov bl, al
mov al, byte [0x444250]
dec al
mov byte [0x444250], al
push edi
call fcn.00424c20
test bl, bl
je 0x408021
mov ebx, dword [esp + 0x18]
cmp dword [esi + 0x20], 3
jne 0x407f39
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.00424750
mov ebp, eax
test ebp, ebp
je 0x407f35
mov ecx, dword [esi + 0x18]
push 0
push 0
push edi
push ebp
push 0
push ecx
call fcn.00426070
test al, al
je 0x407f2f
mov edx, dword [esp + 0x15c]
push 0
push ebp
push edx
call fcn.00401100
push ebp
call fcn.00424c20
mov ebx, dword [esp + 0x18]
mov al, byte [esp + 0x13]
mov ebp, dword [esp + 0x15c]
test al, al
je 0x407f55
push 0
push 0
push 0x10
push ebp
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [esi + 0x20], 5
jne 0x407f64
push 6
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x20], 7
jne 0x407f6f
call fcn.00405c60
cmp dword [esi + 0x20], 8
jne 0x407f7a
call fcn.00405ce0
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xb
jne 0x407fa4
push 0
push 0
push 0xf0
push ebx
call edi
test eax, eax
jne 0x407f9f
call fcn.00405c60
jmp 0x407fa4
call fcn.00405ce0
cmp dword [esi + 0x20], 0xc
jne 0x407fc7
push 0
push 0
push 0xf0
push ebx
call edi
test eax, eax
jne 0x407fbd
push eax
jmp 0x407fbf
push 1
call fcn.00408d70
add esp, 4
mov eax, dword [esi + 0x20]
cmp eax, 0xb
je 0x407fd4
cmp eax, 0xc
jne 0x407ff4
push 0
push 0
push 0xf0
push ebx
call edi
test eax, eax
push 0
jne 0x407fea
push 1
jmp 0x407fec
push 0
push 0xf1
push ebx
call edi
cmp dword [esi + 0x20], 9
jne 0x408004
mov eax, dword [esi + 0x18]
push eax
push ebp
call fcn.0040c050
cmp dword [esi + 0x20], 0xa
jne 0x408012
push 1
push ebp
call fcn.00402130
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x148
ret 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x148
ret 8