Function at 0x401760
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
push edi
mov ecx, 0x42360c
mov byte [0x4249f8], 1
call fcn.00404290
test eax, eax
jne 0x4017a7
mov eax, dword [0x423608]
mov ecx, dword [eax + 4]
add ecx, 0x423608
mov eax, dword [ecx + 0xc]
xor edi, edi
or eax, 2
cmp dword [ecx + 0x38], edi
jne 0x40179f
or eax, 4
push edi
call fcn.00401530
jmp 0x4017cc
mov ecx, dword [0x423608]
mov ecx, dword [ecx + 4]
add ecx, 0x423608
mov eax, dword [ecx + 0x38]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
push 0
call fcn.00401530
xor edi, edi
push str.keyboardhook_start_
push ecx
push 0x41f0a4
push ecx
push 0x7c
push ecx
push 0x41f0a8
push 0x423608
call fcn.004067f0
add esp, 0xc
push eax
call fcn.00402970
add esp, 4
push eax
call fcn.004067f0
add esp, 0xc
push eax
call fcn.004067f0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00402ef0
mov edx, dword [esi]
mov eax, dword [edx + 4]
xor ebx, ebx
test byte [eax + esi + 0xc], 6
jne 0x401838
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x401838
mov ebx, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp ebx, edi
je 0x401856
mov eax, dword [ecx + 0xc]
or eax, ebx
cmp dword [ecx + 0x38], edi
jne 0x401850
or eax, 4
push edi
call fcn.00401530
mov esi, dword [ebp + 8]
push 0x7f00
push edi
mov dword [esp + 0x30], 0x30
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], 0x401bc0
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_UT60_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_UT60_windowTitle
push str.keyboardHook_UT60_className
push edi
mov dword [0x4249ec], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x4249f0], eax
cmp eax, edi
je 0x4019fb
mov ecx, dword [ebp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x4249f0]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
push edi
push edi
push edi
push 0x401ea0
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.004023d0
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 0x401961
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x401940
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 0x401940
xor edi, edi
push str.keyboardhook_end_
push ecx
push 0x41f0a4
push ecx
push 0x93
push ecx
push 0x41f0a8
push 0x423608
call fcn.004067f0
add esp, 0xc
push eax
call fcn.00402970
add esp, 4
push eax
call fcn.004067f0
add esp, 0xc
push eax
call fcn.004067f0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00402ef0
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor ebx, ebx
test byte [eax + esi + 0xc], 6
jne 0x4019d0
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x4019d0
mov ebx, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp ebx, edi
je 0x4019ee
mov eax, dword [ecx + 0xc]
or eax, ebx
cmp dword [ecx + 0x38], edi
jne 0x4019e8
or eax, 4
push edi
call fcn.00401530
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