Function at 0x415761
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3dc
mov eax, dword [0x41c194]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
push dword [0x41dfd0]
mov dword [ebp - 0x3bc], esi
mov dword [ebp - 0x3ac], esi
mov dword [ebp - 0x3a8], esi
mov dword [ebp - 0x3c0], esi
mov dword [ebp - 0x3b0], esi
mov dword [0x41d5b0], esi
mov dword [0x41d5ac], esi
call dword [sym.imp.USER32.dll_SetCursor]
push 8
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xa
push ebx
mov dword [0x41dc10], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x5a
push ebx
mov dword [0x41dc14], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x6e
push ebx
mov dword [0x41dc18], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x6f
push ebx
mov dword [0x41dc1c], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x70
push ebx
mov dword [0x41dc20], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x71
push ebx
mov dword [0x41dc24], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, 0x41dc00
mov dword [0x41dc28], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x104
push 0x41c490
push esi
push edi
push 2
mov esi, 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push 0x104
push 0x41c280
push 0
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov eax, dword [0x41dc18]
lea edi, [ebp - 0x390]
imul eax, dword [0x41c26c]
mov esi, 0x41dfe0
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 - 0x390], eax
mov dword [ebp - 0x38c], esi
call dword [sym.imp.GDI32.dll_SetMapMode]
push esi
push dword [0x41dc20]
push dword [0x41dc1c]
push ebx
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
push esi
push dword [0x41e698]
push dword [0x41e694]
push ebx
call dword [sym.imp.GDI32.dll_SetWindowExtEx]
mov eax, 0x41d5c0
mov esi, 0x41e6ac
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 - 0x390]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov edi, eax
mov dword [ebp - 0x3b8], edi
test edi, edi
je 0x415d2e
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
mov dword [ebp - 0x3ac], esi
test esi, esi
je 0x415d2e
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
lea eax, [ebp - 0x32c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
test eax, eax
je 0x415d2e
test byte [ebp - 0x2f5], 6
jne 0x41599f
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 - 0x374]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x390]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov edi, eax
mov dword [ebp - 0x3b8], edi
test edi, edi
je 0x415d2e
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x3ac], eax
test eax, eax
je 0x415d2e
lea eax, [ebp - 0x32c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
test eax, eax
je 0x415d2e
mov eax, dword [ebp - 0x318]
mov edi, dword [ebp - 0x31c]
mov ecx, dword [0x41dc24]
add edi, dword [ebp - 0x32c]
shl eax, 3
mov dword [0x41d5a8], eax
mov eax, dword [0x41d5c0]
sub eax, ecx
mov dword [0x41d5b4], edi
test eax, eax
jg 0x4159d2
xor eax, eax
mov dword [0x41dc34], eax
mov eax, dword [0x41dc10]
sub eax, dword [0x41dc1c]
add eax, dword [0x41d5c8]
add eax, ecx
test eax, eax
jg 0x4159f0
xor eax, eax
mov ecx, dword [0x41d5c4]
mov esi, dword [0x41dc28]
sub ecx, esi
mov dword [0x41dc38], eax
test ecx, ecx
jg 0x415a09
xor ecx, ecx
mov edx, dword [0x41dc14]
mov eax, edx
sub eax, dword [0x41dc20]
add eax, dword [0x41d5cc]
add eax, esi
mov dword [0x41dc2c], ecx
test eax, eax
jg 0x415a2b
xor eax, eax
sub edx, eax
mov dword [0x41dc30], eax
sub edx, ecx
mov eax, edx
cdq
idiv edi
cmp word [0x41df20], 0
je 0x415a44
dec eax
cmp word [0x41df70], 0
je 0x415a4f
dec eax
test eax, eax
jle 0x415d0c
push 0x415460
push ebx
call dword [sym.imp.GDI32.dll_SetAbortProc]
mov esi, eax
test esi, esi
js 0x415d04
push 0
push 0
push 0xbd
push dword [0x41d1d4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x3bc], eax
test eax, eax
je 0x415d2e
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov esi, eax
mov dword [ebp - 0x3b0], esi
test esi, esi
je 0x415d2e
push 0x104
lea eax, [ebp - 0x2e0]
push eax
push dword [0x41d1dc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0
push dword [0x41d1dc]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0x4154d0
push dword [0x41d1dc]
push 0xb
push dword [0x41dfd8]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [0x41d5ac], eax
test eax, eax
je 0x415d2e
lea eax, [ebp - 0x2e0]
mov dword [ebp - 0x3d8], 0x14
mov dword [ebp - 0x3d4], eax
xor eax, eax
push eax
mov dword [ebp - 0x3d0], eax
mov dword [ebp - 0x3cc], eax
mov dword [ebp - 0x3c8], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x3d8]
push eax
push ebx
call dword [sym.imp.GDI32.dll_StartDocW]
test eax, eax
jg 0x415b49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x3a8]
jmp 0x415d36
xor eax, eax
mov ecx, dword [0x41dc2c]
inc eax
mov edx, dword [0x41d5b4]
mov dword [ebp - 0x3c0], eax
lea edi, [ebp - 0x2f0]
mov dword [0x41dc3c], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x41dc34]
mov dword [ebp - 0x2f0], eax
mov eax, dword [0x41dc10]
sub eax, dword [0x41dc38]
mov dword [ebp - 0x2e8], eax
mov eax, dword [0x41dc14]
sub eax, dword [0x41dc30]
cmp word [0x41df20], 0
mov dword [ebp - 0x2ec], ecx
mov dword [ebp - 0x2e4], eax
je 0x415bb4
add ecx, edx
mov dword [ebp - 0x2ec], ecx
cmp word [0x41df70], 0
je 0x415bc6
sub eax, edx
mov dword [ebp - 0x2e4], eax
mov edx, 0x7fffffff
mov ecx, esi
call fcn.00415443
push 0xffffffffffffffec
push dword [0x41d1d4]
mov edi, eax
mov dword [ebp - 0x3b4], edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x2000
cmp dword [0x41d5b0], 0
mov dword [ebp - 0x3c4], eax
jne 0x415cfe
mov ecx, dword [0x41dc3c]
test edi, edi
jle 0x415cfe
push ecx
push dword [0x41c1d0]
lea eax, [ebp - 0xd8]
push 0x65
push eax
call fcn.00408176
add esp, 0x10
lea eax, [ebp - 0xd8]
push eax
push 0x15
push dword [0x41d5ac]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
xor edx, edx
mov ecx, ebx
call fcn.00415554
xor eax, eax
lea edi, [ebp - 0x3a4]
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x41d5a8]
mov dword [ebp - 0x3a4], 0x14
mov dword [ebp - 0x3a0], eax
call dword [sym.imp.GDI32.dll_StartPage]
test eax, eax
jle 0x415d2e
mov edi, dword [ebp - 0x3b4]
xor eax, eax
inc eax
mov dword [ebp - 0x3a8], eax
lea eax, [ebp - 0x3a4]
push eax
mov eax, dword [ebp - 0x3c4]
neg eax
sbb eax, eax
and eax, 0x20002
add eax, 0x2850
push eax
lea eax, [ebp - 0x2f0]
push eax
push edi
push esi
push ebx
call dword [sym.imp.USER32.dll_DrawTextExW]
xor edx, edx
mov ecx, ebx
inc edx
call fcn.00415554
push ebx
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jle 0x415b38
mov ecx, dword [0x41dc3c]
mov eax, dword [ebp - 0x394]
inc ecx
mov dword [0x41dc3c], ecx
test eax, eax
je 0x415d0c
sub edi, eax
lea esi, [esi + eax*2]
cmp dword [0x41d5b0], 0
mov dword [ebp - 0x3b0], esi
mov dword [ebp - 0x3b4], edi
je 0x415c06
xor esi, esi
xor edi, edi
jmp 0x415d38
mov edi, dword [ebp - 0x3a8]
jmp 0x415d38
push 0x30
push dword [0x41c244]
push dword [0x41c1f0]
push dword [0x41d1dc]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov esi, eax
mov eax, dword [ebp - 0x3ac]
test eax, eax
je 0x415d56
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x3b8]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x3b0], 0
je 0x415d6b
push dword [ebp - 0x3bc]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
test edi, edi
je 0x415d86
push ebx
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jg 0x415d86
test esi, esi
jne 0x415d86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 0x3c0], 0
je 0x415db7
cmp dword [0x41d5b0], 0
push ebx
je 0x415da1
call dword [sym.imp.GDI32.dll_AbortDoc]
jmp 0x415db7
call dword [sym.imp.GDI32.dll_EndDoc]
test eax, eax
jg 0x415db7
test esi, esi
jne 0x415db7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
call fcn.00415df0
push dword [0x41dfcc]
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [0x41d5b0], 0
jne 0x415ddc
mov eax, esi
jmp 0x415ddf
push 0xfffffffffffffffd
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b4e0
mov esp, ebp
pop ebp
ret