Function at 0x41c9a6
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1d4
mov eax, dword [0x424210]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [0x424f38]
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 [0x425914], ecx
mov dword [0x425918], 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 [0x4252e8], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x5a
push ebx
mov dword [0x4252e4], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x6e
push ebx
mov dword [0x4252e0], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x6f
push ebx
mov dword [0x4252dc], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x70
push ebx
mov dword [0x4252d8], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x71
push ebx
mov dword [0x4252d4], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, 0x4252ec
mov dword [0x4252d0], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edi, pe_nt_image_headers32
push edi
push 0x424530
push 0
push esi
push 2
mov esi, 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push edi
push 0x424330
push 0
push 0x4252ec
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov eax, dword [0x4252e0]
lea edi, [ebp - 0x188]
imul eax, dword [0x424318]
mov esi, 0x424ed0
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 [0x4252d8]
push dword [0x4252dc]
push ebx
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
push esi
push dword [0x424e58]
push dword [0x424e54]
push ebx
call dword [sym.imp.GDI32.dll_SetWindowExtEx]
mov eax, 0x425900
mov esi, 0x424e6c
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 0x41d03a
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
mov dword [ebp - 0x1a8], esi
test esi, esi
je 0x41d03a
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 0x41d03a
test byte [ebp - 0xed], 6
jne 0x41cbe6
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 0x41d03a
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x1a8], eax
test eax, eax
je 0x41d03a
lea eax, [ebp - 0x124]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
test eax, eax
je 0x41d03a
mov eax, dword [ebp - 0x110]
mov edi, dword [ebp - 0x114]
mov ecx, dword [0x4252d4]
add edi, dword [ebp - 0x124]
shl eax, 3
mov dword [0x42591c], eax
mov eax, dword [0x425900]
sub eax, ecx
mov dword [0x425910], edi
test eax, eax
jg 0x41cc19
xor eax, eax
mov dword [0x4252c4], eax
mov eax, dword [0x4252e8]
sub eax, dword [0x4252dc]
add eax, dword [0x425908]
add eax, ecx
test eax, eax
jg 0x41cc37
xor eax, eax
mov ecx, dword [0x425904]
mov esi, dword [0x4252d0]
sub ecx, esi
mov dword [0x4252c0], eax
test ecx, ecx
jg 0x41cc50
xor ecx, ecx
mov edx, dword [0x4252e4]
mov eax, edx
sub eax, dword [0x4252d8]
add eax, dword [0x42590c]
add eax, esi
mov dword [0x4252cc], ecx
test eax, eax
jg 0x41cc72
xor eax, eax
sub edx, ecx
mov dword [0x4252c8], eax
sub edx, eax
mov eax, edx
cdq
idiv edi
cmp word [0x424f78], 0
je 0x41cc8b
dec eax
cmp word [0x424fc8], 0
je 0x41cc96
dec eax
test eax, eax
jle 0x41d018
push 0x41c6a0
push ebx
call dword [sym.imp.GDI32.dll_SetAbortProc]
mov edi, eax
test edi, edi
js 0x41cdc0
push 0
push 0
push 0xbd
push dword [0x425e04]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x1b4], eax
test eax, eax
je 0x41d03a
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov edi, eax
mov dword [ebp - 0x1ac], edi
test edi, edi
je 0x41d03a
push dword [0x425e0c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
xor edx, edx
lea ecx, [ebp - 0x1a4]
lea esi, [eax + 1]
push esi
call fcn.0040fae3
push esi
mov esi, dword [ebp - 0x1a4]
push esi
push dword [0x425e0c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x41cd26
mov word [esi], ax
push 0
push dword [0x425e0c]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0x41c710
push dword [0x425e0c]
push 0xb
push dword [0x424f30]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [0x425918], eax
test eax, eax
jne 0x41cd6c
test esi, esi
je 0x41d03a
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
jmp 0x41d03a
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.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x1d0]
push eax
push ebx
call dword [sym.imp.GDI32.dll_StartDocW]
test eax, eax
jg 0x41ce3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x41cdc0
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 0x41cde4
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 0x41cdf9
push dword [ebp - 0x1b4]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
test esi, esi
je 0x41ce14
push ebx
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jg 0x41ce14
test edi, edi
jne 0x41ce14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [ebp - 0x1b8], 0
je 0x41d07e
cmp dword [0x425914], 0
push ebx
je 0x41d068
call dword [sym.imp.GDI32.dll_AbortDoc]
jmp 0x41d07e
mov ecx, dword [0x4252cc]
xor eax, eax
mov edx, dword [0x425910]
inc eax
mov dword [ebp - 0x1b8], eax
mov dword [0x4250b8], eax
mov eax, dword [0x4252c4]
mov dword [ebp - 0xe8], eax
mov eax, dword [0x4252e8]
sub eax, dword [0x4252c0]
mov dword [ebp - 0xe0], eax
mov eax, dword [0x4252e4]
sub eax, dword [0x4252c8]
cmp word [0x424f78], 0
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xdc], eax
je 0x41ce99
add ecx, edx
mov dword [ebp - 0xe4], ecx
cmp word [0x424fc8], 0
je 0x41ceab
sub eax, edx
mov dword [ebp - 0xdc], eax
mov edx, 0x7fffffff
mov ecx, edi
call fcn.0041c687
push 0xffffffffffffffec
push dword [0x425e04]
mov dword [ebp - 0x1a4], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x2000
cmp dword [0x425914], 0
mov dword [ebp - 0x1bc], eax
jne 0x41cff4
mov ecx, dword [0x4250b8]
mov eax, dword [ebp - 0x1a4]
test eax, eax
jle 0x41cff4
push ecx
push dword [0x424274]
lea eax, [ebp - 0xd8]
push 0x65
push eax
call fcn.004064f7
add esp, 0x10
lea eax, [ebp - 0xd8]
push eax
push 0x15
push dword [0x425918]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
xor edx, edx
mov ecx, ebx
call fcn.0041c79a
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 [0x42591c]
push ebx
mov dword [ebp - 0x198], eax
call dword [sym.imp.GDI32.dll_StartPage]
test eax, eax
jle 0x41d049
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.0041c79a
push ebx
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jle 0x41cdad
mov ecx, dword [0x4250b8]
mov edx, dword [ebp - 0x18c]
inc ecx
mov dword [0x4250b8], ecx
test edx, edx
je 0x41d00d
mov eax, dword [ebp - 0x1a4]
lea edi, [edi + edx*2]
sub eax, edx
mov dword [ebp - 0x1ac], edi
cmp dword [0x425914], 0
mov dword [ebp - 0x1a4], eax
je 0x41ceef
xor edi, edi
and dword [ebp - 0x1a0], edi
test esi, esi
je 0x41cdc0
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
jmp 0x41d042
test esi, esi
je 0x41d018
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
push 0x30
push dword [0x4242f0]
push dword [0x42429c]
push dword [0x425e0c]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor esi, esi
jmp 0x41cdc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x41d05c
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
and dword [ebp - 0x1a0], 0
jmp 0x41cdc0
call dword [sym.imp.GDI32.dll_EndDoc]
test eax, eax
jg 0x41d07e
test edi, edi
jne 0x41d07e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
call fcn.0041d0b5
push dword [0x424f3c]
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [0x425914], 0
jne 0x41d0a3
mov eax, edi
jmp 0x41d0a6
push 0xfffffffffffffffd
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421870
leave
ret