Function at 0x1006793
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c8
mov eax, dword [0x10095ec]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push dword [0x100ae84]
mov dword [ebp - 4], eax
mov dword [ebp - 0x338], esi
mov dword [ebp - 0x354], ebx
mov dword [ebp - 0x340], ebx
mov dword [ebp - 0x344], ebx
mov dword [ebp - 0x350], ebx
mov dword [ebp - 0x33c], ebx
mov dword [0x100a434], ebx
mov dword [0x100a438], ebx
call dword [sym.imp.USER32.dll_SetCursor]
push esi
call fcn.01005e2c
mov esi, 0x1009df0
push esi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov edi, 0x104
push edi
push 0x10091d8
push ebx
push esi
push 2
push eax
mov dword [ebp - 0x348], eax
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push edi
push 0x10093e0
push ebx
push esi
push ebx
push dword [ebp - 0x348]
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov eax, dword [0x1009de0]
imul eax, dword [section..data]
push 0x17
pop ecx
mov esi, 0x100ae20
lea edi, [ebp - 0x334]
rep movsd dword es:[edi], dword [esi]
cdq
mov ecx, 0xfffffd30
idiv ecx
push 8
push dword [ebp - 0x338]
mov dword [ebp - 0x330], ebx
mov ebx, dword [sym.imp.GDI32.dll_SetMapMode]
mov dword [ebp - 0x334], eax
call ebx
push 0
push dword [0x1009dd8]
push dword [0x1009ddc]
push dword [ebp - 0x338]
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
push 0
push dword [0x100a7b8]
push dword [0x100a7b4]
push dword [ebp - 0x338]
call dword [sym.imp.GDI32.dll_SetWindowExtEx]
mov eax, 0x100a420
mov edi, eax
mov esi, 0x100a7cc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 2
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x338]
push eax
push esi
call dword [sym.imp.GDI32.dll_LPtoDP]
xor edi, edi
inc edi
push edi
push esi
call ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateFontIndirectW]
lea eax, [ebp - 0x334]
push eax
call ebx
test eax, eax
mov dword [ebp - 0x34c], eax
je 0x1006db4
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
mov dword [ebp - 0x340], eax
je 0x1006db4
push edi
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
lea eax, [ebp - 0x3c8]
push eax
push esi
mov esi, dword [sym.imp.GDI32.dll_GetTextMetricsW]
call esi
test eax, eax
je 0x1006db4
test byte [ebp - 0x391], 6
jne 0x100699c
push dword [ebp - 0x340]
push dword [ebp - 0x338]
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x318]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x334]
push eax
call ebx
test eax, eax
mov dword [ebp - 0x34c], eax
je 0x1006db4
push eax
push dword [ebp - 0x338]
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
mov dword [ebp - 0x340], eax
je 0x1006db4
lea eax, [ebp - 0x3c8]
push eax
push dword [ebp - 0x338]
call esi
test eax, eax
je 0x1006db4
xor edi, edi
inc edi
mov eax, dword [ebp - 0x3b8]
mov ecx, dword [ebp - 0x3c8]
mov edx, dword [0x100a420]
add ecx, eax
mov eax, dword [ebp - 0x3b4]
shl eax, 3
mov dword [0x100a43c], eax
mov eax, dword [0x1009dd4]
sub edx, eax
xor ebx, ebx
cmp edx, ebx
mov dword [0x100a430], ecx
mov dword [0x1009dc4], edx
jg 0x10069dd
mov dword [0x1009dc4], ebx
mov edx, dword [0x1009de8]
sub edx, dword [0x1009ddc]
add edx, dword [0x100a428]
add eax, edx
cmp eax, ebx
ret
mov dword [0x1009dc0], eax
jg 0x1006a00
mov dword [0x1009dc0], ebx
mov eax, dword [0x100a424]
mov edx, dword [0x1009dd0]
sub eax, edx
cmp eax, ebx
mov dword [0x1009dcc], eax
jg 0x1006a1c
mov dword [0x1009dcc], ebx
mov eax, dword [0x1009de4]
mov esi, eax
sub esi, dword [0x1009dd8]
add esi, dword [0x100a42c]
add edx, esi
cmp edx, ebx
mov dword [0x1009dc8], edx
jg 0x1006a41
mov dword [0x1009dc8], ebx
sub eax, dword [0x1009dc8]
sub eax, dword [0x1009dcc]
cdq
idiv ecx
cmp word [0x100a6e0], bx
je 0x1006a5a
dec eax
cmp word [0x100a730], bx
je 0x1006a64
dec eax
cmp eax, ebx
jle 0x1006d93
push 0x1005dc3
push dword [ebp - 0x338]
call dword [sym.imp.GDI32.dll_SetAbortProc]
mov esi, eax
cmp esi, ebx
jl 0x1006d15
push ebx
push ebx
push 0xbd
push dword [0x1009818]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
mov dword [ebp - 0x354], eax
je 0x1006db4
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
cmp eax, ebx
mov dword [ebp - 0x33c], eax
je 0x1006db4
push 0x104
lea eax, [ebp - 0x2d8]
push eax
push dword [0x1009810]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ebx
push dword [0x1009810]
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
push 0x10065eb
push dword [0x1009810]
push 0xb
push dword [0x100ae80]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
cmp eax, ebx
mov dword [0x100a438], eax
je 0x1006db4
lea eax, [ebp - 0x2d8]
push ebx
mov dword [ebp - 0x378], 0x14
mov dword [ebp - 0x374], eax
mov dword [ebp - 0x370], ebx
mov dword [ebp - 0x36c], ebx
mov dword [ebp - 0x368], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x378]
push eax
push dword [ebp - 0x338]
call dword [sym.imp.GDI32.dll_StartDocW]
test eax, eax
jg 0x1006b5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1006d15
xor eax, eax
mov dword [ebp - 0x350], edi
mov dword [0x1009dbc], edi
lea edi, [ebp - 0x364]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, dword [0x100a430]
stosd dword es:[edi], eax
mov eax, dword [0x1009dc4]
mov dword [ebp - 0x364], eax
mov eax, dword [0x1009de8]
sub eax, dword [0x1009dc0]
xor esi, esi
mov dword [ebp - 0x35c], eax
mov eax, dword [0x1009dcc]
mov dword [ebp - 0x360], eax
mov eax, dword [0x1009de4]
sub eax, dword [0x1009dc8]
cmp word [0x100a6e0], si
mov dword [ebp - 0x348], ebx
mov dword [ebp - 0x344], ebx
mov dword [ebp - 0x358], eax
je 0x1006bcf
add dword [ebp - 0x360], ecx
cmp word [0x100a730], si
je 0x1006be0
sub eax, ecx
mov dword [ebp - 0x358], eax
push dword [ebp - 0x33c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0xffffffffffffffec
push dword [0x1009818]
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test ah, 0x20
je 0x1006c0b
mov dword [ebp - 0x348], 0x20002
cmp dword [0x100a434], esi
jne 0x1006d11
test ebx, ebx
jle 0x1006d11
push dword [0x1009dbc]
lea eax, [ebp - 0xd0]
push dword [0x10090ac]
push 0x64
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0xd0]
push eax
push 0x15
push dword [0x100a438]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov esi, dword [ebp - 0x338]
push 0
push esi
call fcn.01006677
xor eax, eax
lea edi, [ebp - 0x38c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x100a43c]
push esi
mov dword [ebp - 0x38c], 0x14
mov dword [ebp - 0x388], eax
call dword [sym.imp.GDI32.dll_StartPage]
test eax, eax
jle 0x1006db4
lea eax, [ebp - 0x38c]
push eax
mov eax, dword [ebp - 0x348]
or eax, 0x2850
push eax
lea eax, [ebp - 0x364]
push eax
push ebx
push dword [ebp - 0x33c]
xor edi, edi
inc edi
push esi
mov dword [ebp - 0x344], edi
call dword [sym.imp.USER32.dll_DrawTextExW]
push edi
push esi
call fcn.01006677
push esi
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jle 0x1006db4
and dword [ebp - 0x344], 0
mov eax, dword [ebp - 0x37c]
inc dword [0x1009dbc]
test eax, eax
je 0x1006d91
mov ecx, dword [ebp - 0x33c]
lea ecx, [ecx + eax*2]
sub ebx, eax
cmp dword [0x100a434], 0
mov dword [ebp - 0x33c], ecx
je 0x1006c17
xor esi, esi
xor ebx, ebx
cmp dword [ebp - 0x340], ebx
je 0x1006d3b
push dword [ebp - 0x340]
push dword [ebp - 0x338]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x34c]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x33c], ebx
je 0x1006d4f
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
cmp dword [ebp - 0x344], ebx
je 0x1006d73
push dword [ebp - 0x338]
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jg 0x1006d73
cmp esi, ebx
jne 0x1006d73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 0x350], ebx
je 0x1006dd7
cmp dword [0x100a434], ebx
push dword [ebp - 0x338]
je 0x1006dc1
call dword [sym.imp.GDI32.dll_AbortDoc]
jmp 0x1006dd7
xor ebx, ebx
push 0x30
push dword [0x100903c]
push dword [0x100908c]
push dword [0x1009810]
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1006d13
call dword [sym.imp.GDI32.dll_EndDoc]
test eax, eax
jg 0x1006dd7
cmp esi, ebx
jne 0x1006dd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x338]
call dword [sym.imp.GDI32.dll_DeleteDC]
call fcn.01005f5c
push dword [0x100ae88]
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [0x100a434], ebx
jne 0x1006e00
mov eax, esi
jmp 0x1006e03
push 0xfffffffffffffffd
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007167
leave
ret 4