Function at 0x4107a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x430]
sub esp, 0x430
push 0xffffffffffffffff
push 0x504bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x55306c]
xor eax, ebp
mov dword [ebp + 0x42c], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x438]
cmp eax, 7
jne 0x4109e1
mov edx, dword [esi]
mov ecx, edx
push 0x3ef
call fcn.004220c0
test eax, eax
je 0x410805
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 0x18]
mov edx, dword [esi]
push 0x3ee
mov ecx, edx
call fcn.004220c0
test eax, eax
je 0x410820
mov edx, dword [eax]
mov ecx, eax
push 0
call dword [edx + 0x18]
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x34]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
test ecx, ecx
je 0x410839
mov eax, dword [ecx]
call dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4109c5
mov eax, dword [esi]
lea ecx, [ebp]
push 0x33
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov dword [eax + 0x9c], 0x333333
xor eax, eax
push 0x52eb08
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 7
mov word [ebp], ax
call fcn.00406aa0
mov dword [ebp - 4], 0
lea eax, [ebp + 0x18]
push 0x410
push 0
push eax
call fcn.004da2d0
mov eax, dword [esi]
lea ecx, [ebp + 0x18]
add esp, 0xc
push 0x208
push ecx
push dword [eax + 0x74]
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
mov dword [ebp - 0x14], 0
lea ecx, [ebp + 0x18]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4108e0
sub ecx, edx
lea eax, [ebp + 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.00406aa0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0
je 0x4109cc
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x24]
call fcn.0041b3b0
test eax, eax
je 0x4109cc
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x10]
cmp edx, 8
jb 0x41095c
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410952
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410ad4
push edx
push ecx
call fcn.004c2683
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x14]
cmp edx, 8
jb 0x4109b1
mov ecx, dword [ebp]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4109a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410ad9
push edx
push ecx
call fcn.004c2683
add esp, 8
xor eax, eax
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 7
mov word [ebp], ax
mov al, 1
jmp 0x410ab1
mov eax, dword [esi]
push 0x529620
push dword [eax + 0x74]
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x41091e
cmp eax, 8
jne 0x410aaf
mov edx, dword [esi]
mov ecx, edx
push 0x3ef
call fcn.004220c0
test eax, eax
je 0x410a07
mov edx, dword [eax]
mov ecx, eax
push 0
call dword [edx + 0x18]
mov edx, dword [esi]
push 0x3ee
mov ecx, edx
call fcn.004220c0
test eax, eax
je 0x410a22
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 0x18]
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x34]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
test ecx, ecx
je 0x410a3b
mov eax, dword [ecx]
call dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4109c5
push 0x412
lea eax, [ebp + 0x18]
push 0
push eax
call fcn.004da2d0
mov eax, dword [esi]
lea ecx, [ebp + 0x18]
add esp, 0xc
push 0x208
push ecx
push dword [eax + 0x74]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp]
call fcn.004067e0
mov dword [ebp - 4], 2
cmp dword [ebp + 0x10], 0
jne 0x410970
mov eax, dword [esi]
push 0x52eb08
mov dword [eax + 0x9c], 0xbfb7b6
mov eax, dword [esi]
push dword [eax + 0x74]
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x410970
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x42c]
xor ecx, ebp
call fcn.004c1e08
lea esp, [ebp + 0x430]
pop ebp
ret 8
call fcn.004e546f
call fcn.004e546f
int3