Function at 0x4024c0
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
push edi
push 0x100
lea eax, [ebp - 0x154]
push 0
push eax
mov esi, ecx
mov byte [ebp - 1], 0
call fcn.004b03e0
mov ecx, dword [esi]
add esp, 0xc
push 0
push ecx
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi]
push 0x965
push edx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push 2
mov edi, eax
mov eax, dword [esi + 4]
push 0xffffffffffffffff
neg edi
push 0x100c
sbb edi, edi
push eax
neg edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
test ebx, ebx
jl 0x4026ce
mov eax, dword [esi + 4]
lea edx, [ebp - 0x54]
push edx
push ebx
push 0x1073
lea ecx, [ebp - 0x154]
push eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x3c], 0x7f
mov dword [ebp - 0x40], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xa
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x154]
push edx
call fcn.004b0706
add esp, 0xc
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4025a8
lea eax, [ebp - 0x154]
push 0x2a
push eax
call fcn.004b03ac
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4025a8
push 0xa
lea ecx, [ebp - 0x10]
push ecx
add eax, 2
push eax
call fcn.004b0706
add esp, 0xc
mov dword [ebp - 0xc], eax
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x54]
push eax
push ebx
push 0x1073
lea edx, [ebp - 0x154]
push ecx
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x3c], 0x80
mov dword [ebp - 0x40], edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x4c07bc
lea edx, [ebp - 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4025f2
mov dword [ebp - 8], 1
jmp 0x40260f
push 0x4c07c4
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40260f
mov dword [ebp - 8], 2
mov eax, dword [esi + 4]
lea edx, [ebp - 0x54]
push edx
push ebx
push 0x1073
lea ecx, [ebp - 0x154]
push eax
mov dword [ebp - 0x4c], 5
mov dword [ebp - 0x3c], 0x80
mov dword [ebp - 0x40], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp word [ebp - 0x154], 0x30
jne 0x402667
cmp word [ebp - 0x152], 0x78
jne 0x402667
push 0x10
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x150]
push edx
call fcn.004b0706
add esp, 0xc
mov ebx, eax
jmp 0x402669
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x4026ce
cmp dword [ebp - 0xc], 0
je 0x4026ce
cmp dword [ebp - 8], 0
je 0x4026ce
test ebx, ebx
je 0x4026ce
mov ecx, esi
call fcn.00401930
push 0x14
call fcn.004412a0
add esp, 4
test eax, eax
jne 0x4026d8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x154]
push str.ConEmu_Attach__PID_u__TID_u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0
lea ecx, [ebp - 0x154]
push ecx
push 0
push 8
push str.Cant_allocate_AttachParm
call fcn.004200b0
add esp, 0x24
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push eax
push 0x402470
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
push 0
push 0
mov dword [eax], ebx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x40274f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea edx, [ebp - 0x154]
push str.ConEmu_Attach__PID_u__TID_u
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
lea eax, [ebp - 0x154]
push eax
push esi
push edi
push str.Cant_start_attach_thread
call fcn.004200b0
mov bl, byte [ebp - 1]
add esp, 0x24
jmp 0x402751
mov bl, 1
test esi, esi
je 0x40275c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret