Function at 0x406510
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 0x406754
push esi
call fcn.00406160
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 0x406754
mov eax, dword [esi + 0x20]
test eax, eax
je 0x406569
cmp eax, 1
jne 0x406670
mov ecx, dword [esi + 0x18]
xor bl, bl
push ecx
mov dword [esp + 0x10], 0x42f520
call fcn.0041d260
add esp, 4
lea edx, [esp + 0xc]
mov edi, eax
push edx
push 0
push edi
call fcn.0040c4e0
test eax, eax
je 0x406662
mov cl, byte [eax]
mov dl, 0x5c
cmp cl, dl
jne 0x4065e1
cmp byte [eax + 1], dl
jne 0x4065e1
cmp byte [eax + 2], 0x3f
jne 0x4065da
cmp byte [eax + 3], dl
jne 0x4065e1
mov cl, byte [eax + 4]
cmp cl, 0x55
je 0x4065bb
cmp cl, 0x75
jne 0x4065e1
mov cl, byte [eax + 5]
cmp cl, 0x4e
je 0x4065c8
cmp cl, 0x6e
jne 0x4065e1
mov cl, byte [eax + 6]
cmp cl, 0x43
je 0x4065d5
cmp cl, 0x63
jne 0x4065e1
cmp byte [eax + 7], dl
jne 0x4065e1
mov ecx, 1
jmp 0x4065e3
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 0x406652
lea ecx, [esp + 0x4c]
push 0x100
push ecx
push eax
call fcn.004011b0
test al, al
je 0x406641
lea edx, [esp + 0x4c]
mov dword [esp + 0x38], edx
jmp 0x406648
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.0041d130
test bl, bl
je 0x406754
cmp dword [esi + 0x20], 4
jne 0x4066c2
mov edx, dword [esi + 0x18]
xor bl, bl
push edx
mov dword [esp + 0x10], 0x42f520
call fcn.0041d260
add esp, 4
mov edi, eax
lea eax, [esp + 0xc]
push eax
push 0
push edi
call fcn.0040c4e0
test eax, eax
je 0x4066b4
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x150]
push ecx
push eax
push edx
call fcn.00401210
mov bl, al
push edi
call fcn.0041d130
test bl, bl
je 0x406754
cmp dword [esi + 0x20], 3
jne 0x40670f
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.0041cc80
mov ebx, eax
test ebx, ebx
je 0x40670f
mov eax, dword [esi + 0x18]
push 0
push 0
push edi
push ebx
push 0
push eax
call fcn.0041e470
test al, al
je 0x406709
mov ecx, dword [esp + 0x150]
push 0
push ebx
push ecx
call fcn.00401100
push ebx
call fcn.0041d130
mov eax, dword [esi + 0x20]
cmp eax, 1
je 0x40671c
cmp eax, 2
jne 0x406730
mov edx, dword [esp + 0x150]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [esi + 0x20], 5
jne 0x406746
mov eax, dword [esp + 0x150]
push 6
push eax
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