Function at 0x401790
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
push edi
mov ecx, 0x42460c
mov byte [0x4259f8], 1
call fcn.00404680
test eax, eax
jne 0x4017d7
mov eax, dword [0x424608]
mov ecx, dword [eax + 4]
add ecx, 0x424608
mov eax, dword [ecx + 0xc]
xor edi, edi
or eax, 2
cmp dword [ecx + 0x38], edi
jne 0x4017cf
or eax, 4
push edi
call fcn.00401530
jmp 0x4017fc
mov ecx, dword [0x424608]
mov ecx, dword [ecx + 4]
add ecx, 0x424608
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 0x4200a4
push ecx
push 0x7c
push ecx
push 0x4200a8
push 0x424608
call fcn.00406f50
add esp, 0xc
push eax
call fcn.00402c80
add esp, 4
push eax
call fcn.00406f50
add esp, 0xc
push eax
call fcn.00406f50
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403200
mov edx, dword [esi]
mov eax, dword [edx + 4]
xor ebx, ebx
test byte [eax + esi + 0xc], 6
jne 0x401868
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x401868
mov ebx, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp ebx, edi
je 0x401886
mov eax, dword [ecx + 0xc]
or eax, ebx
cmp dword [ecx + 0x38], edi
jne 0x401880
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], 0x401be0
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 [0x4259ec], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x4259f0], eax
cmp eax, edi
je 0x401a22
push edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4259f0]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push edi
push edi
push edi
push 0x401fe0
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.004026e0
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea ecx, [esp + 0x18]
push ecx
call esi
test eax, eax
je 0x401988
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
lea edx, [esp + 0xc]
push edx
call ebx
lea eax, [esp + 0xc]
push eax
call edi
push 0
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
call esi
test eax, eax
jne 0x401967
xor edi, edi
push str.keyboardhook_end_
push ecx
push 0x4200a4
push ecx
push 0x93
push ecx
push 0x4200a8
push 0x424608
call fcn.00406f50
add esp, 0xc
push eax
call fcn.00402c80
add esp, 4
push eax
call fcn.00406f50
add esp, 0xc
push eax
call fcn.00406f50
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403200
mov edx, dword [esi]
mov eax, dword [edx + 4]
xor ebx, ebx
test byte [eax + esi + 0xc], 6
jne 0x4019f7
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x4019f7
mov ebx, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp ebx, edi
je 0x401a15
mov eax, dword [ecx + 0xc]
or eax, ebx
cmp dword [ecx + 0x38], edi
jne 0x401a0f
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