Function at 0x421a88
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1d4
mov eax, dword [0x4291b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [0x429e90]
mov ebx, ecx
xor ecx, ecx
mov dword [ebp - 0x1b4], ecx
mov dword [ebp - 0x1a8], ecx
mov dword [ebp - 0x1a0], ecx
mov dword [ebp - 0x1b8], ecx
mov dword [ebp - 0x1ac], ecx
mov dword [0x42a864], ecx
mov dword [0x42a868], ecx
call dword [sym.imp.USER32.dll_SetCursor]
push 8
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xa
push ebx
mov dword [0x42a23c], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x5a
push ebx
mov dword [0x42a238], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x6e
push ebx
mov dword [0x42a234], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x6f
push ebx
mov dword [0x42a230], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x70
push ebx
mov dword [0x42a22c], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x71
push ebx
mov dword [0x42a228], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, 0x42a240
mov dword [0x42a224], eax
push esi
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetLocalTime]
mov edi, pe_nt_image_headers32
push edi
push 0x4294d8
push 0
push esi
push 2
mov esi, 0x400
push esi
call dword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetDateFormatW]
push edi
push 0x4292d8
push 0
push 0x42a240
push 0
push esi
call dword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetTimeFormatW]
mov eax, dword [0x42a234]
lea edi, [ebp - 0x188]
imul eax, dword [0x4292c4]
mov esi, 0x429e30
push 0x17
pop ecx
rep movsd dword es:[edi], dword [esi]
cdq
mov ecx, 0xfffffd30
xor esi, esi
idiv ecx
push 8
push ebx
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x184], esi
call dword [sym.imp.GDI32.dll_SetMapMode]
push esi
push dword [0x42a22c]
push dword [0x42a230]
push ebx
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
push esi
push dword [0x429db0]
push dword [0x429dac]
push ebx
call dword [sym.imp.GDI32.dll_SetWindowExtEx]
mov eax, 0x42a850
mov esi, 0x429dc4
mov edi, eax
push 2
push eax
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.GDI32.dll_LPtoDP]
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetMapMode]
lea eax, [ebp - 0x188]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov edi, eax
mov dword [ebp - 0x1b0], edi
test edi, edi
je 0x42211c
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
mov dword [ebp - 0x1a8], esi
test esi, esi
je 0x42211c
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
lea eax, [ebp - 0x124]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
test eax, eax
je 0x42211c
test byte [ebp - 0xed], 6
jne 0x421cc8
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x40
lea eax, [ebp - 0x16c]
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov edi, eax
mov dword [ebp - 0x1b0], edi
test edi, edi
je 0x42211c
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x1a8], eax
test eax, eax
je 0x42211c
lea eax, [ebp - 0x124]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
test eax, eax
je 0x42211c
mov eax, dword [ebp - 0x110]
mov edi, dword [ebp - 0x114]
mov ecx, dword [0x42a228]
add edi, dword [ebp - 0x124]
shl eax, 3
mov dword [0x42a86c], eax
mov eax, dword [0x42a850]
sub eax, ecx
mov dword [0x42a860], edi
test eax, eax
jg 0x421cfb
xor eax, eax
mov dword [0x42a218], eax
mov eax, dword [0x42a23c]
sub eax, dword [0x42a230]
add eax, dword [0x42a858]
add eax, ecx
test eax, eax
jg 0x421d19
xor eax, eax
mov ecx, dword [0x42a854]
mov esi, dword [0x42a224]
sub ecx, esi
mov dword [0x42a214], eax
test ecx, ecx
jg 0x421d32
xor ecx, ecx
mov edx, dword [0x42a238]
mov eax, edx
sub eax, dword [0x42a22c]
add eax, dword [0x42a85c]
add eax, esi
mov dword [0x42a220], ecx
test eax, eax
jg 0x421d54
xor eax, eax
sub edx, eax
mov dword [0x42a21c], eax
sub edx, ecx
mov eax, edx
cdq
idiv edi
cmp word [0x429ed0], 0
je 0x421d6d
dec eax
cmp word [0x429f20], 0
je 0x421d78
dec eax
test eax, eax
jle 0x4220fa
push 0x421770
push ebx
call dword [sym.imp.GDI32.dll_SetAbortProc]
mov edi, eax
test edi, edi
js 0x421ea2
push 0
push 0
push 0xbd
push dword [0x42adac]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x1b4], eax
test eax, eax
je 0x42211c
push eax
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalLock]
mov edi, eax
mov dword [ebp - 0x1ac], edi
test edi, edi
je 0x42211c
push dword [0x42a92c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
xor edx, edx
lea ecx, [ebp - 0x1a4]
lea esi, [eax + 1]
push esi
call fcn.0040c996
push esi
mov esi, dword [ebp - 0x1a4]
push esi
push dword [0x42a92c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x421e08
mov word [esi], ax
push 0
push dword [0x42a92c]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0x4217e0
push dword [0x42a92c]
push 0xb
push dword [0x429e8c]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [0x42a868], eax
test eax, eax
jne 0x421e4e
test esi, esi
je 0x42211c
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
jmp 0x42211c
xor eax, eax
mov dword [ebp - 0x1d0], 0x14
push eax
mov dword [ebp - 0x1cc], esi
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 0x1c0], eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
lea eax, [ebp - 0x1d0]
push eax
push ebx
call dword [sym.imp.GDI32.dll_StartDocW]
test eax, eax
jg 0x421f1c
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x421ea2
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov esi, dword [ebp - 0x1a0]
mov eax, dword [ebp - 0x1a8]
test eax, eax
je 0x421ec6
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x1b0]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x1ac], 0
je 0x421edb
push dword [ebp - 0x1b4]
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalUnlock]
test esi, esi
je 0x421ef6
push ebx
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jg 0x421ef6
test edi, edi
jne 0x421ef6
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
cmp dword [ebp - 0x1b8], 0
je 0x422160
cmp dword [0x42a864], 0
push ebx
je 0x42214a
call dword [sym.imp.GDI32.dll_AbortDoc]
jmp 0x422160
mov ecx, dword [0x42a238]
xor eax, eax
sub ecx, dword [0x42a21c]
inc eax
mov edx, dword [0x42a860]
mov dword [ebp - 0x1b8], eax
mov dword [0x42a210], eax
mov eax, dword [0x42a218]
mov dword [ebp - 0xe8], eax
mov eax, dword [0x42a23c]
sub eax, dword [0x42a214]
cmp word [0x429ed0], 0
mov dword [ebp - 0xe0], eax
mov eax, dword [0x42a220]
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xdc], ecx
je 0x421f7b
add eax, edx
mov dword [ebp - 0xe4], eax
cmp word [0x429f20], 0
je 0x421f8d
sub ecx, edx
mov dword [ebp - 0xdc], ecx
mov edx, 0x7fffffff
mov ecx, edi
call fcn.00421757
push 0xffffffffffffffec
push dword [0x42adac]
mov dword [ebp - 0x1a4], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x2000
cmp dword [0x42a864], 0
mov dword [ebp - 0x1bc], eax
jne 0x4220d6
mov ecx, dword [0x42a210]
mov eax, dword [ebp - 0x1a4]
test eax, eax
jle 0x4220d6
push ecx
push dword [0x429220]
lea eax, [ebp - 0xd8]
push 0x65
push eax
call fcn.00406803
add esp, 0x10
lea eax, [ebp - 0xd8]
push eax
push 0x15
push dword [0x42a868]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
xor edx, edx
mov ecx, ebx
call fcn.00421870
xor eax, eax
mov dword [ebp - 0x19c], 0x14
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x18c], eax
mov eax, dword [0x42a86c]
push ebx
mov dword [ebp - 0x198], eax
call dword [sym.imp.GDI32.dll_StartPage]
test eax, eax
jle 0x42212b
xor eax, eax
inc eax
mov dword [ebp - 0x1a0], eax
lea eax, [ebp - 0x19c]
push eax
mov eax, dword [ebp - 0x1bc]
neg eax
sbb eax, eax
and eax, 0x20002
add eax, 0x2850
push eax
lea eax, [ebp - 0xe8]
push eax
mov eax, dword [ebp - 0x1a4]
push eax
push edi
push ebx
call dword [sym.imp.USER32.dll_DrawTextExW]
xor edx, edx
mov ecx, ebx
inc edx
call fcn.00421870
push ebx
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jle 0x421e8f
mov ecx, dword [0x42a210]
mov edx, dword [ebp - 0x18c]
inc ecx
mov dword [0x42a210], ecx
test edx, edx
je 0x4220ef
mov eax, dword [ebp - 0x1a4]
lea edi, [edi + edx*2]
sub eax, edx
mov dword [ebp - 0x1ac], edi
cmp dword [0x42a864], 0
mov dword [ebp - 0x1a4], eax
je 0x421fd1
xor edi, edi
and dword [ebp - 0x1a0], edi
test esi, esi
je 0x421ea2
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
jmp 0x422124
test esi, esi
je 0x4220fa
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
push 0x30
push dword [0x42929c]
push dword [0x429248]
push dword [0x42a92c]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
xor esi, esi
jmp 0x421ea8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x42213e
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
and dword [ebp - 0x1a0], 0
jmp 0x421ea2
call dword [sym.imp.GDI32.dll_EndDoc]
test eax, eax
jg 0x422160
test edi, edi
jne 0x422160
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
call fcn.0042219d
push dword [0x429e94]
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [0x42a864], 0
jne 0x422185
mov eax, edi
jmp 0x422188
push 0xfffffffffffffffd
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00426f20
leave
ret