Function at 0x4115d0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x465eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push edi
mov eax, dword [0x485300]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
xor ebp, ebp
cmp dword [esi + 0x20], ebp
je 0x4118af
cmp dword [esi + 0x30], ebp
jne 0x41160f
cmp dword [esi + 0x34], ebp
je 0x4118af
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
cmp ebx, ebp
je 0x4118af
mov edx, dword [0x4874f4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4874f4
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
mov dword [esp + 0x60], ebp
mov eax, dword [edi - 8]
add ebx, 1
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, ebx
or eax, ecx
jge 0x411661
mov ecx, ebx
lea eax, [esp + 0x10]
call fcn.004057d0
mov edi, dword [esp + 0x10]
mov ecx, dword [esi + 4]
push ebx
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp edi, ebp
jne 0x411675
xor eax, eax
jmp 0x411695
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x411680
sub eax, edx
sar eax, 1
js 0x4118c2
cmp eax, dword [edi - 8]
jg 0x4118c2
push 2
push 0x47356c
lea edx, [esp + 0x18]
mov dword [edi - 0xc], eax
push edx
mov word [edi + eax*2], bp
call fcn.0040b130
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x20]
add eax, 0x29c
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], ebp
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov ebx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c], edx
mov edx, dword [esi + 4]
push ecx
push edx
mov dword [esp + 0x5c], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esi + 0x20]
mov ecx, dword [edi + 4]
mov ebp, dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 0x18]
push eax
push ecx
call ebp
mov eax, dword [edi + 4]
lea edx, [esp + 0x20]
push edx
push eax
call ebp
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
mov eax, dword [esi + 4]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x34]
push edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x63c]
push ecx
push edi
call ebp
mov ecx, dword [esp + 0x10]
push 0x400
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x1c], eax
mov eax, dword [ecx - 0xc]
push eax
push ecx
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x14]
push eax
push edi
call ebp
mov ecx, dword [esi + 4]
push edi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
xor edi, edi
cmp eax, ecx
jl 0x4117f4
cmp dword [esi + 0x30], edi
je 0x4117f4
mov ebp, dword [esp + 0x20]
mov edx, eax
sub edx, ecx
add edx, ebp
cmp edx, ebx
mov edi, 1
jg 0x4117dd
mov ebx, edx
mov dword [esp + 0x20], ebx
jmp 0x4117f8
mov edx, ebx
sub edx, ebp
add ecx, edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ecx
mov dword [esi + 0x30], 0
jmp 0x4117f8
mov ebx, dword [esp + 0x20]
cmp dword [esi + 0x34], 0
mov ebp, dword [esp + 0x18]
je 0x411865
mov ecx, ebx
sub ecx, ebp
sub ecx, 1
je 0x411865
sub eax, dword [esp + 0x38]
cdq
idiv ecx
mov edx, dword [esp + 0x44]
sub edx, dword [esp + 0x3c]
add edx, edx
add edx, edx
mov ecx, eax
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add ecx, 2
add eax, edx
imul ecx, eax
sub ecx, dword [esp + 0x34]
js 0x411865
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x54]
add ecx, edx
cmp ecx, eax
jg 0x411850
mov eax, ecx
mov dword [esp + 0x24], eax
jmp 0x41186d
mov ecx, eax
sub ecx, edx
add dword [esp + 0x34], ecx
mov dword [esp + 0x24], eax
mov dword [esi + 0x34], 0
jmp 0x41186d
test edi, edi
je 0x411887
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
push 6
push eax
sub ebx, ebp
push ebx
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4118af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x54
ret
push 0x80070057
call fcn.00404c70
int3