Function at 0x4157d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x15c
mov eax, dword [0x43c01c]
xor eax, esp
mov dword [esp + 0x158], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xa4], 0
mov dword [esp + 0x1c], eax
jne 0x415a2a
mov ecx, dword [edi + 0xbc]
mov eax, dword [edi + 0x98]
mov esi, dword [ecx + 4]
add eax, dword [edi + 0x78]
mov ebx, dword [edi + 0x94]
add ebx, dword [edi + 0x74]
push 0x80
lea edx, [esp + 0x64]
push edx
push esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetClassNameW]
push 0x30
lea eax, [esp + 0x34]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x64]
push edx
push 0
mov dword [esp + 0x3c], 0x30
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_GetClassInfoExW]
test eax, eax
je 0x415879
mov esi, dword [esp + 0x48]
test esi, esi
jne 0x4158a2
mov esi, dword [esp + 0x10]
push 0
push 0
push 0x7f
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
test esi, esi
jne 0x4158a2
push eax
mov eax, dword [esp + 0x14]
push 1
push 0x7f
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
test esi, esi
je 0x4158da
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x32
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 3
push 0
push 0
push eax
push ecx
push esi
mov esi, dword [esp + 0x34]
push edx
push ebx
push esi
call dword [sym.imp.USER32.dll_DrawIconEx]
add ebx, dword [esp + 0x14]
jmp 0x4158de
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push 0
push 0xf060
push 0
add ebx, 5
push eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
mov ecx, dword [edi + 0xb8]
test al, 3
mov eax, dword [ecx + 0x18]
je 0x41591d
mov edx, eax
shr edx, 1
not edx
test dl, 1
jne 0x415945
and eax, 0xfffffffd
jmp 0x415924
test al, 2
jne 0x415945
or eax, 2
mov edx, dword [ecx + 0x20]
test edx, edx
mov dword [ecx + 0x18], eax
je 0x415945
mov eax, 1
lea ebx, [ecx + 4]
mov esi, edx
call fcn.004133f0
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [edi + 0xbc]
cmp dword [eax + 0x68], 0
mov dword [esp + 0x10], 0xffffff
jne 0x41596a
mov dword [esp + 0x10], 0xe6e6e6
call fcn.00416e70
cmp dword [eax + 0x10], 0
je 0x41598f
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
call fcn.0041a8f0
add esp, 0xc
jmp 0x415993
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [edi + 0xbc]
cmp word [ecx + 0x70], 0
jne 0x4159bd
mov eax, ecx
push 0x100
lea edx, [eax + 0x70]
mov eax, dword [eax + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esp + 0x18]
mov edx, dword [edi + 0xac]
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x24], eax
push edx
mov dword [esp + 0x24], ebx
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
add eax, 0x14
push esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
call ebx
mov edi, dword [edi + 0xbc]
lea ecx, [edi + 0x70]
mov dword [esp + 0x18], eax
mov eax, ecx
lea edi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x415a00
push 0x40020
sub eax, edi
lea edx, [esp + 0x24]
push edx
sar eax, 1
push eax
push ecx
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x18]
push eax
push esi
call ebx
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00422218
mov esp, ebp
pop ebp
ret 4