Function at 0x403d10
Capabilities:
Get graphical window text

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x140
mov eax, 0xa
mov r8, rax
lea rax, [rbp - 0xa]
mov r11, rax
mov rax, qword [0x0040a060]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_GetWindowTextA
lea rax, [rbp - 0xa]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_atoi
mov dword [0x0040a0f0], eax
mov eax, dword [0x0040a0f0]
mov r9, rax
lea rax, str.Scanning_codes_0__d_0___done...
mov r8, rax
movabs rax, 0x100
mov r11, rax
lea rax, [rbp - 0x10a]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_sprintf_s
lea rax, [rbp - 0x10a]
mov r9, rax
movabs rax, 0
mov r8, rax
mov eax, 0xc
mov r11, rax
mov rax, qword [0x0040a088]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_SendMessageA
movabs rax, 0
mov r9, rax
movabs rax, 1
mov r8, rax
mov eax, 0x410
mov r11, rax
mov rax, qword [0x0040a090]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_SendMessageA
mov eax, dword [0x0040a004]
cmp eax, 0
je 0x404071
mov eax, dword [0x0040a0f0]
sub eax, 1
mov ecx, dword [0x0040a034]
cmp ecx, eax
jg 0x404071
mov eax, dword [0x0040a018]
cmp eax, 0
jne 0x404071
mov eax, dword [0x0040a01c]
cmp eax, 0
je 0x404071
mov eax, dword [0x0040a020]
cmp eax, 0
jne 0x404071
mov eax, dword [0x0040a034]
mov ecx, eax
add eax, 1
mov dword [0x0040a034], eax
call fcn.004036cf
mov eax, dword [0x0040a034]
mov ecx, 0x64
imul eax, ecx
mov ecx, dword [0x0040a0f0]
cdq
idiv ecx
mov dword [rbp - 0x110], eax
mov eax, dword [rbp - 0x110]
mov qword [rsp + 0x28], rax
mov eax, dword [0x0040a0f0]
mov qword [rsp + 0x20], rax
mov eax, dword [0x0040a034]
mov r9, rax
lea rax, str.Scanning_codes__d__d__d___done...
mov r8, rax
movabs rax, 0x100
mov r11, rax
lea rax, [rbp - 0x10a]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_sprintf_s
mov eax, dword [rbp - 0x110]
mov ecx, dword [0x0040a038]
cmp eax, ecx
je 0x403fae
movabs rax, 0
mov r9, rax
movabs rax, 0
mov r8, rax
mov eax, 0xb
mov r11, rax
mov rax, qword [0x0040a088]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_SendMessageA
lea rax, [rbp - 0x10a]
mov r11, rax
mov rax, qword [0x0040a088]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_SetWindowTextA
movabs rax, 0
mov r9, rax
movabs rax, 1
mov r8, rax
mov eax, 0xb
mov r11, rax
mov rax, qword [0x0040a088]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_SendMessageA
mov eax, 1
mov r8, rax
movabs rax, 0
mov r11, rax
mov rax, qword [0x0040a088]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_InvalidateRect
mov rax, qword [0x0040a088]
mov r10, rax
mov rcx, r10
call sub.user32.dll_UpdateWindow
mov eax, dword [rbp - 0x110]
mov dword [0x0040a038], eax
mov eax, dword [0x0040a038]
movsxd rax, eax
movabs rcx, 0
mov r9, rcx
mov r8, rax
mov eax, 0x402
mov r11, rax
mov rax, qword [0x0040a090]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_SendMessageA
mov eax, 1
mov qword [rsp + 0x20], rax
mov eax, 0
mov r9, rax
mov eax, 0
mov r8, rax
movabs rax, 0
mov r11, rax
lea rax, [0x0040a0f8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_PeekMessageA
cmp eax, 0
je 0x40406c
mov eax, dword [0x0040a100]
cmp eax, 0x12
jne 0x404048
mov eax, 1
mov dword [0x0040a020], eax
jmp 0x40406c
lea rax, [0x0040a0f8]
mov r10, rax
mov rcx, r10
call sub.user32.dll_TranslateMessage
lea rax, [0x0040a0f8]
mov r10, rax
mov rcx, r10
call sub.user32.dll_DispatchMessageA
jmp 0x403df4
mov eax, 1
mov dword [0x0040a014], eax
mov eax, 0
mov dword [0x0040a0f4], eax
mov eax, 0
mov dword [0x0040a038], eax
mov eax, dword [0x0040a034]
mov ecx, dword [0x0040a0f0]
cmp eax, ecx
jne 0x404203
mov eax, dword [0x0040a01c]
cmp eax, 0
je 0x404203
lea rax, [0x0040892a]
mov r9, rax
movabs rax, 0
mov r8, rax
mov eax, 0xc
mov r11, rax
mov rax, qword [0x0040a040]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_SendMessageA
mov eax, 1
mov r11, rax
mov rax, qword [0x0040a060]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_EnableWindow
mov eax, 1
mov r11, rax
mov rax, qword [0x0040a078]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_EnableWindow
mov eax, 0
mov r11, rax
mov rax, qword [0x0040a048]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_EnableWindow
mov eax, 0
mov dword [0x0040a004], eax
movabs rax, 0
mov r9, rax
movabs rax, 1
mov r8, rax
mov eax, 0x410
mov r11, rax
mov rax, qword [0x0040a090]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_SendMessageA
movabs rax, 0
mov r9, rax
movabs rax, 0x64
mov r8, rax
mov eax, 0x402
mov r11, rax
mov rax, qword [0x0040a090]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_SendMessageA
lea rax, str.Finished.
mov r9, rax
movabs rax, 0
mov r8, rax
mov eax, 0xc
mov r11, rax
mov rax, qword [0x0040a088]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_SendMessageA
mov eax, 0
mov dword [0x0040a0f0], eax
mov eax, 0
mov dword [0x0040a034], eax
mov eax, dword [0x0040a018]
cmp eax, 1
jne 0x4043e5
lea rax, [0x0040897d]
mov r9, rax
movabs rax, 0
mov r8, rax
mov eax, 0xc
mov r11, rax
mov rax, qword [0x0040a040]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_SendMessageA
mov eax, 1
mov r11, rax
mov rax, qword [0x0040a060]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_EnableWindow
mov eax, 1
mov r11, rax
mov rax, qword [0x0040a078]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_EnableWindow
mov eax, 0
mov r11, rax
mov rax, qword [0x0040a048]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_EnableWindow
mov eax, 0
mov r11, rax
mov rax, qword [0x0040a050]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_EnableWindow
lea rax, str.Operation_aborted.
mov r9, rax
movabs rax, 0
mov r8, rax
mov eax, 0xc
mov r11, rax
mov rax, qword [0x0040a088]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_SendMessageA
movabs rax, 0
mov r9, rax
movabs rax, 0x64
mov r8, rax
mov eax, 0x402
mov r11, rax
mov rax, qword [0x0040a090]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_SendMessageA
movabs rax, 0
mov r9, rax
movabs rax, 1
mov r8, rax
mov eax, 0x410
mov r11, rax
mov rax, qword [0x0040a090]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_SendMessageA
mov eax, 0
mov dword [0x0040a034], eax
mov eax, 0
mov r11, rax
mov rax, qword [0x0040a068]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_ShowWindow
lea rax, [0x004089de]
mov r9, rax
movabs rax, 0
mov r8, rax
mov eax, 0xc
mov r11, rax
mov rax, qword [0x0040a068]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_SendMessageA
mov eax, 5
mov r11, rax
mov rax, qword [0x0040a068]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_ShowWindow
mov eax, 0
mov dword [0x0040a004], eax
jmp 0x4043e5
leave
ret