Function at 0x406c10
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 0x406e70
push esi
call fcn.00406890
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 0x406e70
mov eax, dword [esi + 0x20]
test eax, eax
je 0x406c69
cmp eax, 1
jne 0x406d70
mov ecx, dword [esi + 0x18]
xor bl, bl
push ecx
mov dword [esp + 0x10], 0x4304a8
call fcn.0041e0e0
add esp, 4
lea edx, [esp + 0xc]
mov edi, eax
push edx
push 0
push edi
call fcn.0040d160
test eax, eax
je 0x406d62
mov cl, byte [eax]
mov dl, 0x5c
cmp cl, dl
jne 0x406ce1
cmp byte [eax + 1], dl
jne 0x406ce1
cmp byte [eax + 2], 0x3f
jne 0x406cda
cmp byte [eax + 3], dl
jne 0x406ce1
mov cl, byte [eax + 4]
cmp cl, 0x55
je 0x406cbb
cmp cl, 0x75
jne 0x406ce1
mov cl, byte [eax + 5]
cmp cl, 0x4e
je 0x406cc8
cmp cl, 0x6e
jne 0x406ce1
mov cl, byte [eax + 6]
cmp cl, 0x43
je 0x406cd5
cmp cl, 0x63
jne 0x406ce1
cmp byte [eax + 7], dl
jne 0x406ce1
mov ecx, 1
jmp 0x406ce3
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 0x406d52
lea ecx, [esp + 0x4c]
push 0x100
push ecx
push eax
call fcn.004099c0
test al, al
je 0x406d41
lea edx, [esp + 0x4c]
mov dword [esp + 0x38], edx
jmp 0x406d48
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.0041dfb0
test bl, bl
je 0x406e70
mov eax, dword [esi + 0x20]
cmp eax, 4
je 0x406d7d
cmp eax, 6
jne 0x406dd9
mov edx, dword [esi + 0x18]
xor bl, bl
push edx
mov dword [esp + 0x10], 0x4304a8
call fcn.0041e0e0
add esp, 4
mov edi, eax
lea eax, [esp + 0xc]
push eax
push 0
push edi
call fcn.0040d160
test eax, eax
je 0x406dcb
mov edx, dword [esi + 0x20]
xor ecx, ecx
cmp edx, 6
jne 0x406db5
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.0041dfb0
test bl, bl
je 0x406e70
cmp dword [esi + 0x20], 3
jne 0x406e26
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.0041db00
mov ebx, eax
test ebx, ebx
je 0x406e26
mov ecx, dword [esi + 0x18]
push 0
push 0
push edi
push ebx
push 0
push ecx
call fcn.0041f2f0
test al, al
je 0x406e20
mov edx, dword [esp + 0x150]
push 0
push ebx
push edx
call fcn.00401100
push ebx
call fcn.0041dfb0
mov eax, dword [esi + 0x20]
cmp eax, 1
je 0x406e38
cmp eax, 2
je 0x406e38
cmp eax, 6
jne 0x406e4c
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 0x406e62
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