Function at 0x401000
Capabilities:
Get common file path
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, 0x2ce
mov word [ebp - 0x3c], ax
movzx ecx, word [ebp - 0x3c]
mov dword [ebp - 0x78], ecx
cmp dword [ebp - 0x78], 0x2ce
je 0x401052
cmp dword [ebp - 0x78], 0x7c1
je 0x401030
jmp 0x4012b0
movzx edx, word [ebp - 0x3c]
add edx, 0x2d8
mov word [ebp - 0x3c], dx
movzx eax, word [ebp - 0x3c]
push eax
movzx ecx, word [ebp - 0x3c]
push ecx
call fcn.004012d0
jmp 0x4012b0
movzx edx, word [ebp - 0x3c]
cmp edx, 0x956
jne 0x4010d9
movzx eax, word [ebp - 0x3c]
and eax, 0x96
mov word [ebp - 0x3c], ax
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov dword [ebp - 0x4c], eax
movzx edx, word [ebp - 0x3c]
mov dword [ebp - 0x7c], edx
cmp dword [ebp - 0x7c], 0x7e6
je 0x40108a
jmp 0x4010bc
movzx eax, word [ebp - 0x3c]
or eax, 0xc3f
mov word [ebp - 0x3c], ax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_RealChildWindowFromPoint]
mov dword [ebp - 0x1c], eax
movzx ecx, word [ebp - 0x3c]
xor ecx, 0xef0
mov word [ebp - 0x3c], cx
jmp 0x4010c7
movzx edx, word [ebp - 0x3c]
shl edx, 2
mov word [ebp - 0x3c], dx
call section..text
movzx eax, word [ebp - 0x3c]
sar eax, 0xd
mov word [ebp - 0x3c], ax
jmp 0x401151
movzx ecx, word [ebp - 0x3c]
sub ecx, 0x40a
cmp ecx, 0x2d
jl 0x401151
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
mov dword [ebp - 0x68], eax
push 0x1f
mov edx, 0xfd
mov ecx, 0x9a
call fcn.0056de90
movzx edx, word [ebp - 0x3c]
sub edx, 0xbfa
cmp edx, 0xfed
je 0x401151
mov dword [ebp - 0x68], 0x3428
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov dword [ebp - 0x18], eax
call fcn.004018f0
movzx edx, word [ebp - 0x3c]
add edx, 0x3e5
mov word [ebp - 0x3c], dx
call section..text
movzx eax, word [ebp - 0x3c]
and eax, 0x900
mov word [ebp - 0x3c], ax
mov cx, word [ebp - 0x3c]
mov word [ebp - 0x34], cx
mov byte [ebp - 0x4d], 0x3c
mov edx, 0xf1
mov word [ebp - 0x38], dx
movsx eax, word [ebp - 0x38]
cmp eax, 0x19e
jle 0x4011b9
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_GetListBoxInfo]
mov dword [ebp - 8], eax
movsx edx, word [ebp - 0x38]
sub edx, 0x565
mov word [ebp - 0x38], dx
lea eax, [ebp - 0x4d]
push eax
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryA]
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x68]
mov dword [ebp - 8], edx
call section..text
movzx eax, byte [ebp - 0x4d]
add eax, 0xfc
mov byte [ebp - 0x4d], al
jmp 0x4012a9
movzx ecx, byte [ebp - 0x4d]
cmp ecx, 0x8d
je 0x4012a9
mov dword [ebp - 0x6c], 0x78e1
lea edx, [ebp - 8]
mov dword [ebp - 0x40], edx
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x4d]
mov dword [ebp - 0x60], ecx
mov dx, word [ebp - 0x34]
mov word [ebp - 4], dx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x60]
mov cl, byte [eax]
mov byte [ebp - 0x80], cl
cmp byte [ebp - 0x80], 0x2b
je 0x401208
jmp 0x401241
mov edx, dword [ebp - 0x14]
push edx
push 0x14
call dword [sym.imp.USER32.dll_VkKeyScanExA]
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x6c]
cmp ecx, dword [ebp - 0xc]
je 0x40123f
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
movzx ecx, word [ebp - 0x3c]
push ecx
movzx edx, word [ebp - 0x34]
push edx
call fcn.004012d0
jmp 0x4012a5
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x60]
mov dl, byte [ecx]
mov byte [ebp - 0x84], dl
cmp byte [ebp - 0x84], 2
je 0x40129a
cmp byte [ebp - 0x84], 0xaa
je 0x401266
jmp 0x4012a5
movzx eax, word [ebp - 0x3c]
movzx ecx, word [ebp - 4]
xor eax, ecx
mov word [ebp - 0x34], ax
mov edx, dword [ebp - 0x60]
movzx eax, byte [edx]
movzx ecx, byte [ebp - 0x4d]
sar eax, cl
mov ecx, dword [ebp - 0x60]
mov byte [ecx], al
push 0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov dword [ebp - 0x5c], eax
jmp 0x4012a5
movsx ecx, word [ebp - 0x70]
or ecx, 0x37
mov word [ebp - 0x38], cx
mov byte [ebp - 0x25], 0x37
mov dword [ebp - 0x68], 0x89aa
movzx edx, word [ebp - 0x3c]
push edx
movzx eax, word [ebp - 0x3c]
push eax
call fcn.004012d0
mov eax, 0x9c
mov esp, ebp
pop ebp
ret