Function at 0x40fb34
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb64
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x49c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
lea esi, [ebp - 0x48]
xor eax, eax
push ebp
push 0x4100cc
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x64]
push eax
call sub.gdi32.dll_CreateBrushIndirect
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x7c], eax
mov edx, 0x78
mov eax, dword [ebp - 0x60]
call fcn.0040fab0
mov dword [ebp - 0x78], eax
xor eax, eax
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x7c]
push eax
call sub.gdi32.dll_CreateBrushIndirect
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x88], eax
mov edx, 0x3c
mov eax, dword [ebp - 0x60]
call fcn.0040fab0
mov dword [ebp - 0x84], eax
xor eax, eax
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x88]
push eax
call sub.gdi32.dll_CreateBrushIndirect
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x94], eax
mov edx, 0x1e
mov eax, dword [ebp - 0x60]
call fcn.0040fab0
mov dword [ebp - 0x90], eax
xor eax, eax
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x94]
push eax
call sub.gdi32.dll_CreateBrushIndirect
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x18]
mov eax, dword [ebp - 4]
push esi
push edi
mov edi, esi
lea esi, [eax + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
push edi
call sub.gdi32.dll_GetBkColor
mov dword [ebp - 0x34], eax
push 0x4100dc
mov eax, dword [ebp - 0x18]
push eax
call sub.user32.dll_GetPropA
cmp eax, 1
jne 0x40fc53
mov edx, 0x78
mov eax, dword [ebp + 0xc]
call fcn.0040fab0
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x60]
push eax
push edi
call sub.gdi32.dll_SetBkColor
mov eax, dword [ebp + 0x10]
push eax
push edi
call sub.gdi32.dll_SetTextColor
cmp dword [ebp + 0xc], 0
jbe 0x40fc98
mov eax, dword [ebp - 4]
test byte [eax + 0x10], 1
je 0x40fc86
mov edx, 0x50
mov eax, dword [ebp + 0xc]
call fcn.0040fab0
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, esi
mov eax, edi
call fcn.004100e8
jmp 0x40fca3
mov eax, dword [ebp - 0x1c]
push eax
push esi
push edi
call sub.user32.dll_FillRect
mov eax, dword [ebp - 4]
test byte [eax + 0x10], 0x10
je 0x40fcc2
mov eax, dword [esi]
mov dword [esi], eax
mov eax, dword [esi + 8]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0xc], eax
push esi
push edi
lea edi, [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
test bl, bl
ja 0x40fcf2
mov eax, dword [ebp - 4]
test byte [eax + 0x10], 1
je 0x40fce7
mov eax, dword [ebp - 0x28]
push eax
push esi
push edi
call sub.user32.dll_FillRect
jmp 0x40fcf2
mov eax, dword [ebp - 0x2c]
push eax
push esi
push edi
call sub.user32.dll_FillRect
push esi
push edi
mov edi, esi
lea esi, [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [ebp - 4]
test byte [eax + 0x10], 1
je 0x40fd12
mov eax, dword [esi]
mov dword [esi], eax
mov eax, dword [esi + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x495]
push eax
push 0x400
push 0xd
mov eax, dword [ebp - 0x18]
push eax
call sub.user32.dll_SendMessageA
cmp dword [ebp + 0xc], 0
jbe 0x40fd37
push 1
push edi
call sub.gdi32.dll_SetBkMode
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 1
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x42f65c]
push eax
call sub.user32.dll_LoadImageA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
test byte [eax + 0x10], 4
je 0x40fe2a
mov eax, dword [ebp + 0x10]
push eax
push edi
call sub.gdi32.dll_SetTextColor
mov eax, dword [esi]
add eax, dword [ebp - 0x14]
jno 0x40fd7e
call fcn.00403d38
add eax, 5
jno 0x40fd88
call fcn.00403d38
mov dword [esi], eax
mov eax, dword [esi + 4]
mov dword [esi + 4], eax
push 0x25
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x495]
push eax
push edi
call sub.user32.dll_DrawTextA
lea eax, [ebp - 0x49c]
lea edx, [ebp - 0x495]
mov ecx, 0x401
call fcn.00404bcc
cmp dword [ebp - 0x49c], 0
jne 0x40fdd6
add dword [esi], 6
jno 0x40fdcb
call fcn.00403d38
add dword [esi + 4], 6
jno 0x40fdd6
call fcn.00403d38
push 3
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [esi + 4]
add eax, 5
jno 0x40fdf5
call fcn.00403d38
push eax
mov eax, dword [esi]
sub eax, dword [ebp - 0x14]
jno 0x40fe02
call fcn.00403d38
push eax
push edi
call sub.user32.dll_DrawIconEx
mov eax, dword [esi]
mov dword [esi], eax
mov eax, dword [esi + 4]
mov dword [esi + 4], eax
push 1
push edi
call sub.gdi32.dll_SetBkMode
mov eax, dword [ebp + 0x10]
push eax
push edi
call sub.gdi32.dll_SetTextColor
jmp 0x40fed8
cmp dword [ebp + 0xc], 0
jbe 0x40fed8
mov eax, dword [ebp + 0x10]
push eax
push edi
call sub.gdi32.dll_SetTextColor
mov eax, dword [esi]
add eax, dword [ebp - 0x14]
jno 0x40fe4a
call fcn.00403d38
add eax, 5
jno 0x40fe54
call fcn.00403d38
mov dword [esi], eax
mov eax, dword [esi + 4]
mov dword [esi + 4], eax
cmp dword [ebp - 0x14], 0
jne 0x40fe77
sub dword [esi], 3
jno 0x40fe6c
call fcn.00403d38
sub dword [esi + 4], 2
jno 0x40fe77
call fcn.00403d38
push 0x25
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x495]
push eax
push edi
call sub.user32.dll_DrawTextA
push 3
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [esi + 4]
add eax, 5
jno 0x40fea8
call fcn.00403d38
push eax
mov eax, dword [esi]
sub eax, dword [ebp - 0x14]
jno 0x40feb5
call fcn.00403d38
push eax
push edi
call sub.user32.dll_DrawIconEx
mov eax, dword [esi]
mov dword [esi], eax
mov eax, dword [esi + 4]
mov dword [esi + 4], eax
push 1
push edi
call sub.gdi32.dll_SetBkMode
mov eax, dword [ebp + 0x10]
push eax
push edi
call sub.gdi32.dll_SetTextColor
push 0x25
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x495]
push eax
push edi
call sub.user32.dll_DrawTextA
test bl, bl
jbe 0x41007b
mov dword [ebp - 0x70], 1
xor eax, eax
mov dword [ebp - 0x6c], eax
xor eax, eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x70]
push eax
call sub.gdi32.dll_CreateBrushIndirect
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
push edi
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push esi
push edi
mov edi, esi
lea esi, [eax + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov edx, 0x6e
mov eax, dword [ebp - 0x34]
call fcn.0040fab0
push eax
push 1
push 0
call sub.gdi32.dll_CreatePen
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
push edi
call sub.gdi32.dll_SelectObject
xor eax, eax
mov al, bl
push eax
xor eax, eax
mov al, bl
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
push edi
call sub.gdi32.dll_RoundRect
mov eax, dword [ebp - 0x30]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 4]
test byte [eax + 0x10], 1
je 0x40ff93
mov eax, dword [ebp - 0x90]
push eax
push 1
push 0
call sub.gdi32.dll_CreatePen
mov dword [ebp - 0x30], eax
jmp 0x40ffa6
mov eax, dword [ebp - 0x84]
push eax
push 1
push 0
call sub.gdi32.dll_CreatePen
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
push edi
call sub.gdi32.dll_SelectObject
push 2
push 2
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
push edi
call sub.gdi32.dll_RoundRect
mov eax, dword [ebp - 0x30]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 4]
push esi
push edi
mov edi, esi
lea esi, [eax + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [ebp - 0x34]
push eax
push 1
push 0
call sub.gdi32.dll_CreatePen
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
push edi
call sub.gdi32.dll_SelectObject
xor eax, eax
mov al, bl
sub eax, 2
jl 0x41005f
inc eax
mov dword [ebp - 0x38], eax
mov eax, dword [esi]
mov dword [esi], eax
mov eax, dword [esi + 8]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0xc], eax
xor edx, edx
mov dl, bl
push edx
xor edx, edx
mov dl, bl
push edx
push eax
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
push edi
call sub.gdi32.dll_RoundRect
xor eax, eax
mov al, bl
push eax
xor eax, eax
mov al, bl
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
push edi
call sub.gdi32.dll_RoundRect
dec dword [ebp - 0x38]
jne 0x410009
mov eax, dword [ebp - 0x30]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x1c]
push eax
push edi
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x20]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x34]
push eax
push edi
call sub.gdi32.dll_SetBkColor
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x28]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x2c]
push eax
call sub.gdi32.dll_DeleteObject
push edi
mov eax, dword [ebp - 0x18]
push eax
call sub.user32.dll_ReleaseDC
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4100d3
lea eax, [ebp - 0x49c]
call fcn.0040495c
ret