Function at 0x46fbb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509dfe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x654
push ebx
push edi
lea eax, [ebp - 0x38]
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp + 8]
mov edi, ecx
push eax
push ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x38], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0x38], 0
jne 0x46fc12
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push ebx
call fcn.004c92d0
add esp, 4
test eax, eax
je 0x46fc45
push 0xff
call fcn.004484e0
add esp, 4
test al, al
jne 0x46fc45
call fcn.004661f0
test al, al
jne 0x46fc45
mov dword [edi + 0x6e8], 1
jmp 0x46fc4f
mov dword [edi + 0x6e8], 0
call fcn.00403230
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46fc6b
push 0x80004005
call fcn.00402f10
mov eax, dword [edx]
mov ecx, edx
push esi
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 0
call fcn.00403230
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46fc9c
push 0x80004005
call fcn.00402f10
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x30], ebx
cmp dword [edi + 0x6e8], 0
mov byte [ebp - 4], 1
je 0x46fd34
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push ebx
push eax
mov ecx, edi
call fcn.0046f720
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040c400
mov edx, dword [ebp - 0x1c]
or esi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46fcf5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.0046fa10
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0040c400
mov edx, dword [ebp - 0x1c]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46fd2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x28]
push 0x104
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameW]
mov ecx, 0x51df1c
lea eax, [ebp - 0x250]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46fd7a
test dx, dx
je 0x46fd76
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46fd7a
add eax, 4
add ecx, 4
test dx, dx
jne 0x46fd54
xor eax, eax
jmp 0x46fd7f
sbb eax, eax
or eax, 1
test eax, eax
je 0x4709bf
mov ecx, str.SynTrackCursorWindowClass
lea eax, [ebp - 0x250]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46fdb8
test dx, dx
je 0x46fdb4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46fdb8
add eax, 4
add ecx, 4
test dx, dx
jne 0x46fd92
xor eax, eax
jmp 0x46fdbd
sbb eax, eax
or eax, 1
test eax, eax
je 0x4709bf
call fcn.00403230
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46fde1
push 0x80004005
call fcn.00402f10
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
push 0x104
lea eax, [ebp - 0x660]
mov byte [ebp - 4], 4
push eax
push dword [ebp - 0x38]
call fcn.004c7890
add esp, 0xc
test eax, eax
je 0x46fe1c
lea eax, [ebp - 0x660]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040c500
call fcn.00403230
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46fe38
push 0x80004005
call fcn.00402f10
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
push 0x104
lea eax, [ebp - 0x458]
mov byte [ebp - 4], 5
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
lea eax, [ebp - 0x458]
jne 0x46fe85
push 0x104
push eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x46fe8e
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040c500
cmp dword [ebx - 0xc], 0
je 0x4700f2
cmp dword [esi - 0xc], 0
je 0x4700f2
test byte [0x652fc0], 4
je 0x46fec0
push ebx
push str.Looking_for_Package_user_model_ID__s._n
push 3
push str.CSynOSD::GetOSDAppIDFromHandle
call fcn.004cb410
add esp, 0x10
mov eax, dword [ebx - 0xc]
lea ecx, [ebp - 0x30]
sub eax, dword [esi - 0xc]
sub eax, 0xf
push eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0040da50
mov ebx, dword [edi + 0x48]
cmp ebx, dword [edi + 0x4c]
mov edi, dword [ebp - 0x3c]
mov byte [ebp - 4], 6
je 0x4700c6
mov eax, dword [ebp - 0x14]
nop
mov ecx, dword [ebx]
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x4700ba
mov esi, dword [ecx + 0x38]
cmp esi, dword [ecx + 0x3c]
je 0x4700ba
lea esp, [esp]
mov eax, dword [ebp - 0x28]
mov ecx, esi
push dword [eax - 0xc]
lea eax, [ebp - 0x24]
push eax
call fcn.0040d8b0
or dword [ebp - 0x10], 1
push dword [ebp - 0x28]
mov byte [ebp - 4], 7
push dword [eax]
call fcn.004d47f9
add esp, 8
test eax, eax
jne 0x46ff81
push dword [ebp - 0x40]
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0040da50
or dword [ebp - 0x10], 2
xor ecx, ecx
test edi, edi
mov dword [ebp - 4], 8
setne cl
test ecx, ecx
je 0x46fc61
push edi
push dword [eax]
call fcn.004d47f9
add esp, 8
test eax, eax
jne 0x46ff81
mov eax, dword [ebp - 0x20]
mov byte [ebp + 0xb], 1
test dword [eax + 0x68], 0x100
jne 0x46ff85
mov byte [ebp + 0xb], 0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 7
test dl, 2
je 0x46ffc0
mov eax, dword [ebp - 0x48]
and edx, 0xfffffffd
add eax, 0xfffffff0
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x44], eax
or ecx, 0xffffffff
add eax, 0xc
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46ffc0
mov edx, dword [ebp - 0x44]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 6
test dl, 1
je 0x46ffef
and edx, 0xfffffffe
or ecx, 0xffffffff
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46ffef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xb], 0
mov eax, dword [ebp - 0x20]
jne 0x470009
add esi, 4
cmp esi, dword [eax + 0x3c]
jne 0x46ff10
jmp 0x4700b7
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
lea ecx, [eax + 0x44]
push esi
call fcn.0040c400
mov esi, dword [ebp - 0x28]
mov eax, 0x50daec
cmp dword [esi - 0xc], 0
cmovne eax, esi
mov esi, dword [ebp - 0x20]
push eax
lea ecx, [esi + 0x34]
call fcn.0040c500
mov eax, dword [ebp - 0x2c]
mov ecx, 0x50daec
cmp dword [eax - 0xc], 0
cmovne ecx, eax
push ecx
lea ecx, [esi + 0x5c]
call fcn.0040c500
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040c140
mov eax, dword [ebp - 0x1c]
mov ecx, 0x50daec
mov byte [ebp - 4], 9
cmp dword [eax - 0xc], 0
cmovne ecx, eax
push ecx
lea ecx, [esi + 0x14]
call fcn.0040c500
test byte [0x652fc0], 4
je 0x470096
push dword [ebp - 0x18]
push str.Found___Package_user_model_ID_is__d._n
push 3
push str.CSynOSD::GetOSDAppIDFromHandle
call fcn.004cb410
add esp, 0x10
mov edx, dword [ebp - 0x1c]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4700b7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
add ebx, 4
cmp ebx, dword [eax + 0x4c]
jne 0x46fef0
add edi, 0xfffffff0
mov byte [ebp - 4], 5
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4700e4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
jne 0x47097a
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x28]
cmp dword [ebx - 0xc], 0
je 0x470276
test byte [0x652fc0], 4
je 0x47011d
push ebx
push str.Looking_for_Package_names__s._n
push 3
push str.CSynOSD::GetOSDAppIDFromHandle
call fcn.004cb410
add esp, 0x10
mov eax, dword [ebp - 0x14]
mov edi, dword [edi + 0x48]
cmp edi, dword [eax + 0x4c]
je 0x470276
lea esp, [esp]
mov eax, dword [edi]
mov dword [ebp + 8], eax
test eax, eax
je 0x47025c
mov esi, dword [eax + 0x28]
cmp esi, dword [eax + 0x2c]
je 0x47025c
lea esp, [esp]
push ebx
push dword [esi]
call fcn.004d47f9
add esp, 8
test eax, eax
mov eax, dword [ebp + 8]
jne 0x4701b6
mov ecx, dword [eax + 0x68]
test cl, 0x20
je 0x4701b6
test cl, 2
je 0x470192
push 0
call fcn.004c7a40
add esp, 4
cmp eax, 0xb
jl 0x47018f
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x6e8], 0
mov eax, dword [ebp + 8]
jne 0x4701c6
jmp 0x4701b6
mov eax, dword [ebp + 8]
test byte [eax + 0x68], 4
je 0x4701c6
push 0
call fcn.004c7a40
add esp, 4
cmp eax, 0xb
jl 0x4701c3
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x6e8], 0
mov eax, dword [ebp + 8]
je 0x4701c6
add esi, 4
cmp esi, dword [eax + 0x2c]
jne 0x470150
jmp 0x47025c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
lea ecx, [eax + 0x34]
push esi
call fcn.0040c400
mov eax, dword [ebp - 0x2c]
mov ecx, 0x50daec
mov esi, dword [ebp + 8]
cmp dword [eax - 0xc], 0
cmovne ecx, eax
push ecx
lea ecx, [esi + 0x5c]
call fcn.0040c500
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040c140
mov eax, dword [ebp - 0x1c]
mov ecx, 0x50daec
mov byte [ebp - 4], 0xa
cmp dword [eax - 0xc], 0
cmovne ecx, eax
push ecx
lea ecx, [esi + 0x14]
call fcn.0040c500
test byte [0x652fc0], 4
je 0x47023b
push dword [ebp - 0x18]
push str.Found___Package_App_ID_is__d._n
push 3
push str.CSynOSD::GetOSDAppIDFromHandle
call fcn.004cb410
add esp, 0x10
mov edx, dword [ebp - 0x1c]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47025c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
add edi, 4
cmp edi, dword [eax + 0x4c]
jne 0x470130
mov ebx, dword [ebp - 0x18]
test ebx, ebx
jne 0x47097a
mov eax, dword [ebp - 0x34]
cmp dword [eax - 0xc], 0
je 0x470431
test byte [0x652fc0], 4
je 0x4702a1
push eax
push str.Looking_for_Titles__s._n
push 3
push str.CSynOSD::GetOSDAppIDFromHandle
call fcn.004cb410
add esp, 0x10
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebx + 0x48]
cmp edi, dword [ebx + 0x4c]
je 0x470434
mov ebx, dword [edi]
test ebx, ebx
je 0x4703db
mov esi, dword [ebx + 0x18]
cmp esi, dword [ebx + 0x1c]
je 0x4703db
lea eax, [ebp - 0x458]
push eax
push dword [esi]
call fcn.004d47f9
add esp, 8
test eax, eax
jne 0x470423
mov eax, dword [ebx + 0x68]
test al, 0x10
je 0x470423
test al, 2
je 0x4703f6
push 0
call fcn.004c7a40
add esp, 4
cmp eax, 0xb
jl 0x4703f6
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x6e8], 0
je 0x470423
mov eax, dword [ebx + 4]
lea ecx, [ebx + 0x24]
push esi
mov dword [ebp - 0x18], eax
call fcn.0040c400
mov eax, dword [ebp - 0x2c]
lea esi, [ebx + 0x5c]
mov ecx, 0x50daec
cmp dword [eax - 0xc], 0
je 0x470337
mov ecx, eax
mov edx, ecx
lea eax, [edx + 2]
mov dword [ebp - 0x24], eax
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x470340
sub edx, dword [ebp - 0x24]
sar edx, 1
push edx
push ecx
mov ecx, esi
call fcn.0040dad0
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp + 8]
call fcn.0040c140
mov ecx, dword [ebp + 8]
add ebx, 0x14
mov byte [ebp - 4], 0xb
cmp dword [ecx - 0xc], 0
jne 0x47037d
mov ecx, 0x50daec
mov edx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x470382
sub edx, esi
sar edx, 1
push edx
push ecx
mov ecx, ebx
call fcn.0040dad0
test byte [0x652fc0], 4
je 0x4703ba
push dword [ebp - 0x18]
push str.Found___Title_App_ID_is__d._n
push 3
push str.CSynOSD::GetOSDAppIDFromHandle
call fcn.004cb410
add esp, 0x10
mov edx, dword [ebp + 8]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4703db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x14]
add edi, 4
cmp edi, dword [ebx + 0x4c]
jne 0x4702b0
cmp dword [ebp - 0x18], 0
jne 0x470977
jmp 0x470434
test byte [ebx + 0x68], 4
je 0x470315
push 0
call fcn.004c7a40
add esp, 4
cmp eax, 0xb
jl 0x470315
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x6e8], 0
je 0x470315
add esi, 4
cmp esi, dword [ebx + 0x1c]
jne 0x4702c6
jmp 0x4703db
mov ebx, dword [ebp - 0x14]
test byte [0x652fc0], 4
je 0x470458
lea eax, [ebp - 0x250]
push eax
push str.Looking_for_Window_Class__s._n
push 3
push str.CSynOSD::GetOSDAppIDFromHandle
call fcn.004cb410
add esp, 0x10
mov esi, dword [ebp - 0x14]
xor eax, eax
mov ebx, dword [ebx + 0x48]
mov dword [ebp + 8], eax
cmp ebx, dword [esi + 0x4c]
je 0x470686
lea esp, [esp]
test eax, eax
jne 0x47067b
mov esi, dword [ebx]
mov dword [ebp - 0x20], esi
test esi, esi
je 0x47066c
mov edi, dword [esi + 8]
cmp edi, dword [esi + 0xc]
je 0x47066c
mov ecx, dword [edi]
lea eax, [ebp - 0x250]
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4704c6
test dx, dx
je 0x4704c2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4704c6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4704a0
xor eax, eax
jmp 0x4704cb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x47051b
test byte [esi + 0x68], 2
je 0x4704f1
push eax
call fcn.004c7a40
add esp, 4
cmp eax, 0xb
jl 0x4704f1
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x6e8], 0
je 0x47051b
jmp 0x470512
test byte [esi + 0x68], 4
je 0x470512
push 0
call fcn.004c7a40
add esp, 4
cmp eax, 0xb
jl 0x470512
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x6e8], 0
jne 0x47051b
test dword [esi + 0x68], 0x100
je 0x47052c
add edi, 4
cmp edi, dword [esi + 0xc]
jne 0x470491
jmp 0x470669
test byte [esi + 0x68], 1
je 0x470569
mov eax, dword [ebp - 0x2c]
cmp dword [eax - 0xc], 0
je 0x470569
mov eax, dword [ebp - 0x20]
mov esi, dword [esi + 0x50]
cmp esi, dword [eax + 0x54]
je 0x470566
lea eax, [ebp - 0x660]
push eax
push dword [esi]
call fcn.004d47f9
add esp, 8
test eax, eax
je 0x4705b2
mov eax, dword [ebp - 0x20]
add esi, 4
cmp esi, dword [eax + 0x54]
jne 0x470546
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
test byte [esi + 0x68], 1
je 0x47057a
test eax, eax
je 0x47066c
mov eax, dword [esi + 4]
lea ecx, [esi + 0x14]
push edi
mov dword [ebp - 0x18], eax
call fcn.0040c400
mov eax, dword [esi + 0x50]
cmp eax, dword [esi + 0x54]
je 0x4705bf
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0040c810
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
or dword [ebp - 0x10], 4
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 0xc
jmp 0x4705dc
mov esi, dword [ebp - 0x20]
mov eax, 1
mov dword [ebp + 8], eax
jmp 0x47056c
push 0x50daec
lea ecx, [ebp - 0x24]
call fcn.0040c140
mov edx, eax
or dword [ebp - 0x10], 8
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xd
mov ecx, dword [ebp - 0x20]
push edx
lea ecx, [ecx + 0x5c]
call fcn.0040c400
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xc
test dl, 8
je 0x47061d
mov edi, dword [ebp - 0x24]
and edx, 0xfffffff7
add edi, 0xfffffff0
mov dword [ebp - 0x10], edx
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47061d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 5
test dl, 4
je 0x470649
add esi, 0xfffffff0
and edx, 0xfffffffb
mov dword [ebp - 0x10], edx
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x470649
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test byte [0x652fc0], 4
je 0x470669
push dword [ebp - 0x18]
push str.Found___Class_App_ID_is__d._n
push 3
push str.CSynOSD::GetOSDAppIDFromHandle
call fcn.004cb410
add esp, 0x10
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
add ebx, 4
cmp ebx, dword [esi + 0x4c]
jne 0x470470
mov ebx, dword [ebp - 0x18]
test ebx, ebx
jne 0x47097a
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx - 0xc], 0
je 0x47085f
test byte [0x652fc0], 4
je 0x4706b1
push ebx
push str.Looking_for_Executable__s._n
push 3
push str.CSynOSD::GetOSDAppIDFromHandle
call fcn.004cb410
add esp, 0x10
mov edi, dword [esi + 0x48]
cmp edi, dword [esi + 0x4c]
je 0x47085f
mov ebx, dword [ebp - 0x1c]
mov esi, dword [edi]
mov dword [ebp + 8], esi
test esi, esi
je 0x470842
mov eax, dword [ebp + 8]
mov esi, dword [esi + 0x50]
cmp esi, dword [eax + 0x54]
je 0x470842
lea esp, [esp]
test dword [eax + 0x68], 0x100
jne 0x470755
lea eax, [ebp - 0x660]
push eax
push dword [esi]
call fcn.004d47f9
add esp, 8
test eax, eax
mov eax, dword [ebp + 8]
jne 0x470755
mov ecx, dword [eax + 0x68]
test cl, 1
jne 0x470755
test cl, 2
je 0x470731
push 0
call fcn.004c7a40
add esp, 4
cmp eax, 0xb
jl 0x47072e
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x6e8], 0
mov eax, dword [ebp + 8]
jne 0x470765
jmp 0x470755
mov eax, dword [ebp + 8]
test byte [eax + 0x68], 4
je 0x470765
push 0
call fcn.004c7a40
add esp, 4
cmp eax, 0xb
jl 0x470762
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x6e8], 0
mov eax, dword [ebp + 8]
je 0x470765
add esi, 4
cmp esi, dword [eax + 0x54]
jne 0x4706e0
jmp 0x470842
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
lea ecx, [eax + 0x5c]
push esi
call fcn.0040c400
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
je 0x4707a0
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0040c810
add esp, 4
lea ebx, [eax + 0x10]
mov dword [ebp - 0x1c], ebx
or dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xe
jmp 0x4707b8
push 0x50daec
lea ecx, [ebp - 0x24]
call fcn.0040c140
or dword [ebp - 0x10], 0x20
mov dword [ebp - 4], 0xf
lea ecx, [esi + 0x14]
push eax
call fcn.0040c400
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xe
test dl, 0x20
je 0x4707f6
mov esi, dword [ebp - 0x24]
and edx, 0xffffffdf
add esi, 0xfffffff0
mov dword [ebp - 0x10], edx
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4707f6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 5
test dl, 0x10
je 0x470822
and edx, 0xffffffef
or ecx, 0xffffffff
mov dword [ebp - 0x10], edx
lea edx, [ebx - 0x10]
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x470822
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test byte [0x652fc0], 4
je 0x470842
push dword [ebp - 0x18]
push str.Found___Executable_App_ID_is__d._n
push 3
push str.CSynOSD::GetOSDAppIDFromHandle
call fcn.004cb410
add esp, 0x10
mov esi, dword [ebp - 0x14]
add edi, 4
cmp edi, dword [esi + 0x4c]
jne 0x4706c0
mov ebx, dword [ebp - 0x18]
test ebx, ebx
jne 0x47097a
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x14]
mov esi, dword [esi + 0x48]
cmp esi, dword [edi + 0x4c]
je 0x470977
mov edi, edi
mov eax, dword [esi]
mov dword [ebp + 8], eax
test byte [eax + 0x68], 0x80
je 0x47096b
push 0
call fcn.004c7a40
add esp, 4
cmp eax, 0xb
jl 0x47096b
cmp dword [edi + 0x6e8], 0
je 0x47096b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
add eax, 0x5c
cmp dword [ebx - 0xc], 0
mov dword [ebp - 0x18], ecx
mov ecx, 0x50daec
mov dword [ebp - 0x1c], eax
je 0x4708bb
mov ecx, ebx
mov edx, ecx
lea eax, [edx + 2]
mov dword [ebp - 0x24], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4708c3
sub edx, dword [ebp - 0x24]
sar edx, 1
push edx
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0040dad0
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040c140
mov ecx, dword [ebp - 0x20]
add dword [ebp + 8], 0x14
mov byte [ebp - 4], 0x10
cmp dword [ecx - 0xc], 0
jne 0x470902
mov ecx, 0x50daec
mov edx, ecx
lea eax, [edx + 2]
mov dword [ebp - 0x24], eax
lea ebx, [ebx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x470910
sub edx, dword [ebp - 0x24]
sar edx, 1
push edx
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040dad0
test byte [0x652fc0], 4
je 0x47094a
push dword [ebp - 0x18]
push str.Found___Metro_App_ID_is__d._n
push 3
push str.CSynOSD::GetOSDAppIDFromHandle
call fcn.004cb410
add esp, 0x10
mov edx, dword [ebp - 0x20]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47096b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, dword [edi + 0x4c]
jne 0x470870
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x34]
or edi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 4
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47099d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4709c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4709c5
or ebx, 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x30]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4709e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x28]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x470a06
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop esi
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4