Function at 0x40ad10
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x449c58
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x45e680]
xor eax, esp
mov dword [esp + 0x194], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e680]
xor eax, esp
push eax
lea eax, [esp + 0x1ac]
mov dword fs:[0], eax
xor ebx, ebx
push str.CQueryCancelAutoplay::CheckAppInstallStatus___enter
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1b8], ebx
call fcn.00404a10
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b4], 1
call fcn.00409a70
mov byte [esp + 0x1b4], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ad9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.CCheckNDISPortDlg::CheckAppInstallStatus___enter
lea ecx, [esp + 0x1c]
call fcn.00404a10
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b4], 2
call fcn.00409a70
mov byte [esp + 0x1b4], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ade0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Autorun.dat
call fcn.00404a10
lea ecx, [esp + 0x1c0]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00402030
add esp, 0xc
push str.Autorun.dat
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x1c0], 3
call fcn.00402970
add esp, 0xc
mov byte [esp + 0x1b4], 4
mov eax, dword [eax]
mov edi, 7
xor edx, edx
mov ecx, eax
mov dword [esp + 0x134], edi
mov dword [esp + 0x130], ebx
mov word [esp + 0x120], dx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40ae51
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x120]
call fcn.00405070
mov ebp, 0x400
mov dword [esp + method.CStlStringW.virtual_0], vtable.CStlStringW.0
mov dword [esp + 0x138], ebp
mov byte [esp + 0x1b4], 6
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aeac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
push 1
mov eax, 0x450f80
lea esi, [esp + 0x54]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], cx
call fcn.00405070
mov dword [esp + 0x4c], vtable.CStlStringW.0
mov dword [esp + 0x6c], ebp
mov byte [esp + 0x1b4], 7
xor edx, edx
push 2
mov eax, 0x45121c
lea esi, [esp + 0x30]
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], dx
call fcn.00405070
mov esi, vtable.CStlStringW.0
mov dword [esp + 0x28], esi
mov dword [esp + 0x48], ebp
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x120]
push edx
mov byte [esp + 0x1c0], 8
call fcn.004121c0
cmp dword [esp + 0x44], 8
mov dword [esp + 0x28], esi
mov dword [esp + 0x48], ebx
jb 0x40af46
mov eax, dword [esp + 0x30]
push eax
call fcn.00413858
add esp, 4
mov byte [esp + 0x1b4], 6
xor ecx, ecx
cmp dword [esp + 0x68], 8
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], cx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x6c], ebx
jb 0x40af79
mov edx, dword [esp + 0x54]
push edx
call fcn.00413858
add esp, 4
cmp dword [esp + 0x134], 8
mov eax, dword [esp + 0x120]
jae 0x40af91
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b03b
push str.CQueryCancelAutoplay::CheckAppInstallStatus___no_autorun.dat
lea ecx, [esp + 0x1c]
call fcn.00404a10
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b4], 9
call fcn.00409a70
mov byte [esp + 0x1b4], 6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40afe7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.CCheckNDISPortDlg::CheckAppInstallStatus___no_autorun.dat
lea ecx, [esp + 0x1c]
call fcn.00404a10
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b4], 0xa
call fcn.00409a70
mov byte [esp + 0x1b4], 6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b02e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x134], 8
jmp 0x40b802
push ebx
lea ecx, [esp + 0x188]
push ecx
lea ecx, [esp + 0x124]
call fcn.0040df50
mov byte [esp + 0x1b4], 0xb
xor edx, edx
push ebx
mov eax, 0x451270
lea esi, [esp + 0x90]
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], dx
call fcn.00405070
mov byte [esp + 0x1b4], 0xc
xor eax, eax
mov word [esp + 0xc8], ax
push 0x10
mov eax, str.PRODUCT_GUID_KEY
lea esi, [esp + 0xc8]
mov dword [esp + 0xe0], edi
mov dword [esp + 0xdc], ebx
call fcn.00405070
mov byte [esp + 0x1b4], 0xd
xor ecx, ecx
push 0xc
mov eax, str.SETUP_CONFIG
lea esi, [esp + 0xac]
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], ebx
mov word [esp + 0xb0], cx
call fcn.00405070
mov edx, esi
push edx
lea eax, [esp + 0x188]
push eax
lea ecx, [esp + 0x94]
lea edx, [esp + 0xcc]
lea ebx, [esp + 0x54]
mov byte [esp + 0x1bc], 0xe
call fcn.0040e1e0
mov byte [esp + 0x1b4], 0xf
xor ecx, ecx
xor edi, edi
push 0xffffffffffffffff
mov word [esp + 0x148], cx
mov ebx, 7
push edi
lea ecx, [esp + 0x148]
mov dword [esp + 0x160], ebx
mov dword [esp + 0x15c], edi
call fcn.00405120
mov dword [esp + method.CStlStringW.virtual_0], vtable.CStlStringW.0
mov dword [esp + 0x15c], ebp
mov esi, 8
cmp dword [esp + 0x64], esi
jb 0x40b172
mov edx, dword [esp + 0x50]
push edx
call fcn.00413858
add esp, 4
xor eax, eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], edi
mov word [esp + 0x50], ax
cmp dword [esp + 0xc0], esi
jb 0x40b19a
mov ecx, dword [esp + 0xac]
push ecx
call fcn.00413858
add esp, 4
xor edx, edx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xbc], edi
mov word [esp + 0xac], dx
cmp dword [esp + 0xdc], esi
jb 0x40b1cb
mov eax, dword [esp + 0xc8]
push eax
call fcn.00413858
add esp, 4
xor ecx, ecx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xd8], edi
mov word [esp + 0xc8], cx
mov byte [esp + 0x1b4], 0x14
cmp dword [esp + 0xa4], esi
jb 0x40b204
mov edx, dword [esp + 0x90]
push edx
call fcn.00413858
add esp, 4
xor eax, eax
mov word [esp + 0x90], ax
xor ecx, ecx
push edi
mov eax, 0x451270
lea esi, [esp + 0xe4]
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa4], edi
mov dword [esp + 0xfc], ebx
mov dword [esp + 0xf8], edi
mov word [esp + 0xe8], cx
call fcn.00405070
mov byte [esp + 0x1b4], 0x15
xor edx, edx
push 0x11
mov eax, str.APP_VERSION_VALUE
lea esi, [esp + 0x100]
mov dword [esp + 0x118], ebx
mov dword [esp + 0x114], edi
mov word [esp + 0x104], dx
call fcn.00405070
mov byte [esp + 0x1b4], 0x16
xor eax, eax
mov word [esp + 0x74], ax
push 0xc
mov eax, str.SETUP_CONFIG
lea esi, [esp + 0x74]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], edi
call fcn.00405070
mov ecx, esi
push ecx
lea edx, [esp + 0x188]
push edx
lea ecx, [esp + 0xe8]
lea edx, [esp + 0x104]
lea ebx, [esp + 0x30]
mov byte [esp + 0x1bc], 0x17
call fcn.0040e1e0
mov byte [esp + 0x1b4], 0x18
xor ecx, ecx
xor ebx, ebx
push 0xffffffffffffffff
mov word [esp + 0x16c], cx
mov edi, 7
push ebx
lea ecx, [esp + 0x16c]
mov dword [esp + 0x184], edi
mov dword [esp + 0x180], ebx
call fcn.00405120
mov esi, vtable.CStlStringW.0
mov dword [esp + 0x160], esi
mov dword [esp + 0x180], ebp
mov ebp, 8
cmp dword [esp + 0x40], ebp
jb 0x40b331
mov edx, dword [esp + 0x2c]
push edx
call fcn.00413858
add esp, 4
xor eax, eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], ax
cmp dword [esp + 0x88], ebp
jb 0x40b356
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00413858
add esp, 4
xor edx, edx
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], dx
cmp dword [esp + 0x114], ebp
jb 0x40b384
mov eax, dword [esp + 0x100]
push eax
call fcn.00413858
add esp, 4
xor ecx, ecx
mov dword [esp + 0x114], edi
mov dword [esp + 0x110], ebx
mov word [esp + 0x100], cx
mov byte [esp + 0x1b4], 0x1d
cmp dword [esp + 0xf8], ebp
jb 0x40b3bd
mov edx, dword [esp + 0xe4]
push edx
call fcn.00413858
add esp, 4
mov ecx, dword [esp + 0x178]
imul ecx, dword [esp + 0x154]
xor eax, eax
mov dword [esp + 0xf8], edi
mov dword [esp + 0xf4], ebx
mov word [esp + 0xe4], ax
test ecx, ecx
jbe 0x40b6b3
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.APP_IN_VERSION
call fcn.00404a10
mov byte [esp + 0x1b8], 0x1e
mov eax, dword [esp + 0x148]
cmp dword [esp + 0x15c], ebp
jae 0x40b41c
lea eax, [esp + 0x148]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00404a10
lea ecx, [esp + 0x24]
mov byte [esp + 0x1bc], 0x1d
call fcn.00413570
add esp, 8
mov byte [esp + 0x1b4], 0x1f
mov eax, dword [esp + 0x168]
cmp dword [esp + 0x17c], ebp
jae 0x40b45c
lea eax, [esp + 0x168]
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00404a10
mov byte [esp + 0x1b8], 0x20
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.004042b0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [esp + 0x1bc], 0x1f
call fcn.00413290
add esp, 8
push str.CCheckNDISPortDlg::CheckAppInstallStatus___before_CAppTools::GetAppInstalledStatus
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], eax
call fcn.00404a10
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b4], 0x21
call fcn.00409a70
mov byte [esp + 0x1b4], 0x1f
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b4e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.CCheckNDISPortDlg::CheckAppInstallStatus___before_CAppTools::GetAppInstalledStatus
lea ecx, [esp + 0x1c]
call fcn.00404a10
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b4], 0x22
call fcn.00409a70
mov byte [esp + 0x1b4], 0x1f
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b52f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1b4], 0x1d
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b557
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, vtable.CStlStringW.0
mov dword [esp + 0x160], esi
mov dword [esp + 0x180], ebx
cmp dword [esp + 0x17c], ebp
jb 0x40b583
mov ecx, dword [esp + 0x168]
push ecx
call fcn.00413858
add esp, 4
xor edx, edx
mov dword [esp + 0x17c], edi
mov dword [esp + 0x178], ebx
mov word [esp + 0x168], dx
mov dword [esp + 0x13c], esi
mov dword [esp + 0x15c], ebx
cmp dword [esp + 0x158], ebp
jb 0x40b5c2
mov eax, dword [esp + 0x144]
push eax
call fcn.00413858
add esp, 4
xor ecx, ecx
mov dword [esp + 0x158], edi
mov dword [esp + 0x154], ebx
mov word [esp + 0x144], cx
mov dword [esp + method.CCommonConfig.virtual_0], vtable.CCommonConfig.0
cmp dword [esp + 0x1a0], ebp
jb 0x40b5fe
mov edx, dword [esp + 0x18c]
push edx
call fcn.00413858
add esp, 4
xor eax, eax
mov dword [esp + 0x1a0], edi
mov dword [esp + 0x19c], ebx
mov word [esp + 0x18c], ax
mov dword [esp + 0x118], esi
mov dword [esp + 0x138], ebx
cmp dword [esp + 0x134], ebp
jb 0x40b63d
mov ecx, dword [esp + 0x120]
push ecx
call fcn.00413858
add esp, 4
mov byte [esp + 0x1b4], bl
mov eax, dword [esp + 0x24]
xor edx, edx
add eax, 0xfffffff0
mov word [esp + 0x120], dx
mov dword [esp + 0x134], edi
mov dword [esp + 0x130], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b67c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1b4], 0xffffffff
mov eax, dword [esp + 0x1bc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b6aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
jmp 0x40b891
push str.CCheckNDISPortDlg::CheckAppInstallStatus___strFullGuidInRegistry_is_empty
lea ecx, [esp + 0x20]
call fcn.00404a10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b4], 0x23
call fcn.00409a70
mov byte [esp + 0x1b4], 0x1d
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b6fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.CCheckNDISPortDlg::CheckAppInstallStatus___strFullGuidInRegistry_is_empty
lea ecx, [esp + 0x1c]
call fcn.00404a10
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b4], 0x24
call fcn.00409a70
mov byte [esp + 0x1b4], 0x1d
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b741
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x160], esi
mov dword [esp + 0x180], ebx
cmp dword [esp + 0x17c], ebp
jb 0x40b768
mov ecx, dword [esp + 0x168]
push ecx
call fcn.00413858
add esp, 4
xor edx, edx
mov dword [esp + 0x17c], edi
mov dword [esp + 0x178], ebx
mov word [esp + 0x168], dx
mov dword [esp + 0x13c], esi
mov dword [esp + 0x15c], ebx
cmp dword [esp + 0x158], ebp
jb 0x40b7a7
mov eax, dword [esp + 0x144]
push eax
call fcn.00413858
add esp, 4
xor ecx, ecx
mov dword [esp + 0x158], edi
mov dword [esp + 0x154], ebx
mov word [esp + 0x144], cx
mov dword [esp + method.CCommonConfig.virtual_0], vtable.CCommonConfig.0
cmp dword [esp + 0x1a0], ebp
jb 0x40b7e3
mov edx, dword [esp + 0x18c]
push edx
call fcn.00413858
add esp, 4
xor eax, eax
cmp dword [esp + 0x134], ebp
mov dword [esp + 0x1a0], edi
mov dword [esp + 0x19c], ebx
mov word [esp + 0x18c], ax
mov dword [esp + 0x138], ebx
mov dword [esp + 0x118], esi
jb 0x40b822
mov ecx, dword [esp + 0x120]
push ecx
call fcn.00413858
add esp, 4
mov byte [esp + 0x1b4], bl
mov eax, dword [esp + 0x24]
xor edx, edx
add eax, 0xfffffff0
mov word [esp + 0x120], dx
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x130], ebx
mov dword [esp + 0x134], edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b861
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1b4], 0xffffffff
mov eax, dword [esp + 0x1bc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b88f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0042f892
add esp, 0x1a4
ret 4