Function at 0x1006773
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c8
mov eax, dword [0x1009604]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push dword [0x100ab84]
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 [0x100a134], ebx
mov dword [0x100a138], ebx
call dword [sym.imp.USER32.dll_SetCursor]
push esi
call fcn.01005e0c
mov esi, 0x1009af0
push esi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov edi, 0x104
push edi
push 0x10091f0
push ebx
push esi
push 2
push eax
mov dword [ebp - 0x348], eax
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push edi
push 0x10093f8
push ebx
push esi
push ebx
push dword [ebp - 0x348]
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov eax, dword [0x1009ae0]
imul eax, dword [0x1009018]
push 0x17
pop ecx
mov esi, 0x100ab20
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 [0x1009ad8]
push dword [0x1009adc]
push dword [ebp - 0x338]
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
push 0
push dword [0x100a4b8]
push dword [0x100a4b4]
push dword [ebp - 0x338]
call dword [sym.imp.GDI32.dll_SetWindowExtEx]
mov eax, 0x100a120
mov edi, eax
mov esi, 0x100a4cc
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 0x1006d94
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
mov dword [ebp - 0x340], eax
je 0x1006d94
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 0x1006d94
test byte [ebp - 0x391], 6
jne 0x100697c
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 0x1006d94
push eax
push dword [ebp - 0x338]
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
mov dword [ebp - 0x340], eax
je 0x1006d94
lea eax, [ebp - 0x3c8]
push eax
push dword [ebp - 0x338]
call esi
test eax, eax
je 0x1006d94
xor edi, edi
inc edi
mov eax, dword [ebp - 0x3c8]
mov ecx, dword [ebp - 0x3b8]
mov edx, dword [0x100a120]
add ecx, eax
mov eax, dword [ebp - 0x3b4]
shl eax, 3
mov dword [0x100a13c], eax
mov eax, dword [0x1009ad4]
sub edx, eax
xor ebx, ebx
cmp edx, ebx
mov dword [0x100a130], ecx
mov dword [0x1009ac4], edx
jg 0x10069bd
mov dword [0x1009ac4], ebx
mov edx, dword [0x1009ae8]
sub edx, dword [0x1009adc]
add edx, dword [0x100a128]
add eax, edx
cmp eax, ebx
mov dword [0x1009ac0], eax
jg 0x10069e0
mov dword [0x1009ac0], ebx
mov eax, dword [0x100a124]
mov edx, dword [0x1009ad0]
sub eax, edx
cmp eax, ebx
mov dword [0x1009acc], eax
jg 0x10069fc
mov dword [0x1009acc], ebx
mov eax, dword [0x1009ae4]
mov esi, eax
sub esi, dword [0x1009ad8]
add esi, dword [0x100a12c]
add edx, esi
cmp edx, ebx
mov dword [0x1009ac8], edx
jg 0x1006a21
mov dword [0x1009ac8], ebx
sub eax, dword [0x1009ac8]
sub eax, dword [0x1009acc]
cdq
idiv ecx
cmp word [0x100a3e0], bx
je 0x1006a3a
dec eax
cmp word [0x100a430], bx
je 0x1006a44
dec eax
cmp eax, ebx
jle 0x1006d73
push 0x1005da3
push dword [ebp - 0x338]
call dword [sym.imp.GDI32.dll_SetAbortProc]
mov esi, eax
cmp esi, ebx
jl 0x1006cf5
push ebx
push ebx
push 0xbd
push dword [0x1009838]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
mov dword [ebp - 0x354], eax
je 0x1006d94
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
cmp eax, ebx
mov dword [ebp - 0x33c], eax
je 0x1006d94
push 0x104
lea eax, [ebp - 0x2d8]
push eax
push dword [0x1009830]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ebx
push dword [0x1009830]
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
push 0x10065cb
push dword [0x1009830]
push 0xb
push dword [0x100ab80]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
cmp eax, ebx
mov dword [0x100a138], eax
je 0x1006d94
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 0x1006b3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1006cf5
xor eax, eax
mov dword [ebp - 0x350], edi
mov dword [0x1009abc], edi
lea edi, [ebp - 0x364]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, dword [0x100a130]
stosd dword es:[edi], eax
mov eax, dword [0x1009ac4]
mov dword [ebp - 0x364], eax
mov eax, dword [0x1009ae8]
sub eax, dword [0x1009ac0]
xor esi, esi
mov dword [ebp - 0x35c], eax
mov eax, dword [0x1009acc]
mov dword [ebp - 0x360], eax
mov eax, dword [0x1009ae4]
sub eax, dword [0x1009ac8]
cmp word [0x100a3e0], si
mov dword [ebp - 0x348], ebx
mov dword [ebp - 0x344], ebx
mov dword [ebp - 0x358], eax
je 0x1006baf
add dword [ebp - 0x360], ecx
cmp word [0x100a430], si
je 0x1006bc0
sub eax, ecx
mov dword [ebp - 0x358], eax
push dword [ebp - 0x33c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0xffffffffffffffec
push dword [0x1009838]
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test ah, 0x20
je 0x1006beb
mov dword [ebp - 0x348], 0x20002
cmp dword [0x100a134], esi
jne 0x1006cf1
test ebx, ebx
jle 0x1006cf1
push dword [0x1009abc]
lea eax, [ebp - 0xd0]
push dword [0x10090c4]
push 0x64
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0xd0]
push eax
push 0x15
push dword [0x100a138]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov esi, dword [ebp - 0x338]
push 0
push esi
call fcn.01006657
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 [0x100a13c]
push esi
mov dword [ebp - 0x38c], 0x14
mov dword [ebp - 0x388], eax
call dword [sym.imp.GDI32.dll_StartPage]
test eax, eax
jle 0x1006d94
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.01006657
push esi
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jle 0x1006d94
and dword [ebp - 0x344], 0
mov eax, dword [ebp - 0x37c]
inc dword [0x1009abc]
test eax, eax
je 0x1006d71
mov ecx, dword [ebp - 0x33c]
lea ecx, [ecx + eax*2]
sub ebx, eax
cmp dword [0x100a134], 0
mov dword [ebp - 0x33c], ecx
je 0x1006bf7
xor esi, esi
xor ebx, ebx
cmp dword [ebp - 0x340], ebx
je 0x1006d1b
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 0x1006d2f
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
cmp dword [ebp - 0x344], ebx
je 0x1006d53
push dword [ebp - 0x338]
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jg 0x1006d53
cmp esi, ebx
jne 0x1006d53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 0x350], ebx
je 0x1006db7
cmp dword [0x100a134], ebx
push dword [ebp - 0x338]
je 0x1006da1
call dword [sym.imp.GDI32.dll_AbortDoc]
jmp 0x1006db7
xor ebx, ebx
push 0x30
push dword [0x1009054]
push dword [0x10090a4]
push dword [0x1009830]
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 0x1006cf3
call dword [sym.imp.GDI32.dll_EndDoc]
test eax, eax
jg 0x1006db7
cmp esi, ebx
jne 0x1006db7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x338]
call dword [sym.imp.GDI32.dll_DeleteDC]
call fcn.01005f3c
push dword [0x100ab88]
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [0x100a134], ebx
jne 0x1006de0
mov eax, esi
jmp 0x1006de3
push 0xfffffffffffffffd
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007147
leave
ret 4