Function at 0x40b4e0
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x426221
mov eax, dword fs:[0]
push eax
sub esp, 0x304
mov eax, dword [0x434020]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x434020]
xor eax, esp
push eax
lea eax, [esp + 0x318]
mov dword fs:[0], eax
mov eax, dword [esp + 0x32c]
mov ebp, dword [esp + 0x328]
mov esi, ecx
lea ecx, [esp + 0x24]
push ecx
xor ebx, ebx
push eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x2c], ebx
call sub.gdiplus.dll_GdipCreateFromHDC
mov edx, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
lea eax, [esp + 0x5c]
mov dword [esp + 0x320], ebx
push eax
push esi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x43653c]
add dword [esp + 0x64], 5
cmp eax, ebx
jne 0x40b5ef
push 0x78
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x40b5e8
xor ecx, ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax], ebx
jmp 0x40b5ea
xor eax, eax
mov dword [0x43653c], eax
mov eax, dword [eax + 0x10]
push 0x13f
lea ecx, [esp + 0x60]
push ecx
push eax
lea edx, [esp + 0x38]
push edx
call fcn.0041d720
mov eax, dword [ebp + 0x24]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0x10
push ebx
push ebx
push 0x1304
push eax
call esi
mov ecx, dword [ebp + 0x24]
push ebx
push ebx
push 0x130b
mov edi, eax
push ecx
mov dword [esp + 0x7c], edi
call esi
cmp edi, ebx
mov dword [esp + 0x70], eax
mov dword [esp + 0x28], ebx
jle 0x40bdb9
jmp 0x40b64e
mov ebp, dword [esp + 0x3c]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0x24]
lea edx, [esp + 0x104]
push edx
push eax
push 0x130a
push ecx
call esi
push 0x1fe
lea edx, [esp + 0x11a]
push ebx
push edx
mov word [esp + 0x120], bx
call sub.MSVCR80.dll_memset
mov edi, dword [esp + 0x34]
mov edx, dword [ebp + 0x24]
add esp, 0xc
lea ecx, [esp + 0xe8]
push ecx
push edi
push 0x133c
lea eax, [esp + 0x120]
push edx
mov dword [esp + 0xf8], 5
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], 0x200
call esi
test eax, eax
jne 0x40b6cc
mov word [esp + 0x114], bx
cmp edi, dword [esp + 0x70]
lea eax, [esp + 0x104]
lea esi, [esp + 0x74]
sete byte [esp + 0x1f]
call fcn.0040b1b0
lea eax, [esp + 0x24]
push eax
push 0xff151515
mov dword [esp + 0x48], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x2c], ebx
call sub.gdiplus.dll_GdipCreateSolidFill
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x44], eax
cmp byte [esp + 0x1f], bl
mov byte [esp + 0x320], 1
je 0x40b7bf
push 0xff151515
push eax
call sub.gdiplus.dll_GdipSetSolidFillColor
cmp eax, ebx
je 0x40b731
mov dword [esp + 0x48], eax
mov eax, dword [0x43653c]
cmp eax, ebx
jne 0x40b7b7
push 0x78
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x40b7b0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax], ebx
mov dword [0x43653c], eax
mov eax, dword [eax + 0x18]
jmp 0x40b850
xor eax, eax
mov dword [0x43653c], eax
mov eax, dword [eax + 0x18]
jmp 0x40b850
push 0xff3e4149
push eax
call sub.gdiplus.dll_GdipSetSolidFillColor
cmp eax, ebx
je 0x40b7d2
mov dword [esp + 0x48], eax
mov eax, dword [0x43653c]
cmp eax, ebx
jne 0x40b84d
push 0x78
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x40b846
xor ecx, ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax], ebx
jmp 0x40b848
xor eax, eax
mov dword [0x43653c], eax
mov eax, dword [eax + 0x14]
push ebx
lea ecx, [esp + 0x78]
push ecx
push eax
lea edx, [esp + 0x38]
push edx
call fcn.0041d720
add esp, 0x10
xor esi, esi
cmp dword [ebp + 0x80], 1
jne 0x40b88c
cmp edi, dword [ebp + 0x84]
jne 0x40b88c
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov si, ax
neg si
sbb esi, esi
neg esi
add esi, 1
mov eax, dword [0x43653c]
cmp eax, ebx
jne 0x40b907
push 0x78
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x40b900
xor ecx, ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax], ebx
jmp 0x40b902
xor eax, eax
mov dword [0x43653c], eax
mov ebp, dword [eax + 0x1c]
cmp ebp, ebx
je 0x40b984
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x28], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x40b927
mov dword [ebp + 8], eax
mov ecx, dword [esp + 0x20]
mov eax, 0x55555556
imul ecx
push ebx
mov edi, dword [esp + 0xa8]
mov ecx, dword [esp + 0xb0]
push ebx
push ebx
mov eax, edx
push 2
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0xc0]
sub edx, dword [esp + 0xb8]
sub ecx, edi
push edx
push eax
imul eax, esi
push ebx
push eax
mov eax, dword [ebp + 4]
push edx
mov edx, dword [esp + 0xcc]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push edi
push eax
push ecx
call sub.gdiplus.dll_GdipDrawImageRectRectI
cmp eax, ebx
je 0x40b984
mov dword [esp + 0x30], eax
lea edx, [esp + 0x34]
push edx
push ebx
push ebx
mov dword [esp + 0x40], ebx
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esp + 0x38], eax
mov byte [esp + 0x320], 2
mov eax, dword [esp + 0x34]
push ebx
push eax
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, ebx
je 0x40b9b3
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x34]
push 3
push ecx
call sub.gdiplus.dll_GdipSetStringFormatTrimming
cmp eax, ebx
je 0x40b9c7
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x34]
push 0x1000
push edx
call sub.gdiplus.dll_GdipSetStringFormatFlags
cmp eax, ebx
je 0x40b9de
mov dword [esp + 0x38], eax
mov eax, dword [0x43653c]
cmp eax, ebx
jne 0x40ba59
push 0x78
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x40ba52
xor ecx, ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax], ebx
jmp 0x40ba54
xor eax, eax
mov dword [0x43653c], eax
mov eax, dword [eax + 4]
fild dword [esp + 0x94]
mov ecx, dword [esp + 0x9c]
sub ecx, dword [esp + 0x94]
mov edx, dword [esp + 0xa0]
fstp dword [esp + 0xb4]
fild dword [esp + 0x98]
sub edx, dword [esp + 0x98]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x40]
fstp dword [esp + 0xb8]
push ecx
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
push eax
lea edx, [esp + 0x11c]
fstp dword [esp + 0xc4]
push edx
fild dword [esp + 0x24]
lea ebx, [esp + 0x40]
lea esi, [esp + 0xc0]
lea edi, [esp + 0x38]
fstp dword [esp + 0xcc]
call fcn.0041dba0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], eax
lea eax, [esp + 0xc4]
push eax
mov eax, dword [edx + 0x24]
push ecx
push 0x133c
push eax
xor edi, edi
mov dword [esp + 0xd4], 8
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [esp + 0xe4]
cmp ebx, edi
je 0x40bd80
cmp dword [ebx + 0x54], edi
jne 0x40bc6a
mov eax, dword [0x43653c]
cmp eax, edi
mov esi, dword [ebx + 0x50]
mov dword [esp + 0x20], esi
jne 0x40bbd5
push 0x78
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, edi
je 0x40bbce
xor ecx, ecx
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax], edi
jmp 0x40bbd0
xor eax, eax
mov dword [0x43653c], eax
mov ebp, dword [eax + 0x24]
cmp ebp, edi
je 0x40bc52
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x20], edi
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, edi
je 0x40bbf5
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x88]
push 0
mov esi, dword [esp + 0x88]
mov ecx, dword [esp + 0x90]
push 0
cdq
push 0
push 2
and edx, 7
add eax, edx
mov edx, dword [esp + 0xa0]
sub edx, edi
push edx
sar eax, 3
push eax
imul eax, dword [esp + 0x38]
push 0
push eax
mov eax, dword [ebp + 4]
push edx
sub ecx, esi
push ecx
mov ecx, dword [esp + 0x54]
push edi
push esi
push eax
push ecx
call sub.gdiplus.dll_GdipDrawImageRectRectI
test eax, eax
mov esi, dword [esp + 0x20]
je 0x40bc52
mov dword [esp + 0x30], eax
add esi, 1
xor edx, edx
cmp esi, 8
setge dl
sub edx, 1
and edx, esi
mov dword [ebx + 0x50], edx
jmp 0x40bd80
mov eax, dword [ebx + 0xbc]
cmp eax, edi
jne 0x40bcf6
mov eax, dword [0x43653c]
cmp eax, edi
jne 0x40bcf3
push 0x78
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, edi
je 0x40bcec
xor ecx, ecx
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax], edi
jmp 0x40bcee
xor eax, eax
mov dword [0x43653c], eax
mov eax, dword [eax + 0x70]
fild dword [esp + 0x84]
mov ecx, dword [esp + 0x8c]
sub ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x90]
sub edx, dword [esp + 0x88]
fstp dword [esp + 0x4c]
cmp eax, edi
fild dword [esp + 0x88]
mov dword [esp + 0x18], ecx
fstp dword [esp + 0x50]
fild dword [esp + 0x18]
mov dword [esp + 0x18], edx
fstp dword [esp + 0x54]
fild dword [esp + 0x18]
fstp dword [esp + 0x58]
je 0x40bd49
mov eax, dword [eax + 4]
jmp 0x40bd4b
xor eax, eax
fld dword [esp + 0x58]
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [esp + 0x64]
fstp dword [esp + 8]
fld dword [esp + 0x60]
fstp dword [esp + 4]
fld dword [esp + 0x5c]
fstp dword [esp]
push eax
mov eax, dword [esp + 0x40]
push eax
call sub.gdiplus.dll_GdipDrawImageRect
cmp eax, edi
je 0x40bd80
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x34]
push ecx
call sub.gdiplus.dll_GdipDeleteStringFormat
mov byte [esp + 0x320], 0
mov edx, dword [esp + 0x24]
push edx
mov dword [esp + 0x44], vtable.Gdiplus::Brush.0
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [esp + 0x28]
add eax, 1
cmp eax, dword [esp + 0x6c]
mov dword [esp + 0x28], eax
jl 0x40b642
mov eax, dword [esp + 0x2c]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x318]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.00424bfa
add esp, 0x310
ret 8