Function at 0x41b626
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1d4
mov eax, dword [0x421148]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [0x421dc8]
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 [0x4227a4], ecx
mov dword [0x4227a8], 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 [0x422178], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x5a
push ebx
mov dword [0x422174], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x6e
push ebx
mov dword [0x422170], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x6f
push ebx
mov dword [0x42216c], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x70
push ebx
mov dword [0x422168], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x71
push ebx
mov dword [0x422164], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, 0x42217c
mov dword [0x422160], eax
push esi
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetLocalTime]
mov edi, 0x100
push edi
push 0x421460
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 0x421260
push 0
push 0x42217c
push 0
push esi
call dword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetTimeFormatW]
mov eax, dword [0x422170]
lea edi, [ebp - 0x188]
imul eax, dword [0x421248]
mov esi, 0x421d60
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 [0x422168]
push dword [0x42216c]
push ebx
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
push esi
push dword [0x421ce8]
push dword [0x421ce4]
push ebx
call dword [sym.imp.GDI32.dll_SetWindowExtEx]
mov eax, 0x422790
mov esi, 0x421cfc
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 0x41bcba
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
mov dword [ebp - 0x1a8], esi
test esi, esi
je 0x41bcba
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 0x41bcba
test byte [ebp - 0xed], 6
jne 0x41b866
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.msvcrt.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 0x41bcba
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x1a8], eax
test eax, eax
je 0x41bcba
lea eax, [ebp - 0x124]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
test eax, eax
je 0x41bcba
mov eax, dword [ebp - 0x110]
mov edi, dword [ebp - 0x114]
mov ecx, dword [0x422164]
add edi, dword [ebp - 0x124]
shl eax, 3
mov dword [0x4227ac], eax
mov eax, dword [0x422790]
sub eax, ecx
mov dword [0x4227a0], edi
test eax, eax
jg 0x41b899
xor eax, eax
mov dword [0x422154], eax
mov eax, dword [0x422178]
sub eax, dword [0x42216c]
add eax, dword [0x422798]
add eax, ecx
test eax, eax
jg 0x41b8b7
xor eax, eax
mov ecx, dword [0x422794]
mov esi, dword [0x422160]
sub ecx, esi
mov dword [0x422150], eax
test ecx, ecx
jg 0x41b8d0
xor ecx, ecx
mov edx, dword [0x422174]
mov eax, edx
sub eax, dword [0x422168]
add eax, dword [0x42279c]
add eax, esi
mov dword [0x42215c], ecx
test eax, eax
jg 0x41b8f2
xor eax, eax
sub edx, eax
mov dword [0x422158], eax
sub edx, ecx
mov eax, edx
cdq
idiv edi
cmp word [0x421e08], 0
je 0x41b90b
dec eax
cmp word [0x421e58], 0
je 0x41b916
dec eax
test eax, eax
jle 0x41bc98
push 0x41b320
push ebx
call dword [sym.imp.GDI32.dll_SetAbortProc]
mov edi, eax
test edi, edi
js 0x41ba40
push 0
push 0
push 0xbd
push dword [0x422c8c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x1b4], eax
test eax, eax
je 0x41bcba
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 0x41bcba
push dword [0x422c94]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
xor edx, edx
lea ecx, [ebp - 0x1a4]
lea esi, [eax + 1]
push esi
call fcn.0040e3ca
push esi
mov esi, dword [ebp - 0x1a4]
push esi
push dword [0x422c94]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x41b9a6
mov word [esi], ax
push 0
push dword [0x422c94]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0x41b390
push dword [0x422c94]
push 0xb
push dword [0x421dc0]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [0x4227a8], eax
test eax, eax
jne 0x41b9ec
test esi, esi
je 0x41bcba
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
jmp 0x41bcba
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 0x41baba
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x41ba40
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 0x41ba64
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 0x41ba79
push dword [ebp - 0x1b4]
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalUnlock]
test esi, esi
je 0x41ba94
push ebx
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jg 0x41ba94
test edi, edi
jne 0x41ba94
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
cmp dword [ebp - 0x1b8], 0
je 0x41bcfe
cmp dword [0x4227a4], 0
push ebx
je 0x41bce8
call dword [sym.imp.GDI32.dll_AbortDoc]
jmp 0x41bcfe
mov ecx, dword [0x42215c]
xor eax, eax
mov edx, dword [0x4227a0]
inc eax
mov dword [ebp - 0x1b8], eax
mov dword [0x421f48], eax
mov eax, dword [0x422154]
mov dword [ebp - 0xe8], eax
mov eax, dword [0x422178]
sub eax, dword [0x422150]
mov dword [ebp - 0xe0], eax
mov eax, dword [0x422174]
sub eax, dword [0x422158]
cmp word [0x421e08], 0
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xdc], eax
je 0x41bb19
add ecx, edx
mov dword [ebp - 0xe4], ecx
cmp word [0x421e58], 0
je 0x41bb2b
sub eax, edx
mov dword [ebp - 0xdc], eax
mov edx, 0x7fffffff
mov ecx, edi
call fcn.0041b302
push 0xffffffffffffffec
push dword [0x422c8c]
mov dword [ebp - 0x1a4], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x2000
cmp dword [0x4227a4], 0
mov dword [ebp - 0x1bc], eax
jne 0x41bc74
mov ecx, dword [0x421f48]
mov eax, dword [ebp - 0x1a4]
test eax, eax
jle 0x41bc74
push ecx
push dword [0x4211a4]
lea eax, [ebp - 0xd8]
push 0x65
push eax
call fcn.0040581f
add esp, 0x10
lea eax, [ebp - 0xd8]
push eax
push 0x15
push dword [0x4227a8]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
xor edx, edx
mov ecx, ebx
call fcn.0041b41a
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 [0x4227ac]
push ebx
mov dword [ebp - 0x198], eax
call dword [sym.imp.GDI32.dll_StartPage]
test eax, eax
jle 0x41bcc9
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.0041b41a
push ebx
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jle 0x41ba2d
mov ecx, dword [0x421f48]
mov edx, dword [ebp - 0x18c]
inc ecx
mov dword [0x421f48], ecx
test edx, edx
je 0x41bc8d
mov eax, dword [ebp - 0x1a4]
lea edi, [edi + edx*2]
sub eax, edx
mov dword [ebp - 0x1ac], edi
cmp dword [0x4227a4], 0
mov dword [ebp - 0x1a4], eax
je 0x41bb6f
xor edi, edi
and dword [ebp - 0x1a0], edi
test esi, esi
je 0x41ba40
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
jmp 0x41bcc2
test esi, esi
je 0x41bc98
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
push 0x30
push dword [0x421220]
push dword [0x4211cc]
push dword [0x422c94]
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 0x41ba46
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x41bcdc
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
and dword [ebp - 0x1a0], 0
jmp 0x41ba40
call dword [sym.imp.GDI32.dll_EndDoc]
test eax, eax
jg 0x41bcfe
test edi, edi
jne 0x41bcfe
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.0041bd35
push dword [0x421dcc]
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [0x4227a4], 0
jne 0x41bd23
mov eax, edi
jmp 0x41bd26
push 0xfffffffffffffffd
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fb30
leave
ret