Function at 0x4051e0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x435c50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov ebx, dword [esp + 0x8c]
xor esi, esi
push ebx
mov dword [esp + 0x88], esi
call dword [sym.imp.GDI32.dll_SaveDC]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], esi
push eax
push ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x48]
push eax
push 1
push esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x20], esi
call dword [sym.imp.GDI32.dll_CreatePen]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
mov dword [esp + 0x1c], eax
call edi
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push ebx
call edi
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push esi
push esi
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_RoundRect]
push 0xffffffffffffffff
lea ecx, [esp + 0x30]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [ebp + 0x30]
push eax
push 1
push esi
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push ebx
mov dword [esp + 0x2c], eax
call edi
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push esi
push esi
push edx
mov edx, dword [esp + 0x38]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_RoundRect]
push 0xffffffffffffffff
lea eax, [esp + 0x30]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x5c], ecx
mov ah, byte [ebp + 0x34]
xor ecx, ecx
mov cl, byte [ebp + 0x35]
mov dword [esp + 0x60], edx
mov word [esp + 0x64], ax
mov eax, dword [ebp + 0x34]
xor edx, edx
push 1
mov dh, cl
xor ecx, ecx
shr eax, 0x10
mov word [esp + 0x6a], dx
mov edx, dword [esp + 0x38]
mov ch, al
mov eax, dword [esp + 0x3c]
mov word [esp + 0x6c], cx
mov dword [esp + 0x70], edx
xor ecx, ecx
xor edx, edx
mov ch, byte [ebp + 0x38]
mov dl, byte [ebp + 0x39]
mov dword [esp + 0x74], eax
xor eax, eax
mov word [esp + 0x78], cx
mov ecx, dword [ebp + 0x38]
mov ah, dl
xor edx, edx
mov word [esp + 0x7a], ax
lea eax, [esp + 0x20]
shr ecx, 0x10
mov dh, cl
push 1
push eax
lea ecx, [esp + 0x68]
push 2
push ecx
push ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], 1
mov word [esp + 0x82], si
mov word [esp + 0x90], dx
mov word [esp + 0x92], si
call dword [sym.imp.MSIMG32.dll_GradientFill]
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x4053a3
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x14], esi
je 0x4053b2
lea ecx, [esp + 0x14]
call fcn.00409350
mov edx, dword [ebp + 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, dword [0x43e040]
inc eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ecx
cmp dword [ecx - 0xc], 1
lea edx, [ecx - 0xc]
mov byte [esp + 0x84], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
jg 0x4053e9
cmp eax, dword [ecx - 4]
jle 0x405460
mov ecx, dword [ecx - 8]
cmp eax, ecx
mov dword [esp + 0x18], ecx
jge 0x4053f8
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call fcn.00402b50
test eax, eax
jne 0x40540e
xor ecx, ecx
jmp 0x40545c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea ecx, [ecx + ecx + 2]
lea eax, [edx + edx + 2]
cmp eax, ecx
jb 0x405443
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov eax, ecx
lea esi, [edx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
xor esi, esi
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov dword [ecx - 8], edx
call fcn.00402ca0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
push eax
push ecx
mov ecx, dword [ebp + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x10]
call fcn.00402bb0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
mov word [edx + eax*2], si
mov eax, dword [ebp + 0x3c]
push eax
push ebx
call edi
mov ecx, dword [ebp + 0x28]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x58], edi
mov edi, dword [ebp + 0x50]
mov dword [esp + 0x4c], eax
sub edx, 8
lea eax, [edi + eax + 8]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x48]
add ecx, 5
sub edx, 5
cmp eax, 0xffffffff
mov dword [esp + 0x50], ecx
mov dword [esp + 0x58], edx
jle 0x4054ff
mov ecx, dword [ebp + 0x44]
push esi
push 4
push 5
push ebx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x4c]
push 0x10
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [esp + 0x28]
push edx
push ebx
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, dword [esp + 0x10]
mov edx, dword [0x43e044]
pop edi
pop esi
lea ecx, [eax - 0xc]
pop ebp
cmp ecx, edx
pop ebx
je 0x405555
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x405555
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.0042329e
add esp, 4
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
add esp, 0x78
ret 4