Function at 0x4155e0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x1f4
push ebx
push esi
mov esi, dword [esp + 0x200]
test esi, esi
mov ebx, ecx
mov dword [esp + 0x14], ebx
je 0x415810
cmp dword [esp + 0x204], 0x100
jb 0x415810
mov dword [esp + 0x10], esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x41562f
push 0x64
lea ecx, [esp + 0x9c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x415637
mov byte [esp + 0x98], 0
push edi
xor eax, eax
mov byte [esp + 0x1c], 0
mov ecx, 0x1f
lea edi, [esp + 0x1d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebx + 0x304]
test edi, edi
je 0x41567e
mov al, byte [edi + 0x14]
test al, al
je 0x415677
mov edx, dword [edi]
mov eax, dword [edx]
push eax
push 0x452688
lea ecx, [esp + 0x24]
push 0x7d
push ecx
call fcn.0043c2e0
add esp, 0x10
mov edi, dword [edi + 0x18]
test edi, edi
jne 0x415657
mov al, byte [esp + 0x1c]
test al, al
push ebp
je 0x4156d2
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415690
sub eax, edx
cmp eax, 0x7b
jbe 0x4156c2
mov edi, 0x80
sub edi, eax
lea edx, [edi - 1]
push edx
lea ebp, [esp + eax + 0x24]
push 0x451578
push ebp
call fcn.00443880
add esp, 0xc
mov byte [edi + ebp - 1], 0
jmp 0x4156d2
mov cl, byte [esp + eax + 0x1f]
cmp cl, 0x20
lea eax, [esp + eax + 0x1f]
jne 0x4156d2
mov byte [eax], 0
mov ebx, dword [0x45d820]
cmp ebx, 1
mov dword [esp + 0x10], str.__preempted:_they_will_resume_when_the_current_thread_finishes_
jg 0x41580a
mov dword [esp + 0x10], 0x44f4f8
xor ebx, ebx
cmp byte [0x45b055], 2
mov dword [esp + 0x14], str.keybd_hook
je 0x41570c
mov dword [esp + 0x14], str.not_keybd_hook
mov eax, dword [0x45d804]
test eax, eax
mov ebp, 0x4509bc
je 0x41571f
mov ebp, 0x4509c0
mov eax, dword [0x45d800]
test eax, eax
mov edi, 0x4509bc
je 0x415732
mov edi, 0x4509c0
lea eax, [esp + 0x104]
push eax
push 1
call fcn.0040a080
add esp, 4
push eax
call fcn.0040a4c0
mov ecx, dword [0x45d81c]
mov edx, dword [0x45d820]
push eax
mov eax, dword [0x45d824]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [eax + 0x30c]
push ebx
mov ebx, dword [esp + 0x22c]
lea edx, [esp + 0x40]
push edx
mov edx, dword [eax + 0x310]
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
push ebp
push edi
lea ecx, [esp + 0xd8]
push ecx
push str.Window:__s_r_nKeybd_hook:__s_r_nMouse_hook:__s_r_nLast_hotkey_type:__s_r_nEnabled_Timers:__u_of__u___s__r_nInterrupted_threads:__d_s_r_nPaused_threads:__d_of__d___d_layers__r_nModifiers__GetKeyState___now____s_r_n
push ebx
push esi
call fcn.0043c2b0
add esp, 0x48
mov eax, esi
lea ecx, [eax + 1]
pop ebp
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4157a7
mov edi, dword [esp + 0x14]
sub eax, ecx
add esi, eax
mov edx, edi
sub edx, esi
add edx, ebx
push edx
push esi
call fcn.00405240
mov eax, esi
add esp, 8
lea ecx, [eax + 1]
jmp 0x4157d0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4157d0
sub eax, ecx
add esi, eax
sub edi, esi
push str._r_nPress__F5__to_refresh.
add edi, ebx
push edi
push esi
call fcn.0043c2b0
add esp, 0xc
mov eax, esi
lea edx, [eax + 1]
pop edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4157f4
sub eax, edx
add eax, esi
pop esi
pop ebx
add esp, 0x1f4
ret 8
dec ebx
jmp 0x4156f3
pop esi
xor eax, eax
pop ebx
add esp, 0x1f4
ret 8