Function at 0x40e270
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8ec
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
push 0x1408
mov eax, dword [esi]
call dword [eax + 0x8c]
push eax
call fcn.00406330
mov edx, dword [esi]
add esp, 4
mov ecx, esi
mov dword [ebp - 0x8e8], eax
push 0x1409
call dword [edx + 0x8c]
push eax
call fcn.00406330
mov edx, dword [esi]
add esp, 4
mov ecx, esi
mov dword [ebp - 0x8d8], eax
push 0x140a
call dword [edx + 0x8c]
push eax
call fcn.00406330
mov edx, dword [esi]
add esp, 4
mov ecx, esi
mov dword [ebp - 0x8dc], eax
push 0x140b
call dword [edx + 0x8c]
push eax
call fcn.00406330
mov edx, dword [esi]
add esp, 4
mov ecx, esi
mov dword [ebp - 0x8e0], eax
push 0x140c
call dword [edx + 0x8c]
push eax
call fcn.00406330
mov edx, dword [esi]
add esp, 4
mov ecx, esi
mov dword [ebp - 0x8e4], eax
push 0x140f
call dword [edx + 0x8c]
push eax
call fcn.00406330
mov edx, dword [esi]
add esp, 4
mov edi, eax
mov ecx, esi
mov dword [ebp - 0x8ec], edi
push 0x140e
call dword [edx + 0x8c]
push eax
call fcn.00406330
mov edx, dword [esi]
add esp, 4
mov dword [ebp - 0x8d0], eax
mov ecx, esi
lea eax, [ebp - 0xcc]
push 0x64
push eax
push 0x1405
call dword [edx + 0x8c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0xcc]
push eax
call fcn.004ed3b5
mov ebx, eax
add esp, 4
cmp ebx, 1
jg 0x40e396
mov ebx, 1
jmp 0x40e3a0
mov eax, 0x400
cmp ebx, eax
cmovge ebx, eax
mov ecx, dword [ebp - 0x8e8]
test ecx, ecx
jne 0x40e3ce
cmp dword [ebp - 0x8d8], ecx
jne 0x40e3ce
cmp dword [ebp - 0x8dc], ecx
jne 0x40e3ce
cmp dword [ebp - 0x8e0], ecx
jne 0x40e3ce
cmp dword [ebp - 0x8e4], ecx
je 0x40e527
mov eax, dword [esi + 0x28]
mov dword [esi + 0x2c], eax
test ecx, ecx
je 0x40e3e4
push 0x517d5c
mov ecx, esi
call fcn.0040dd00
cmp dword [ebp - 0x8d8], 0
je 0x40e3f9
push 0x517d94
mov ecx, esi
call fcn.0040dd00
cmp dword [ebp - 0x8dc], 0
je 0x40e40e
push str.0123456789
mov ecx, esi
call fcn.0040dd00
cmp dword [ebp - 0x8e0], 0
je 0x40e423
push 0x5170a0
mov ecx, esi
call fcn.0040dd00
cmp dword [ebp - 0x8e4], 0
je 0x40e438
push str.________._:_________
mov ecx, esi
call fcn.0040dd00
cmp dword [ebp - 0x8d0], 0
je 0x40e44d
push str.O0l1I
mov ecx, esi
call fcn.0040e540
test edi, edi
je 0x40e461
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x28]
sar eax, 1
cmp eax, ebx
jb 0x40e527
push 0x800
lea eax, [ebp - 0x8cc]
push 0
push eax
call fcn.004e46b0
add esp, 0xc
test ebx, ebx
jle 0x40e50a
nop
push 1
lea eax, [ebp - 0x8d4]
push 8
push eax
call fcn.004bfdb0
mov eax, dword [esi + 0x2c]
add esp, 0xc
sub eax, dword [esi + 0x28]
sar eax, 1
push 0
push eax
push dword [ebp - 0x8d0]
push dword [ebp - 0x8d4]
call fcn.004e2420
cmp dword [ebp - 0x8ec], 0
mov ecx, dword [esi + 0x28]
mov dword [ebp - 0x8d4], eax
mov dword [ebp - 0x8d0], edx
movzx edi, word [ecx + eax*2]
je 0x40e4f9
cmp ecx, dword [esi + 0x2c]
je 0x40e4f9
cmp word [ecx], di
je 0x40e4df
add ecx, 2
cmp ecx, dword [esi + 0x2c]
jne 0x40e4d0
jmp 0x40e4f9
mov eax, dword [esi + 0x2c]
lea edx, [ecx + 2]
sub eax, edx
and eax, 0xfffffffe
push eax
push edx
push ecx
call fcn.004e36d0
add esp, 0xc
add dword [esi + 0x2c], 0xfffffffe
dec ebx
mov word [ebp + ebx*2 - 0x8cc], di
test ebx, ebx
jg 0x40e480
lea eax, [ebp - 0x8cc]
mov ecx, esi
push eax
mov eax, dword [esi]
push 0x1404
call dword [eax + 0x8c]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e1f40
mov esp, ebp
pop ebp
ret