Function at 0x474ef0
Capabilities:
Get graphical window text
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x414
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [0x594268]
xor ebx, ebx
cmp ecx, edi
mov esi, edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
jne 0x474f28
call fcn.00454250
mov ecx, edi
call fcn.005366c0
mov edi, eax
cmp edi, ebx
mov dword [esp + 0xc], edi
je 0x475880
mov ecx, dword [edi + 0xbb4]
mov dword [esp + 0x2c], ecx
call fcn.004dbea0
test eax, eax
je 0x475880
test esi, esi
je 0x475880
cmp esi, dword [edi + 0x864]
je 0x474f70
cmp esi, dword [edi + 0x868]
jne 0x475880
mov eax, dword [ebp + 8]
cmp eax, 3
mov ebx, 2
jne 0x475135
mov dword [esp + 0x28], 1
mov dword [ebp + 8], 0
mov eax, dword [edi + 0x898]
test eax, eax
je 0x474fce
lea edx, [esp + 0x10]
push edx
mov edx, dword [edi + 0x894]
push 0
mov ecx, esi
call fcn.004743d0
mov edx, dword [edi + 0x894]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00474230
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x20]
jl 0x475880
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0
push 0
push 0xe
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov dword [esp + 0x10], eax
jle 0x4750dc
mov ecx, dword [edi + 0x868]
xor edx, edx
test ecx, ecx
je 0x47502c
cmp ecx, esi
jne 0x47502c
mov bl, byte [edi + 0x8d6]
test bl, bl
lea ecx, [edi + 0x8d6]
je 0x47502c
lea edi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x475020
sub ecx, edi
lea edx, [ecx + 0xa]
lea edi, [edx + eax + 0xa]
push edi
call fcn.005635a3
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x30], edx
je 0x475880
mov ecx, edi
mov ebx, ecx
shr ecx, 2
push edx
mov edi, edx
mov edx, dword [esp + 0x14]
xor eax, eax
rep stosd dword es:[edi], eax
add edx, 5
push edx
mov ecx, ebx
and ecx, 3
push 0xd
rep stosb byte es:[edi], al
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push esi
call edi
push 0x574b10
push 0
push 0xc
mov ebx, eax
push esi
mov dword [esp + 0x20], ebx
mov dword [0x595d3c], 1
call edi
push 0
push 0
push 0xcd
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.USER32.dll_IsIconic]
mov dword [0x595d3c], 0
mov ecx, dword [eax]
push ecx
call esi
test eax, eax
jne 0x4750e3
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
mov edi, dword [sym.imp.USER32.dll_IsWindowVisible]
push eax
call edi
test eax, eax
je 0x4750e3
test ebx, ebx
jg 0x475214
cmp dword [ebp + 8], 1
jne 0x4750e3
xor ecx, ecx
call fcn.0041c8e0
mov ecx, dword [esp + 0xc]
call fcn.00536900
test eax, eax
je 0x475867
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x864]
test eax, eax
je 0x4757e0
mov esi, dword [esp + 0x24]
cmp eax, esi
jne 0x4757e0
mov dl, byte [ecx + 0xb50]
test dl, dl
lea eax, [ecx + 0xb50]
je 0x4757e0
mov dword [0x595d3c], 1
jmp 0x47583b
cmp eax, ebx
jne 0x474f90
mov eax, dword [edi + 0x898]
test eax, eax
je 0x475867
mov edx, dword [edi + 0x894]
lea eax, [esp + 0x10]
push eax
push 0
mov ecx, esi
call fcn.004743d0
mov edx, dword [edi + 0x894]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00474230
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
cmp edi, eax
jge 0x4751b3
push edi
mov edx, 1
push edi
mov ecx, esi
mov dword [0x595d3c], edx
call fcn.004742f0
push 0x574b0c
push edi
push 0xc2
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [esp + 0x14], ebx
jmp 0x475880
test eax, eax
jle 0x475880
push 0x7d000
push 0x7d000
mov edx, 1
mov ecx, esi
mov dword [0x595d3c], 1
call fcn.004742f0
push 0x574b0c
push 0
push 0xc2
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x7d000
push 0x7d000
mov edx, 1
mov ecx, esi
call fcn.004742f0
mov dword [esp + 0x14], ebx
jmp 0x475880
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov byte [ecx + ebx], 0
mov eax, dword [0x5988dc]
test eax, eax
je 0x47524a
mov edx, dword [0x5a1b00]
push edx
call esi
test eax, eax
jne 0x475873
mov eax, dword [0x5a1b00]
push eax
call edi
test eax, eax
je 0x475873
mov ecx, dword [esp + 0x2c]
call fcn.0051e230
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x898]
test eax, eax
jne 0x475307
mov eax, dword [esp + 0x28]
test eax, eax
je 0x475307
cmp byte [ebx], 0
je 0x4752fb
lea ebx, [ebx]
push 0x574b0c
push ebx
call fcn.00563db0
add esp, 8
test eax, eax
je 0x475297
lea esi, [eax + 2]
jmp 0x4752be
push 0x575404
push ebx
call fcn.00563db0
add esp, 8
test eax, eax
jne 0x4752bb
push 0x574b28
push ebx
call fcn.00563db0
add esp, 8
test eax, eax
je 0x4752f6
lea esi, [eax + 1]
mov byte [eax], 0
cmp byte [esi], 0
je 0x4752e5
mov ecx, esi
lea edi, [ecx + 1]
jmp 0x4752d0
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4752d0
sub ecx, edi
inc ecx
push ecx
push esi
push eax
call fcn.005641d0
add esp, 0xc
cmp byte [ebx], 0
jne 0x475280
xor ecx, ecx
call fcn.0041c8e0
jmp 0x475873
cmp byte [ebx], 0
jne 0x475307
xor ecx, ecx
call fcn.0041c8e0
jmp 0x475873
mov edi, 0x576e20
mov esi, ebx
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4757d2
mov edi, 0x577868
mov esi, ebx
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4757d2
mov edi, 0x577864
mov esi, ebx
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4757d2
mov edi, 0x577860
mov esi, ebx
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4757d2
mov edi, 0x57785c
mov esi, ebx
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x475745
mov edi, str.___r_n
mov esi, ebx
mov ecx, 5
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x475745
mov edi, 0x57784c
mov esi, ebx
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x475745
mov edi, 0x577844
mov esi, ebx
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x475745
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x1fa0]
cmp eax, edx
je 0x4753cf
mov dword [eax + 0x1c], edx
mov eax, dword [eax + 0x40]
cmp eax, edx
jne 0x4753c5
mov dword [ecx + 0x1fa8], edx
mov dword [ecx + 0x1848], edx
mov al, byte [ebx]
cmp al, 0x2f
mov dword [esp + 0x20], edx
je 0x475411
cmp al, byte [0x589b88]
je 0x475411
mov ecx, dword [esp + 0x18]
call fcn.0042ae20
xor edx, edx
cmp eax, edx
je 0x47541e
cmp dword [eax + 0x520], 3
je 0x47541e
xor ecx, ecx
call fcn.0041c8e0
jmp 0x475873
mov edi, 1
mov dword [esp + 0x20], edi
xor edx, edx
jmp 0x475423
mov edi, 1
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x868]
cmp eax, edx
mov dword [esp + 0x28], edx
je 0x475449
cmp eax, dword [esp + 0x24]
jne 0x475449
mov al, byte [ecx + 0x8d6]
test al, al
je 0x475449
mov dword [esp + 0x28], edi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xd
mov dword [0x595d38], edx
mov dword [0x595d34], edx
call esi
test ah, ah
push 0x11
jns 0x475473
call esi
test ah, ah
jns 0x475485
mov dword [0x595d34], edi
jmp 0x475485
call esi
test ah, ah
jns 0x47547f
mov dword [0x595d34], edi
mov dword [0x595d38], edi
mov ebx, dword [esp + 0x30]
cmp byte [ebx], 0
je 0x4750e3
push 0x574b0c
push ebx
call fcn.00563db0
add esp, 8
test eax, eax
je 0x4754ac
mov byte [eax], 0
add eax, 2
jmp 0x4754d8
push 0x575404
push ebx
call fcn.00563db0
add esp, 8
test eax, eax
jne 0x4754d4
push 0x574b28
push ebx
call fcn.00563db0
add esp, 8
test eax, eax
mov dword [esp + 0x10], eax
je 0x4754dc
mov byte [eax], 0
inc eax
mov dword [esp + 0x10], eax
mov esi, ebx
lea edx, [esi + 1]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x4754e1
sub esi, edx
test esi, esi
mov dword [esp + 0x14], esi
jle 0x47572d
cmp esi, 0x3b5
jle 0x475507
mov esi, 0x3b5
mov dword [esp + 0x14], esi
mov cl, byte [esi + ebx]
mov byte [esi + ebx], 0
mov eax, dword [0x595d40]
test eax, eax
mov byte [esp + 0x1f], cl
je 0x475524
push eax
call fcn.005635b5
add esp, 4
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x475530
sub eax, edx
add eax, 0xa
push eax
call fcn.005635a3
add esp, 4
test eax, eax
mov dword [0x595d40], eax
je 0x47555c
mov ecx, ebx
mov edx, eax
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x475552
mov ecx, dword [esp + 0x18]
mov edx, ebx
call fcn.00421450
xor eax, eax
mov ecx, 0xf9
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov ecx, dword [0x595d34]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, ecx
neg eax
sbb eax, eax
and eax, 3
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x475624
test ecx, ecx
mov dword [esp + 0x34], 0
je 0x4755d3
mov esi, dword [esp + 0xc]
add esi, 0x8d6
push ebx
push esi
call fcn.00572b46
add esp, 8
test eax, eax
je 0x475624
push esi
lea edx, [esp + 0x3c]
push 0x575534
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
push ebx
lea eax, [esp + 0x48]
push eax
jmp 0x47560a
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x475624
mov esi, dword [esp + 0xc]
add esi, 0x8d6
push ebx
push esi
call fcn.00572b46
add esp, 8
test eax, eax
je 0x475624
push esi
lea ecx, [esp + 0x3c]
push 0x575534
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push ebx
lea edx, [esp + 0x48]
push edx
call fcn.00572b46
add esp, 0x14
test eax, eax
jne 0x475624
lea edi, [esp + 0x38]
mov ecx, 0xf9
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, ebx
mov esi, ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x475628
lea edi, [esp + 0x38]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x475636
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [esp + 0x1f]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov byte [ecx + ebx], al
mov eax, dword [0x59ca60]
test eax, eax
mov esi, 1
je 0x4756b9
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x14], 0
je 0x475697
mov ecx, dword [0x595d40]
push 0
lea edx, [esp + 0x18]
call fcn.004ed1b0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x475697
mov eax, dword [0x595d34]
test eax, eax
je 0x4756b9
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
push 0
push 0
push 0
push 0x1e
push str.INPUT
push 0
call fcn.00506dd0
test eax, eax
jne 0x4756b9
xor esi, esi
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4756d5
mov ecx, dword [esp + 0xc]
call fcn.00536900
test eax, eax
jne 0x4756df
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x2c]
call fcn.004dbea0
test eax, eax
je 0x4750e3
test esi, esi
je 0x47571d
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4750e3
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
push eax
push 0
push 0
push ecx
mov ecx, dword [esp + 0x28]
push 0
lea edx, [esp + 0x4c]
call fcn.0043bba0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4750e3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4750e3
cmp byte [eax], 0
mov ebx, eax
jne 0x475492
jmp 0x4750e3
mov eax, dword [0x595d40]
test eax, eax
jne 0x47575a
xor ecx, ecx
call fcn.0041c8e0
jmp 0x475873
push 0x574b28
push eax
call fcn.00563db0
add esp, 8
test eax, eax
je 0x47576f
mov byte [eax], 0
mov edx, dword [0x595d40]
push 0x575404
push edx
call fcn.00563db0
add esp, 8
test eax, eax
je 0x47578a
mov byte [eax], 0
mov eax, dword [0x595d40]
mov edi, dword [esp + 0x24]
push eax
push 0
push 0xc
push edi
mov dword [0x595d3c], 1
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x595d40]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4757b4
sub eax, esi
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4757c0
sub ecx, esi
push eax
push ecx
mov ecx, edi
jmp 0x475853
mov ecx, dword [esp + 0x18]
call fcn.004215a0
jmp 0x475867
mov eax, dword [ecx + 0x868]
test eax, eax
je 0x475867
cmp eax, dword [esp + 0x24]
jne 0x475867
mov eax, dword [esp + 0xc]
mov cl, byte [eax + 0x8d6]
add eax, 0x8d6
test cl, cl
je 0x475867
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x93c]
test edx, edx
je 0x475867
push eax
lea edx, [esp + 0x3c]
push 0x575534
push edx
mov dword [0x595d3c], 1
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [esp + 0x30]
add esp, 0xc
lea eax, [esp + 0x38]
push eax
push 0
push 0xc
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x7d000
push 0x7d000
mov ecx, esi
mov edx, 1
call fcn.004742f0
mov dword [0x595d3c], 0
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x14], 1
test ebx, ebx
je 0x475880
push ebx
call fcn.005635b5
add esp, 4
xor eax, eax
pop edi
pop esi
mov dword [0x595d34], eax
mov dword [0x595d38], eax
mov dword [0x595d3c], eax
mov eax, dword [esp + 0xc]
pop ebx
mov esp, ebp
pop ebp
ret 4