Function at 0x1008391
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x344]
sub esp, 0x3c4
mov eax, dword [0x100b660]
push ebx
push esi
xor ebx, ebx
push edi
push dword [0x100cbe4]
mov dword [ebp + 0x340], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], ebx
mov dword [ebp], ebx
mov dword [ebp - 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [0x100c194], ebx
mov dword [0x100c198], ebx
call dword [sym.imp.USER32.dll_SetCursor]
push dword [ebp + 0x34c]
call fcn.01007b12
mov esi, 0x100bb40
push esi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov edi, 0x104
push edi
push 0x100b250
push ebx
push esi
push 2
push eax
mov dword [ebp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push edi
push 0x100b458
push ebx
push esi
push ebx
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov eax, dword [0x100bb30]
imul eax, dword [0x100b068]
push 0x17
pop ecx
mov esi, 0x100cb80
lea edi, [ebp + 0x2e4]
rep movsd dword es:[edi], dword [esi]
cdq
mov ecx, 0xfffffd30
idiv ecx
push 8
push dword [ebp + 0x34c]
mov dword [ebp + 0x2e8], ebx
mov ebx, dword [sym.imp.GDI32.dll_SetMapMode]
mov dword [ebp + 0x2e4], eax
call ebx
push 0
push dword [0x100bb28]
push dword [0x100bb2c]
push dword [ebp + 0x34c]
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
push 0
push dword [0x100c518]
push dword [0x100c514]
push dword [ebp + 0x34c]
call dword [sym.imp.GDI32.dll_SetWindowExtEx]
mov eax, 0x100c180
mov edi, eax
mov esi, 0x100c52c
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 + 0x34c]
push eax
push esi
call dword [sym.imp.GDI32.dll_LPtoDP]
xor edi, edi
inc edi
push edi
push esi
call ebx
lea eax, [ebp + 0x2e4]
mov ebx, dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
call ebx
test eax, eax
mov dword [ebp - 4], eax
je 0x1008904
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
mov dword [ebp + 8], eax
je 0x1008904
push edi
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
lea eax, [ebp - 0x80]
push eax
push esi
mov esi, dword [sym.imp.GDI32.dll_GetTextMetricsW]
call esi
test eax, eax
je 0x1008904
test byte [ebp - 0x49], 6
jne 0x100856f
push dword [ebp + 8]
push dword [ebp + 0x34c]
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 + 0x300]
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x2e4]
push eax
call ebx
test eax, eax
mov dword [ebp - 4], eax
je 0x1008904
push eax
push dword [ebp + 0x34c]
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
mov dword [ebp + 8], eax
je 0x1008904
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x34c]
call esi
test eax, eax
je 0x1008904
xor edi, edi
inc edi
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x70]
mov edx, dword [0x100c180]
add ecx, eax
mov eax, dword [ebp - 0x6c]
shl eax, 3
mov dword [0x100c19c], eax
mov eax, dword [0x100bb24]
sub edx, eax
xor ebx, ebx
cmp edx, ebx
mov dword [0x100c190], ecx
mov dword [0x100bb14], edx
jg 0x10085a7
mov dword [0x100bb14], ebx
mov edx, dword [0x100bb38]
sub edx, dword [0x100bb2c]
add edx, dword [0x100c188]
add eax, edx
cmp eax, ebx
mov dword [0x100bb10], eax
jg 0x10085ca
mov dword [0x100bb10], ebx
mov eax, dword [0x100c184]
mov edx, dword [0x100bb20]
sub eax, edx
cmp eax, ebx
mov dword [0x100bb1c], eax
jg 0x10085e6
mov dword [0x100bb1c], ebx
mov eax, dword [0x100bb34]
mov esi, eax
sub esi, dword [0x100bb28]
add esi, dword [0x100c18c]
add edx, esi
cmp edx, ebx
mov dword [0x100bb18], edx
jg 0x100860b
mov dword [0x100bb18], ebx
sub eax, dword [0x100bb18]
sub eax, dword [0x100bb1c]
cdq
idiv ecx
cmp word [0x100c440], bx
je 0x1008624
dec eax
cmp word [0x100c490], bx
je 0x100862e
dec eax
cmp eax, ebx
jle 0x10088e3
push 0x1007ab0
push dword [ebp + 0x34c]
call dword [sym.imp.GDI32.dll_SetAbortProc]
mov esi, eax
cmp esi, ebx
jl 0x100887a
push ebx
push ebx
push 0xbd
push dword [0x100baa0]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x1008904
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x1008904
push 0x104
lea eax, [ebp + 0x10]
push eax
push dword [0x100ba98]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ebx
push dword [0x100ba98]
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
push 0x10081ef
push dword [0x100ba98]
push 0xb
push dword [0x100cbe0]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
cmp eax, ebx
mov dword [0x100c198], eax
je 0x1008904
lea eax, [ebp + 0x10]
push ebx
mov dword [ebp - 0x30], 0x14
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0x34c]
call dword [sym.imp.GDI32.dll_StartDocW]
test eax, eax
jg 0x1008708
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100887a
xor eax, eax
mov dword [ebp - 8], edi
mov dword [0x100bb0c], edi
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, dword [0x100c190]
stosd dword es:[edi], eax
mov eax, dword [0x100bb14]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x100bb38]
sub eax, dword [0x100bb10]
xor esi, esi
mov dword [ebp - 0x14], eax
mov eax, dword [0x100bb1c]
mov dword [ebp - 0x18], eax
mov eax, dword [0x100bb34]
sub eax, dword [0x100bb18]
cmp word [0x100c440], si
mov dword [ebp + 4], ebx
mov dword [ebp], ebx
mov dword [ebp - 0x10], eax
je 0x1008760
add dword [ebp - 0x18], ecx
cmp word [0x100c490], si
je 0x100876e
sub eax, ecx
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0xffffffffffffffec
push dword [0x100baa0]
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test ax, 0x2000
je 0x1008794
mov dword [ebp + 4], 0x20002
cmp dword [0x100c194], esi
jne 0x1008876
test ebx, ebx
jle 0x1008876
push dword [0x100bb0c]
lea eax, [ebp + 0x218]
push dword [0x100b114]
push 0x64
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x10
lea eax, [ebp + 0x218]
push eax
push 0x15
push dword [0x100c198]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov esi, dword [ebp + 0x34c]
push 0
push esi
call fcn.01008274
xor eax, eax
lea edi, [ebp - 0x44]
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 [0x100c19c]
push esi
mov dword [ebp - 0x44], 0x14
mov dword [ebp - 0x40], eax
call dword [sym.imp.GDI32.dll_StartPage]
test eax, eax
jle 0x1008904
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp + 4]
or eax, 0x2850
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp + 0xc]
xor edi, edi
inc edi
push esi
mov dword [ebp], edi
call dword [sym.imp.USER32.dll_DrawTextExW]
push edi
push esi
call fcn.01008274
push esi
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jle 0x1008904
and dword [ebp], 0
mov eax, dword [ebp - 0x34]
inc dword [0x100bb0c]
test eax, eax
je 0x10088e1
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + eax*2]
sub ebx, eax
cmp dword [0x100c194], 0
mov dword [ebp + 0xc], ecx
je 0x10087a0
xor esi, esi
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x1008897
push dword [ebp + 8]
push dword [ebp + 0x34c]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp + 0xc], ebx
je 0x10088a5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
cmp dword [ebp], ebx
je 0x10088c6
push dword [ebp + 0x34c]
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jg 0x10088c6
cmp esi, ebx
jne 0x10088c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 8], ebx
je 0x1008927
cmp dword [0x100c194], ebx
push dword [ebp + 0x34c]
je 0x1008911
call dword [sym.imp.GDI32.dll_AbortDoc]
jmp 0x1008927
xor ebx, ebx
push 0x30
push dword [0x100b0a4]
push dword [0x100b0f4]
push dword [0x100ba98]
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 0x1008878
call dword [sym.imp.GDI32.dll_EndDoc]
test eax, eax
jg 0x1008927
cmp esi, ebx
jne 0x1008927
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp + 0x34c]
call dword [sym.imp.GDI32.dll_DeleteDC]
call fcn.01007c33
push dword [0x100cbe8]
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [0x100c194], ebx
jne 0x1008950
mov eax, esi
jmp 0x1008953
push 0xfffffffffffffffd
pop eax
mov ecx, dword [ebp + 0x340]
pop edi
pop esi
pop ebx
call fcn.01008caa
add ebp, 0x344
leave
ret 4