Function at 0x408df0
Capabilities:
Get graphical window text
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4597db
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x4736c0]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x4736c0]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x20], edi
call fcn.00428322
mov eax, dword [edi + 0x20]
xor ebx, ebx
push ebx
push eax
mov dword [edi + 0xa8], ebx
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.0042fe89
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x408eff
call fcn.0042759d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x408e7a
push 0x80004005
call fcn.00407f00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push 0x65
mov dword [esp + 0x16c], ebx
call fcn.00426ecb
cmp eax, ebx
je 0x408eac
push 0x65
push eax
lea ecx, [esp + 0x1c]
call fcn.004083f0
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], ebx
je 0x408ed8
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 4]
push ebx
push ebx
push 0x800
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
push esi
push 0x10
push ebx
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
lea eax, [esi - 0x10]
mov dword [esp + 0x168], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408eff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0xcc]
mov ecx, dword [edi + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 1
push 0x80
push ecx
call esi
mov eax, dword [edi + 0xcc]
mov edx, dword [edi + 0x20]
push eax
push ebx
push 0x80
push edx
call esi
mov eax, dword [edi + 0xd2320]
push 0x640000
push ebx
push 0x401
push eax
mov dword [edi + 0xd22f0], ebx
mov dword [edi + 0xd22f4], ebx
mov dword [edi + 0xd22f8], ebx
mov dword [edi + 0xd22fc], ebx
mov dword [edi + 0xd2364], ebx
mov dword [edi + 0xd2368], ebx
mov dword [edi + 0xd2370], ebx
call esi
cmp dword [edi + 0x690d4], ebx
jbe 0x408f7c
mov dword [edi + 0xd2364], 1
cmp dword [edi + 0xd20dc], ebx
jbe 0x408f8e
mov dword [edi + 0xd2368], 1
mov ecx, dword [edi + 0x20]
push ebx
push 0x3e8
push 4
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [edi + 0xd20dc], ebx
jbe 0x408fb0
push ebx
mov ecx, edi
call fcn.0040a100
cmp dword [edi + 0x690d4], ebx
mov ecx, edi
jbe 0x40936f
push ebx
push 0x80000
push ebx
mov dword [esp + 0x50], 0xa0
mov dword [esp + 0x54], 0x90
mov dword [esp + 0x58], 0xe8
mov dword [esp + 0x5c], 0xaf
mov dword [esp + 0x40], 0x177
mov dword [esp + 0x44], 4
mov dword [esp + 0x48], 0x187
mov dword [esp + 0x4c], 0x13
call fcn.0042ea42
push 0x461f50
mov ecx, edi
call fcn.0042ea96
push 0x3eb
mov ecx, edi
call fcn.0042e994
push 1
push 0x14
push 0x175
push 0x60
push 0xf
mov ecx, eax
call fcn.0042eaf2
push 1
push 0x10
push 0x175
push 0x77
push 0xf
lea ecx, [edi + 0xd2300]
call fcn.0042eaf2
mov ebx, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0xffffff
call ebx
push eax
lea ecx, [edi + 0xd22c8]
call fcn.0042349a
push 0
call ebx
push eax
lea ecx, [edi + 0xd22d0]
call fcn.0042349a
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [edi + 0xd22dc], eax
mov eax, edi
call fcn.00419a30
mov ebx, dword [sym.imp.USER32.dll_CopyRect]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x28]
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
push 1
push 0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x48]
push ecx
mov dword [eax + 8], ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.BTN_OK
mov dword [eax + 0xc], edx
call fcn.004080b0
push 0x83
call fcn.00419c20
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
push ecx
call ebx
mov edx, dword [esp + 0x24]
sub esp, 0x10
mov eax, esp
mov ecx, dword [esp + 0x38]
mov dword [eax], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x40]
push 0
push 0
push ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.BTN_EXIT
call fcn.004080b0
push 0x82
call fcn.00419c20
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.BTN_OK
call fcn.004080b0
mov ebx, edi
call fcn.00419d20
push 0x461f78
push 0x32
push 0
push 0
push 0
push 0x81
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0xd
call dword [sym.imp.GDI32.dll_CreateFontA]
mov edx, dword [edi + 0xd2100]
push 1
push eax
push 0x30
push edx
call esi
mov eax, dword [edi + 0xd2100]
push 0x4000
push 0
push 0x1036
push eax
call esi
mov dword [edi + 0xd2204], 0x16
add edi, 0xd20e0
mov edx, 0x15e
mov ecx, 0x461f80
mov esi, 1
mov dword [esp + 0x18], edi
call fcn.00415dd0
xor edx, edx
mov ecx, 0x461b1f
lea esi, [edx + 2]
call fcn.00415dd0
push 0xff
lea ecx, [esp + 0x59]
push 0
push ecx
mov byte [esp + 0x60], 0
call fcn.00442fd0
mov esi, dword [esp + 0x2c]
xor ebx, ebx
add esp, 0xc
cmp dword [esi + 0x690d4], ebx
mov dword [esp + 0x1c], ebx
jbe 0x409308
lea ecx, [esi + 0x3d0]
mov dword [esp + 0x14], ecx
add ecx, 0xfffffd00
cmp dword [ecx + 0xd00], 1
jne 0x4092e3
test ebx, ebx
jge 0x40921c
or esi, 0xffffffff
jmp 0x409233
mov edx, dword [edi + 0x1e0]
mov eax, dword [edi + 0x1e4]
push edx
push eax
push ebx
push edi
call fcn.00415ea0
mov esi, eax
mov ecx, dword [esp + 0x14]
push 0x46190c
push ecx
call fcn.00440414
add esp, 8
test eax, eax
jne 0x40924c
push eax
jmp 0x409264
mov edx, dword [esp + 0x14]
push 0x461910
push edx
call fcn.00440414
add esp, 8
test eax, eax
jne 0x40926c
push 1
push edi
mov eax, esi
call fcn.004161e0
push ebx
lea eax, [esp + 0x58]
push 0x461a94
push eax
mov eax, 0x100
call fcn.00407c80
add esp, 0xc
test esi, esi
jl 0x4092e3
mov ecx, dword [edi + 0x20]
push 0
push 0
push 0x1004
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp esi, eax
jge 0x4092e3
mov ecx, edi
call fcn.00430886
mov edx, dword [eax + 0x20]
push 0
push 0
push 0x1200
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jle 0x4092e3
lea eax, [esp + 0x54]
push eax
push 1
push esi
mov ecx, edi
call fcn.0042771e
mov edi, esi
mov esi, dword [esp + 0x18]
mov ebx, 1
call fcn.004162f0
mov ebx, dword [esp + 0x1c]
mov edi, esi
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
add ebx, 1
add ecx, 0xd20
cmp ebx, dword [esi + 0x690d4]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ecx
jb 0x409200
push 1
mov ecx, edi
call fcn.0042eb6c
push 1
push 0x2f
push 0x170
push 0x22
push 0xf
mov ecx, edi
call fcn.0042eaf2
mov esi, dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 1
mov ebx, eax
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x409376
push 1
call fcn.00427fda
mov eax, 1
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.004404d0
mov esp, ebp
pop ebp
ret