Function at 0x412ab0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax]
xor ebx, ebx
push ebx
call edx
test al, al
jne 0x412ad2
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push edi
cmp byte [esi + 4], bl
je 0x412e77
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x412e77
cmp dword [ebp + 0xc], ebx
je 0x412e77
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp + 0xc], eax
je 0x412e77
mov eax, dword [esi + 8]
cmp edi, eax
je 0x412e65
cmp edi, dword [esi + 0xc]
je 0x412e65
push 0x22c
lea ecx, [ebp - 0x458]
xor eax, eax
push ebx
push ecx
mov byte [ebp + 0xb], bl
mov byte [ebp - 2], bl
mov dword [ebp - 0xc], ebx
mov word [ebp - 0x22c], ax
call fcn.004c9b50
mov al, byte [ebp + 0x10]
add esp, 0xc
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], ebx
test al, al
je 0x412b56
cmp edi, dword [esi + 0x10]
je 0x412e59
mov dword [esi + 0x10], edi
test al, al
je 0x412bc4
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
push 0xc
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
call fcn.0044c4d0
add esp, 4
cmp eax, ebx
je 0x412e59
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x14]
push edx
push ebx
push eax
push 0x408ab0
push ebx
push ebx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 0x10], eax
cmp eax, ebx
je 0x412bb4
lea eax, [ebp + 0x10]
push eax
lea ecx, [esi + 0x14]
call fcn.004bad50
mov eax, dword [ebp + 0x10]
cmp eax, ebx
pop edi
setne byte [ebp + 0xb]
mov al, byte [ebp + 0xb]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x24]
push ecx
push 0x2ee
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x412bf4
cmp dword [esi + 0x10], edi
jne 0x412e59
mov al, byte [ebp + 0xb]
pop edi
mov dword [esi + 0x10], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
mov ecx, esi
call fcn.0040d420
push 0x104
lea edx, [ebp - 0x22c]
push edx
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x412cab
push str.Shell_TrayWnd
lea eax, [ebp - 0x22c]
push eax
call ebx
push str.CabinetWClass
lea ecx, [ebp - 0x22c]
test eax, eax
push ecx
sete byte [ebp + 0x13]
call ebx
test eax, eax
je 0x412c5b
push str.ExploreWClass
lea edx, [ebp - 0x22c]
push edx
call ebx
push str.VirtualConsoleClass
lea eax, [ebp - 0x22c]
push eax
call ebx
test eax, eax
je 0x412ca3
cmp byte [ebp + 0x14], 0
jne 0x412c79
cmp byte [esi + 0x5c], 0
jne 0x412c7f
cmp byte [ebp + 0x13], 0
jne 0x412ca3
push str.ConsoleWindowClass
lea ecx, [ebp - 0x22c]
push ecx
call ebx
test eax, eax
je 0x412ca3
push str.WineConsoleClass
lea edx, [ebp - 0x22c]
push edx
call ebx
test eax, eax
jne 0x412cab
mov dword [esi + 0xc], edi
jmp 0x412e3c
lea eax, [ebp - 0x22c]
push eax
mov ecx, esi
call fcn.00408b00
test al, al
jne 0x412d2b
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x458]
push ecx
push edx
call fcn.004c61f0
add esp, 8
test al, al
jne 0x412cdc
mov dword [esi + 0xc], edi
jmp 0x412e3c
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea ecx, [ebp - 0x434]
push ecx
call dword [sym.imp.USER32.dll_CharLowerBuffW]
push str.csrss.exe
lea edx, [ebp - 0x434]
push edx
call ebx
test eax, eax
jne 0x412d11
mov dword [esi + 0xc], edi
jmp 0x412e3c
lea eax, [ebp - 0x434]
push eax
mov ecx, esi
call fcn.00408b00
test al, al
jne 0x412d2b
mov dword [esi + 0xc], edi
jmp 0x412e3c
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x412d51
mov ebx, dword [esi + 0x38]
mov edx, ecx
shl edx, 4
lea edx, [edx + ebx + 8]
mov edi, edi
mov ebx, dword [ebp + 0xc]
sub edx, 0x10
dec ecx
cmp dword [edx], ebx
je 0x412d58
test ecx, ecx
jne 0x412d40
jmp 0x412d54
mov ebx, dword [ebp + 0xc]
test al, al
jne 0x412d60
mov dword [esi + 8], edi
jmp 0x412e38
cmp word [ebp - 0x434], 0
lea eax, [ebp - 0x434]
jne 0x412d76
lea eax, [ebp - 0x22c]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x20]
push ebx
mov ecx, esi
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
mov byte [ebp - 1], al
lea eax, [ebp - 2]
push eax
push 1
mov ecx, esi
call edx
mov ecx, dword [esi + 0x7c]
lea eax, [ebp - 0x10]
push eax
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 8]
push eax
push ebx
call fcn.004088d0
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
add esp, 0x14
mov ebx, eax
lea eax, [ebp - 2]
push eax
push 0
mov ecx, esi
call edx
test ebx, ebx
je 0x412de3
mov dword [esi + 0xc], edi
cmp ebx, 0xfffffffd
jne 0x412e3c
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 0
push 0
push 0
push ecx
push str.Failed_to_start_hooking_application__nDefault_terminal_feature_will_not_be_available_
mov ecx, esi
call edx
jmp 0x412e3c
mov eax, dword [ebp - 0xc]
cmp eax, 0x81
je 0x412e03
cmp eax, 0x90
je 0x412e03
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], edi
jmp 0x412e3c
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [esi + 8], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x28]
call fcn.004127a0
mov byte [ebp + 0xb], 1
lea eax, [esi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 1], 0
je 0x412e59
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
push 0
push 0
mov ecx, esi
call eax
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor ecx, ecx
cmp edi, eax
pop edi
sete cl
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10