Function at 0x402c60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
lea eax, [ebp - 0x30]
push edi
mov esi, ecx
push eax
xor ebx, ebx
push dword [esi + 4]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x98]
cmp eax, ebx
je 0x402cea
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.COMCTL32.dll_ImageList_GetIconSize]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jl 0x402caf
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [esi + 0x68]
call dword [sym.imp.OLEAUT32.dll_OleLoadPictureFile]
push dword [ebp - 8]
push dword [esi + 0x98]
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
cmp byte [ebp + 0x10], bl
je 0x402ce4
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push ebx
push dword [esi + 0x98]
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x30], eax
test byte [esi + 0x50], 1
je 0x402d35
cmp dword [ebp - 0x10], ebx
jle 0x402cf9
add dword [ebp - 0x10], 8
push 0xe
pop edi
add dword [ebp - 0x10], edi
cmp dword [ebp - 0xc], edi
jg 0x402d07
mov dword [ebp - 0xc], edi
cmp byte [ebp + 0x10], bl
je 0x402d32
mov eax, dword [ebp - 0x28]
push 0x4000
mov dword [ebp - 0x18], eax
push 1
lea ecx, [eax - 0xe]
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], ecx
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], edi
call dword [sym.imp.USER32.dll_DrawFrameControl]
sub dword [ebp - 0x28], edi
mov eax, dword [0x416030]
mov edi, 0xff
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.00402047
push edi
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.004020ae
mov eax, dword [ebp - 4]
cmp dword [eax - 8], ebx
je 0x402e09
push dword [esi + 0x5c]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
jle 0x402d84
add dword [ebp - 0x10], 8
lea eax, [ebp - 0x20]
push 0xc60
mov edi, dword [sym.imp.USER32.dll_DrawTextA]
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x20], ebx
push dword [ebp - 4]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push dword [ebp + 0xc]
call edi
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
cmp dword [ebp - 0xc], eax
jg 0x402dc0
mov dword [ebp - 0xc], eax
cmp byte [ebp + 0x10], bl
je 0x402dfd
push 1
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SetBkMode]
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [esi + 0x64]
call dword [sym.imp.OLEAUT32.dll_OleLoadPictureFile]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [ebp - 0x30]
push 0x861
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
push dword [ebp + 0xc]
call edi
push dword [ebp - 8]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
call fcn.00401dbd
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc