Function at 0x4017a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
push edi
mov ecx, 0x42560c
mov byte [0x4269fc], 1
call fcn.004051a0
test eax, eax
jne 0x4017e7
mov eax, dword [0x425608]
mov ecx, dword [eax + 4]
add ecx, 0x425608
mov eax, dword [ecx + 0xc]
xor edi, edi
or eax, 2
cmp dword [ecx + 0x38], edi
jne 0x4017df
or eax, 4
push edi
call fcn.00401540
jmp 0x40180c
mov ecx, dword [0x425608]
mov ecx, dword [ecx + 4]
add ecx, 0x425608
mov eax, dword [ecx + 0x38]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
push 0
call fcn.00401540
xor edi, edi
push str.keyboardhook_start_
push ecx
push 0x4200e4
push ecx
push 0x5f
push ecx
push 0x4200e8
push 0x425608
call fcn.00407c30
add esp, 0xc
push eax
call fcn.00403670
add esp, 4
push eax
call fcn.00407c30
add esp, 0xc
push eax
call fcn.00407c30
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403bf0
mov edx, dword [esi]
mov eax, dword [edx + 4]
xor ebx, ebx
test byte [eax + esi + 0xc], 6
jne 0x401878
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x401878
mov ebx, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp ebx, edi
je 0x401896
mov eax, dword [ecx + 0xc]
or eax, ebx
cmp dword [ecx + 0x38], edi
jne 0x401890
or eax, 4
push edi
call fcn.00401540
mov esi, dword [ebp + 8]
push 0x7f00
push edi
mov dword [esp + 0x30], 0x30
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], 0x401d90
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edi
call dword [sym.imp.USER32.dll_LoadCursorW]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 6
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], str.keyboardHook_PSCP_className
mov dword [esp + 0x58], edi
call dword [sym.imp.USER32.dll_RegisterClassExW]
push edi
push esi
push edi
push edi
push 0x64
push 0x64
push 0x64
push 0x64
push edi
push str.keyboardHook_PSCP_windowTitle
push str.keyboardHook_PSCP_className
push edi
mov dword [0x4269ec], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x4269f0], eax
cmp eax, edi
je 0x401a38
mov ecx, dword [ebp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x4269f0]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
push edi
push edi
push edi
push 0x402060
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
call fcn.00403140
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea eax, [esp + 0x18]
push eax
call esi
test eax, eax
je 0x4019a1
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x401980
lea ecx, [esp + 0xc]
push ecx
call ebx
lea edx, [esp + 0xc]
push edx
call edi
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call esi
test eax, eax
jne 0x401980
xor edi, edi
push str.keyboardhook_end_
push ecx
push 0x4200e4
push ecx
push 0x76
push ecx
push 0x4200e8
push 0x425608
call fcn.00407c30
add esp, 0xc
push eax
call fcn.00403670
add esp, 4
push eax
call fcn.00407c30
add esp, 0xc
push eax
call fcn.00407c30
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403bf0
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor ebx, ebx
test byte [eax + esi + 0xc], 6
jne 0x401a0d
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x401a0d
mov ebx, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp ebx, edi
je 0x401a2b
mov eax, dword [ecx + 0xc]
or eax, ebx
cmp dword [ecx + 0x38], edi
jne 0x401a25
or eax, 4
push edi
call fcn.00401540
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10