Function at 0x1058d66
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c8
mov eax, dword [0x108e1f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x244]
push eax
push edi
mov dword [ebp - 0x298], edi
call dword [sym.imp.USER32.dll_BeginPaint]
mov esi, eax
push esi
lea ecx, [ebp - 0x250]
call fcn.01058364
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x100
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 3
lea ecx, [ebp - 0x250]
call fcn.010564a8
push dword [0x109864c]
lea ecx, [ebp - 0x284]
push esi
call fcn.01058707
fldz
fst dword [ebp - 0x2c8]
lea eax, [ebp - 0x204]
fst dword [ebp - 0x2c4]
lea edx, [eax + 2]
fild dword [ebp - 0x258]
fstp dword [ebp - 0x2c0]
fild dword [ebp - 0x254]
fstp dword [ebp - 0x2bc]
fst dword [ebp - 0x27c]
fst dword [ebp - 0x278]
fst dword [ebp - 0x274]
fstp dword [ebp - 0x270]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1058e47
sub eax, edx
sar eax, 1
je 0x1058e80
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x2c8]
push eax
lea eax, [ebp - 0x284]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x250]
call fcn.01058599
fld dword [ebp - 0x270]
push ebx
fmul qword [0x100bb70]
call sub.msvcrt.dll__ftol2_sse
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push edi
mov ebx, eax
call esi
push 0xffffffffffffffec
push edi
mov dword [ebp - 0x248], eax
call esi
mov ecx, dword [ebp - 0x248]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x25c]
lea edi, [eax + ebx]
mov eax, 0x300
and ecx, eax
cmp ecx, eax
jne 0x1058eee
fld dword [ebp - 0x274]
call sub.msvcrt.dll__ftol2_sse
mov ecx, eax
mov eax, dword [ebp - 0x258]
sub eax, ecx
sub eax, dword [ebp - 0x260]
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
jmp 0x1058f20
cmp ecx, 0x200
je 0x1058f0a
cmp byte [0x1098640], 0
jne 0x1058f0a
mov ebx, dword [ebp - 0x260]
add ebx, 0xa
jmp 0x1058f20
fld dword [ebp - 0x274]
call sub.msvcrt.dll__ftol2_sse
mov ebx, dword [ebp - 0x258]
sub ebx, eax
sub ebx, 0xa
mov esi, dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
push 5
push 5
push dword [ebp - 0x254]
mov dword [ebp - 0x26c], ebx
push dword [ebp - 0x258]
push edi
push 0
call esi
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x254]
push 5
push 5
add eax, 0xfffffffe
push eax
mov eax, dword [ebp - 0x258]
add eax, 0xfffffffe
push eax
add edi, 2
push edi
push 2
call esi
push dword [ebp - 0x248]
lea ecx, [ebp - 0x2b0]
mov edi, eax
call fcn.010586da
push edi
lea ecx, [ebp - 0x2b8]
call fcn.010586da
push dword [ebp - 0x248]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push edi
call esi
fld dword [ebp - 0x274]
add ebx, 0xfffffffe
xor esi, esi
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2a4], esi
call sub.msvcrt.dll__ftol2_sse
fld dword [ebp - 0x270]
inc eax
inc eax
mov dword [ebp - 0x2a0], eax
call sub.msvcrt.dll__ftol2_sse
mov dword [ebp - 0x29c], eax
push esi
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x250]
call fcn.010586b1
push 4
lea eax, [ebp - 0x2b8]
push eax
lea ecx, [ebp - 0x250]
call fcn.010586b1
push 4
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x250]
call fcn.0105867f
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x2a4]
mov dword [ebp - 0x248], 0x80ffffff
call fcn.0105639f
push dword [ebp - 0x254]
lea eax, [ebp - 0x2a4]
push dword [ebp - 0x258]
lea ecx, [ebp - 0x250]
push dword [ebp - 0x25c]
push dword [ebp - 0x260]
push eax
call fcn.01058488
lea eax, [ebp - 0x204]
lea ecx, [eax + 2]
pop ebx
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x1059057
sub eax, ecx
sar eax, 1
je 0x1059132
test byte [ebp - 0x264], 0xc0
jne 0x1059132
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x294], eax
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x290], eax
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x288], eax
push esi
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x250]
call fcn.0105867f
or dword [ebp - 0x264], 0xffffffff
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x290]
call fcn.0105639f
fild dword [ebp - 0x26c]
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
fstp dword [ebp - 0x26c]
fldz
fstp dword [ebp - 0x268]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x10590f1
lea ecx, [ebp - 0x290]
push ecx
lea ecx, [ebp - 0x26c]
push ecx
sub eax, edx
lea ecx, [ebp - 0x284]
push ecx
sar eax, 1
push eax
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x250]
call fcn.010584e7
push dword [ebp - 0x28c]
call sub.gdiplus.dll_GdipDeleteBrush
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x298]
call dword [sym.imp.USER32.dll_EndPaint]
push dword [ebp - 0x2a0]
call sub.gdiplus.dll_GdipDeleteBrush
push dword [ebp - 0x2b8]
call sub.gdiplus.dll_GdipDeleteRegion
push dword [ebp - 0x2b0]
call sub.gdiplus.dll_GdipDeleteRegion
push dword [ebp - 0x284]
call sub.gdiplus.dll_GdipDeleteFont
push dword [ebp - 0x250]
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01034b69
leave
ret 4