Function at 0x4074d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x654
mov eax, dword [0x432ebc]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0xffffffffffffffeb
push 0
mov dword [esp + 0x664], eax
mov eax, dword [0x43c418]
mov ecx, dword [eax + 8]
push 0
push 0x229
push ecx
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x54], 1
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov edi, dword [ebp + 8]
lea eax, [esp + 0x3c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [0x43c40c]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
push 0
push ecx
push 0
push edi
sub edx, ebx
push edx
sub eax, dword [esp + 0x50]
push eax
push 0
push 0
push 0x50800215
push 0x42b940
push str.SysListView32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x43c3d4], eax
mov eax, 0x30303030
mov ecx, 0x100
lea edi, [esp + 0x258]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x258]
push str.00:00:0000000000
push ecx
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x38], 0
mov dword [esp + 0x28], 2
call fcn.00416c4e
mov ecx, dword [0x43c3d4]
mov ebx, dword [sym.imp.USER32.dll_GetDC]
add esp, 8
lea edx, [esp + 0xc]
push edx
push 1
lea eax, [esp + 0x260]
push eax
push ecx
call ebx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [0x43c3d8]
test eax, eax
jne 0x407608
push str.Arial_Cyr
push eax
mov edx, dword [esp + 0x18]
push 2
push eax
push eax
push 0xcc
push eax
push eax
push eax
push 0x190
push eax
push eax
push eax
push edx
call dword [sym.imp.GDI32.dll_CreateFontW]
mov dword [0x43c3d8], eax
push eax
mov eax, dword [0x43c3d4]
push eax
call ebx
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
call edi
mov ecx, dword [0x43c3d8]
mov edx, dword [ebp + 8]
push ecx
push edx
call ebx
push eax
call edi
mov ecx, dword [0x43c418]
call fcn.0040aa70
mov eax, 0x39ec
xor edi, edi
mov dword [esp + 0x14], eax
mov ecx, dword [0x43c418]
cmp word [eax + ecx + 0x3a0], 0
lea eax, [eax + ecx + 0x3a0]
mov dword [esp + 0x18], eax
je 0x40768a
lea edx, [esp + 0xc]
push edx
push eax
call fcn.004164a0
mov ecx, dword [0x43c3d4]
add esp, 4
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call ebx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0xc]
cmp eax, edi
jle 0x40768a
mov edi, eax
mov eax, dword [esp + 0x14]
sub eax, 0x544
mov dword [esp + 0x14], eax
jns 0x407640
push 0xe8
call fcn.004124e0
add esp, 4
lea edx, [esp + 0x1c]
push edx
push 0
mov dword [esp + 0x30], eax
mov eax, dword [0x43c3d4]
push 0x1061
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], 0
call esi
mov eax, dword [0x43c3d4]
lea ecx, [esp + 0xc]
push ecx
push 9
lea edx, [esp + 0x260]
push edx
push eax
mov dword [esp + 0x30], 2
call ebx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [esp + 0xc]
push 0xe6
lea edi, [ecx + edi + 7]
call fcn.004124e0
mov ecx, dword [0x43c3d4]
mov edx, dword [esp + 0x10]
add esp, 4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
push 1
push 0x1061
push ecx
mov dword [esp + 0x34], edx
call esi
mov ecx, dword [0x43c3d4]
lea edx, [esp + 0xc]
push edx
push 7
lea eax, [esp + 0x260]
push eax
push ecx
call ebx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0xc]
push 0xe7
add edi, eax
call fcn.004124e0
mov ecx, dword [0x43c3d4]
mov edx, dword [esp + 0x10]
add esp, 4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
push 2
push 0x1061
push ecx
mov dword [esp + 0x34], edx
call esi
mov ecx, dword [0x43c3d4]
lea edx, [esp + 0xc]
push edx
push 0xe
lea eax, [esp + 0x260]
push eax
push ecx
call ebx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0xc]
push 0xe9
add edi, eax
call fcn.004124e0
mov edx, dword [esp + 0x10]
add esp, 4
mov dword [esp + 0x28], eax
mov ecx, dword [0x43c3d4]
lea eax, [esp + 0x1c]
push eax
push 3
push 0x1061
push ecx
mov dword [esp + 0x34], edx
call esi
mov ecx, dword [0x43c3d4]
lea edx, [esp + 0xc]
push edx
push 9
lea eax, [esp + 0x260]
push eax
push ecx
call ebx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0xc]
push 0xea
add edi, eax
call fcn.004124e0
mov ecx, dword [0x43c3d4]
mov edx, dword [esp + 0x10]
add esp, 4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
push 4
push 0x1061
push ecx
mov dword [esp + 0x34], edx
call esi
mov ecx, dword [0x43c3d4]
lea edx, [esp + 0xc]
push edx
push 9
lea eax, [esp + 0x260]
push eax
push ecx
call ebx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
add edi, dword [esp + 0xc]
push 0xeb
mov dword [esp + 0x1c], edi
call fcn.004124e0
mov ecx, dword [0x43c3d4]
mov edx, dword [esp + 0x10]
add esp, 4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
push 5
push 0x1061
push ecx
mov dword [esp + 0x34], edx
call esi
xor eax, eax
mov ecx, 0xd
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x204]
mov dword [esp + 0x5c], 0xd
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov ebx, 0x39ec
mov dword [esp + 0x14], edx
mov eax, dword [0x43c418]
cmp word [ebx + eax + 0x3a0], 0
je 0x407a22
mov edx, dword [0x43c3d4]
lea ecx, [esp + 0x5c]
push ecx
push 0
push 0x104d
push edx
mov dword [esp + 0x70], 1
mov dword [esp + 0x74], 0
call esi
mov ecx, dword [0x43c418]
mov edi, eax
mov eax, dword [esp + 0x14]
mov dword [eax], edi
lea eax, [esp + 0x170]
push eax
push edi
lea edx, [ebx + ecx + 0x3a0]
mov ecx, dword [0x43c3d4]
push 0x1074
push ecx
mov dword [esp + 0x188], 0
mov dword [esp + 0x194], edx
call esi
mov edx, dword [0x43c418]
lea ecx, [esp + 0x108]
push ecx
push edi
lea eax, [ebx + edx + 0x260]
mov edx, dword [0x43c3d4]
push 0x1074
push edx
mov dword [esp + 0x120], 1
mov dword [esp + 0x12c], eax
call esi
mov eax, dword [0x43c418]
lea edx, [esp + 0x1a4]
push edx
push edi
lea ecx, [ebx + eax + 0x2a0]
mov eax, dword [0x43c3d4]
push 0x1074
push eax
mov dword [esp + 0x1bc], 2
mov dword [esp + 0x1c8], ecx
call esi
mov ecx, dword [0x43c418]
lea eax, [esp + 0xa0]
push eax
push edi
lea edx, [ebx + ecx + 0x2e0]
mov ecx, dword [0x43c3d4]
push 0x1074
push ecx
mov dword [esp + 0xb8], 3
mov dword [esp + 0xc4], edx
call esi
mov edx, dword [0x43c418]
lea ecx, [esp + 0xd4]
push ecx
push edi
lea eax, [ebx + edx + 0x320]
mov edx, dword [0x43c3d4]
push 0x1074
push edx
mov dword [esp + 0xec], 4
mov dword [esp + 0xf8], eax
call esi
mov eax, dword [0x43c418]
lea edx, [esp + 0x13c]
push edx
push edi
lea ecx, [ebx + eax + 0x360]
mov eax, dword [0x43c3d4]
push 0x1074
push eax
mov dword [esp + 0x154], 5
mov dword [esp + 0x160], ecx
call esi
mov ecx, dword [esp + 0x14]
sub ecx, 4
sub ebx, 0x544
mov dword [esp + 0x14], ecx
jns 0x4078a1
mov edx, dword [0x43c3d4]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x1010
push edx
call esi
mov ecx, dword [0x43c3d4]
lea eax, [esp + 0x54]
push eax
push 1
push 0x1010
push ecx
call esi
mov edx, dword [0x43c418]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, dword [edx + 0x4190]
push 8
call edi
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x58]
sub edx, ecx
imul edx, ebx
push 1
add edx, ecx
mov ecx, dword [0x43c3d4]
lea eax, [edx + eax*2]
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
push eax
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [ebp + 8]
lea edx, [esp + 0x90]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 1
push 8
call edi
push 4
mov ebx, eax
call edi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x98]
add eax, ecx
lea ecx, [eax + ebx*2]
mov ebx, dword [esp + 0x1c]
push ecx
push ebx
push edx
push 0x10
call edi
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [0x43c3d4]
push 0
push 0
push 0x1037
push ecx
call esi
mov edx, dword [0x43c3d4]
or eax, 0x20
push eax
push 0
push 0x1036
push edx
call esi
mov ecx, dword [esp + 0x65c]
mov eax, dword [0x43c3d4]
call fcn.00416328
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret