Function at 0x406e40
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]
test eax, eax
je 0x4070a0
push esi
call fcn.00406ac0
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 0x4070a0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x406e99
cmp eax, 1
jne 0x406fa0
mov ecx, dword [esi + 0x18]
xor bl, bl
push ecx
mov dword [esp + 0x10], 0x4334b8
call fcn.00421040
add esp, 4
lea edx, [esp + 0xc]
mov edi, eax
push edx
push 0
push edi
call fcn.0040dd60
test eax, eax
je 0x406f92
mov cl, byte [eax]
mov dl, 0x5c
cmp cl, dl
jne 0x406f11
cmp byte [eax + 1], dl
jne 0x406f11
cmp byte [eax + 2], 0x3f
jne 0x406f0a
cmp byte [eax + 3], dl
jne 0x406f11
mov cl, byte [eax + 4]
cmp cl, 0x55
je 0x406eeb
cmp cl, 0x75
jne 0x406f11
mov cl, byte [eax + 5]
cmp cl, 0x4e
je 0x406ef8
cmp cl, 0x6e
jne 0x406f11
mov cl, byte [eax + 6]
cmp cl, 0x43
je 0x406f05
cmp cl, 0x63
jne 0x406f11
cmp byte [eax + 7], dl
jne 0x406f11
mov ecx, 1
jmp 0x406f13
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 0x406f82
lea ecx, [esp + 0x4c]
push 0x100
push ecx
push eax
call fcn.0040a380
test al, al
je 0x406f71
lea edx, [esp + 0x4c]
mov dword [esp + 0x38], edx
jmp 0x406f78
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.00420f10
test bl, bl
je 0x4070a0
mov eax, dword [esi + 0x20]
cmp eax, 4
je 0x406fad
cmp eax, 6
jne 0x407009
mov edx, dword [esi + 0x18]
xor bl, bl
push edx
mov dword [esp + 0x10], 0x4334b8
call fcn.00421040
add esp, 4
mov edi, eax
lea eax, [esp + 0xc]
push eax
push 0
push edi
call fcn.0040dd60
test eax, eax
je 0x406ffb
mov edx, dword [esi + 0x20]
xor ecx, ecx
cmp edx, 6
jne 0x406fe5
mov ecx, 1
mov edx, dword [esp + 0xc]
push edx
push eax
mov eax, dword [esp + 0x158]
push ecx
push eax
call fcn.00401230
mov bl, al
push edi
call fcn.00420f10
test bl, bl
je 0x4070a0
cmp dword [esi + 0x20], 3
jne 0x407056
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.00420a60
mov ebx, eax
test ebx, ebx
je 0x407056
mov ecx, dword [esi + 0x18]
push 0
push 0
push edi
push ebx
push 0
push ecx
call fcn.00422250
test al, al
je 0x407050
mov edx, dword [esp + 0x150]
push 0
push ebx
push edx
call fcn.00401100
push ebx
call fcn.00420f10
mov eax, dword [esi + 0x20]
cmp eax, 1
je 0x407068
cmp eax, 2
je 0x407068
cmp eax, 6
jne 0x40707c
mov eax, dword [esp + 0x150]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [esi + 0x20], 5
jne 0x407092
mov ecx, dword [esp + 0x150]
push 6
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
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