Function at 0x40da70
Capabilities:
Check if file exists
Query or enumerate registry value
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4a0a9d
push eax
mov eax, 0x2440
mov dword fs:[0], esp
call fcn.004999f0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2460]
mov dword [esp + 0x3c], ecx
mov edx, dword [edi]
test edx, edx
je 0x40dabd
mov esi, dword [edi + 4]
test esi, esi
je 0x40dabd
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40dabd
mov ecx, dword [edi + 0x10]
cmp ecx, 0x80
jg 0x40dac4
xor eax, eax
jmp 0x40e407
push edx
push ecx
push eax
mov eax, dword [edi + 8]
push eax
push str.RegAppEntry
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [edi + 0xc]
cmp word [esi], 0
je 0x40dae4
test esi, esi
jne 0x40daeb
xor eax, eax
jmp 0x40e407
mov ecx, dword [0x4b7080]
mov edx, esi
shr edx, 0x10
mov dword [esp + 0x10], ecx
jne 0x40db0e
and esi, 0xffff
lea ecx, [esp + 0x10]
push esi
call fcn.004068b0
jmp 0x40db40
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x40db40
push edi
lea ecx, [esp + 0x14]
call fcn.00406c50
test eax, eax
je 0x40db40
mov edx, dword [esp + 0x10]
lea eax, [edi + edi]
push eax
lea ecx, [edi + edi + 2]
push esi
push ecx
push edx
call fcn.00405800
add esp, 0x10
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2458], 0
mov edi, dword [eax - 8]
test edi, edi
jne 0x40db8e
mov edx, dword [0x4b7084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40e402
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40e402
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00437568
add esp, 4
jmp 0x40e402
mov ecx, dword [eax - 0xc]
lea esi, [eax - 0xc]
xor ebp, ebp
cmp ecx, 1
jg 0x40dba2
mov ecx, dword [eax - 4]
test ecx, ecx
jge 0x40dbe2
test edi, edi
jle 0x40dba8
mov ebp, edi
push ebp
lea ecx, [esp + 0x14]
call fcn.00406c50
test eax, eax
je 0x40dbe2
lea eax, [edi + edi + 2]
lea ecx, [esi + 0xc]
push eax
mov eax, dword [esp + 0x14]
lea edx, [ebp + ebp + 2]
push ecx
push edx
push eax
call fcn.00405800
mov ecx, dword [esp + 0x20]
add esp, 0x10
push esi
mov dword [ecx - 8], edi
call fcn.00406f90
mov eax, dword [esp + 0x10]
push 0x4b81e0
push eax
call dword [sym.imp.MSVCRT.dll_wcstok]
mov ebp, dword [sym.imp.USER32.dll_CharNextW]
mov ebx, dword [sym.imp.MSVCRT.dll_iswspace]
mov esi, eax
add esp, 8
test esi, esi
je 0x40dcd3
mov edx, dword [esp + 0x2464]
push esi
push esi
lea edi, [edx + 0x34]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov ecx, edi
call fcn.00406cb0
mov ecx, edi
call fcn.00406ea0
mov esi, dword [edi]
mov ax, word [esi]
push eax
call ebx
add esp, 4
test eax, eax
je 0x40dc49
push esi
call ebp
mov esi, eax
mov ax, word [esi]
push eax
call ebx
add esp, 4
test eax, eax
jne 0x40dc37
mov eax, dword [edi]
mov ecx, esi
sub ecx, eax
mov ebp, dword [eax - 8]
sar ecx, 1
sub ebp, ecx
mov ecx, dword [eax - 4]
lea edx, [ebp + ebp + 2]
push edx
lea edx, [ecx + ecx + 2]
push esi
push edx
push eax
call fcn.00409f10
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
mov dword [eax - 8], ebp
call fcn.00406ea0
mov esi, dword [edi]
xor ebp, ebp
mov ax, word [esi]
test ax, ax
je 0x40dcbb
push eax
call ebx
add esp, 4
test eax, eax
je 0x40dc97
test ebp, ebp
jne 0x40dc99
mov ebp, esi
jmp 0x40dc99
xor ebp, ebp
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
mov ax, word [esi]
test ax, ax
jne 0x40dc85
test ebp, ebp
je 0x40dcbb
mov word [ebp], ax
mov edi, dword [edi]
sub ebp, edi
sar ebp, 1
mov dword [edi - 8], ebp
push 0x4b81e0
push 0
call dword [sym.imp.MSVCRT.dll_wcstok]
mov ebp, dword [sym.imp.USER32.dll_CharNextW]
add esp, 8
mov esi, eax
mov ecx, dword [0x4b7080]
mov dword [esp + 0x14], ecx
test esi, esi
mov byte [esp + 0x2458], 1
je 0x40ddda
jne 0x40dcf3
xor eax, eax
jmp 0x40dcfa
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00406cb0
lea ecx, [esp + 0x14]
call fcn.00406ea0
mov esi, dword [esp + 0x14]
mov ax, word [esi]
push eax
call ebx
add esp, 4
test eax, eax
je 0x40dd31
push esi
call ebp
mov esi, eax
mov ax, word [esi]
push eax
call ebx
add esp, 4
test eax, eax
jne 0x40dd1f
mov eax, dword [esp + 0x14]
mov edx, esi
sub edx, eax
mov edi, dword [eax - 8]
sar edx, 1
sub edi, edx
mov edx, dword [eax - 4]
lea ecx, [edi + edi + 2]
push ecx
lea ecx, [edx + edx + 2]
push esi
push ecx
push eax
call fcn.00409f10
mov edx, dword [esp + 0x24]
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [edx - 8], edi
call fcn.00406ea0
mov esi, dword [esp + 0x14]
xor edi, edi
cmp word [esi], di
je 0x40dda8
mov ax, word [esi]
push eax
call ebx
add esp, 4
test eax, eax
je 0x40dd87
test edi, edi
jne 0x40dd89
mov edi, esi
jmp 0x40dd89
xor edi, edi
push esi
call ebp
mov esi, eax
cmp word [esi], 0
jne 0x40dd72
test edi, edi
je 0x40dda8
mov word [edi], 0
mov eax, dword [esp + 0x14]
sub edi, eax
sar edi, 1
mov dword [eax - 8], edi
mov eax, dword [esp + 0x2464]
lea edx, [esp + 0x14]
push edx
lea ecx, [eax + 0x38]
mov eax, dword [eax + 0x40]
push eax
call fcn.0040f900
push 0x4b81e0
push 0
call dword [sym.imp.MSVCRT.dll_wcstok]
mov esi, eax
add esp, 8
test esi, esi
jne 0x40dcf3
lea ecx, [esp + 0x10]
call fcn.00406ea0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x2460]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
mov word [edx + eax*2], 0
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
push str.RegAppPath
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, dword [esi + 0xc]
cmp word [edi], 0
je 0x40de31
test edi, edi
jne 0x40de94
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4b7084]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40de62
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40de62
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00437568
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4b7084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40de8d
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40de8d
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00437568
add esp, 4
xor eax, eax
jmp 0x40e407
push edi
call fcn.00431e30
mov cx, word [0x4b947c]
mov ebx, eax
mov ax, word [0x4c71ec]
push eax
push ecx
push edi
call fcn.00431d20
mov edx, dword [0x4b7080]
mov eax, edi
add esp, 0x10
mov dword [esp + 0x20], edx
shr eax, 0x10
jne 0x40ded8
mov eax, edi
lea ecx, [esp + 0x20]
and eax, 0xffff
push eax
call fcn.004068b0
jmp 0x40df0a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x40df0a
push esi
lea ecx, [esp + 0x24]
call fcn.00406c50
test eax, eax
je 0x40df0a
mov eax, dword [esp + 0x20]
lea ecx, [esi + esi]
push ecx
lea edx, [esi + esi + 2]
push edi
push edx
push eax
call fcn.00405800
add esp, 0x10
lea ecx, [esp + 0x20]
mov byte [esp + 0x2458], 2
push ecx
mov ecx, dword [esp + 0x40]
call fcn.0040e430
mov ebp, dword [esp + 0x2464]
lea esi, [ebp + 0x2c]
mov dword [ebp + 0x28], eax
push esi
push ebx
push edi
call fcn.00431e90
add ebp, 0x30
push ebp
push ebx
push eax
call fcn.00431e90
mov ebp, dword [ebp]
mov esi, dword [esi]
add esp, 0x18
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x450]
lea edx, [esp + 0x38]
mov ebx, 1
rep stosd dword es:[edi], eax
push edx
mov edx, dword [esp + 0x2468]
lea eax, [esp + 0x454]
lea ecx, [esp + 0x34]
push eax
mov eax, dword [edx + 0x28]
push ecx
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push esi
push eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x50], 0x1000
call ebp
mov esi, dword [esp + 0x2468]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x42]
mov word [esp + 0x40], 0
mov dword [esp + 0x2c], ebx
rep stosd dword es:[edi], eax
mov ecx, dword [0x4b7080]
mov dword [esp + 0x34], 0x104
test esi, esi
stosw word es:[edi], ax
mov dword [esp + 0x18], ecx
je 0x40e012
mov edx, esi
shr edx, 0x10
jne 0x40dfe0
and esi, 0xffff
lea ecx, [esp + 0x18]
push esi
call fcn.004068b0
jmp 0x40e012
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x40e012
push edi
lea ecx, [esp + 0x1c]
call fcn.00406c50
test eax, eax
je 0x40e012
mov edx, dword [esp + 0x18]
lea eax, [edi + edi]
push eax
lea ecx, [edi + edi + 2]
push esi
push ecx
push edx
call fcn.00405800
add esp, 0x10
mov eax, dword [0x4b7080]
mov ecx, str.360IE
test ecx, ecx
mov byte [esp + 0x2458], 3
mov dword [esp + 0x1c], eax
je 0x40e07e
mov edx, ecx
shr edx, 0x10
jne 0x40e044
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x1c]
push eax
call fcn.004068b0
jmp 0x40e07e
push str.360IE
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x40e07e
push esi
lea ecx, [esp + 0x20]
call fcn.00406c50
test eax, eax
je 0x40e07e
mov ecx, dword [esp + 0x1c]
lea edx, [esi + esi]
push edx
lea eax, [esi + esi + 2]
push str.360IE
push eax
push ecx
call fcn.00405800
add esp, 0x10
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
mov byte [esp + 0x2460], 4
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e17e
lea ecx, [esp + 0x34]
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
push 0x4c712c
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360se_3.exe
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
cmp dword [esp + 0x2c], 1
jne 0x40e17e
cmp word [esp + 0x40], 0
je 0x40e17e
mov eax, dword [esp + 0x34]
test eax, eax
jbe 0x40e17e
lea ecx, [esp + 0x40]
push ecx
call ebx
test eax, eax
je 0x40e17e
lea edx, [esp + 0x40]
push 0
push edx
call fcn.00410460
add esp, 8
test eax, eax
je 0x40e17e
push 1
mov ecx, 0x4c6f80
call fcn.004043d0
mov eax, dword [esp + 0x1c]
mov edx, dword [0x4b7084]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40e146
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40e146
mov edx, dword [esp + 0x1c]
lea eax, [edx - 0xc]
push eax
call fcn.00437568
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x4b7084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40e3cc
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40e3cc
mov edx, dword [esp + 0x18]
lea eax, [edx - 0xc]
push eax
call fcn.00437568
add esp, 4
jmp 0x40e3cc
cmp dword [esp + 0x30], 1
jne 0x40e3aa
cmp word [esp + 0x450], 0
je 0x40e3aa
mov eax, dword [esp + 0x38]
test eax, eax
jbe 0x40e3aa
lea eax, [esp + 0x450]
lea ecx, [esp + 0x24]
push eax
call fcn.00405a10
mov edi, dword [esp + 0x2464]
mov ecx, dword [esp + 0x24]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x450]
mov eax, dword [edi + 0x34]
lea esi, [edi + 0x34]
push eax
push ecx
push edx
mov byte [esp + 0x2464], 5
call ebp
lea eax, [esp + 0x450]
push eax
call ebx
test eax, eax
je 0x40e399
lea ecx, [esp + 0x24]
mov dword [edi + 0x88], 1
push ecx
lea ecx, [edi + 0x24]
call fcn.00405cb0
lea edx, [esp + 0x450]
push 0
push edx
call fcn.00410460
add esp, 8
test eax, eax
jne 0x40e256
mov eax, str.0.0.0.0
lea esi, [edi + 0x1c]
test eax, eax
jne 0x40e239
push eax
push eax
mov ecx, esi
call fcn.00406cb0
jmp 0x40e399
push str.0.0.0.0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.0.0.0.0
push eax
mov ecx, esi
call fcn.00406cb0
jmp 0x40e399
mov ecx, dword [esp + 0x2460]
push str.RegVersionFile
call fcn.0040c700
push eax
lea ecx, [esp + 0x2c]
call fcn.00405a10
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x2458], 6
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40e28e
push esi
lea ecx, [esp + 0x2c]
call fcn.00405cb0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x454]
push eax
push ecx
call ebp
lea edx, [esp + 0x450]
push edx
call ebx
test eax, eax
jne 0x40e2c2
mov esi, dword [esi]
mov eax, dword [esp + 0x24]
push esi
lea ecx, [esp + 0x454]
push eax
push ecx
call ebp
lea edx, [esp + 0x450]
push 0
push edx
call fcn.00410460
add esp, 8
test eax, eax
jne 0x40e30c
mov eax, str.0.0.0.0
lea esi, [edi + 0x1c]
test eax, eax
jne 0x40e2f2
push eax
push eax
mov ecx, esi
call fcn.00406cb0
jmp 0x40e388
push str.0.0.0.0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.0.0.0.0
push eax
mov ecx, esi
call fcn.00406cb0
jmp 0x40e388
lea ecx, [esp + 0x248]
push 0x104
lea edx, [esp + 0x454]
push ecx
push edx
call fcn.0040e4e0
add esp, 0xc
lea ebx, [edi + 0x1c]
lea eax, [esp + 0x248]
mov ecx, ebx
push eax
call fcn.00405d80
mov esi, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
cmp esi, eax
je 0x40e388
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40e370
mov ecx, dword [esp + 0x24]
push eax
lea edx, [esp + 0x454]
push ecx
push edx
call ebp
lea eax, [esp + 0x450]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e37c
mov eax, dword [edi + 0x40]
add esi, 4
cmp esi, eax
jne 0x40e345
jmp 0x40e388
push str.0.0.0.0
mov ecx, ebx
call fcn.00405d80
lea ecx, [esp + 0x28]
mov byte [esp + 0x2458], 5
call fcn.0040c0e0
lea ecx, [esp + 0x24]
mov byte [esp + 0x2458], 4
call fcn.0040c0e0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2458], 3
call fcn.0040c0e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x2458], 2
call fcn.0040c0e0
lea ecx, [esp + 0x20]
mov byte [esp + 0x2458], 1
call fcn.0040c0e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x2458], 0
call fcn.0040c0e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x2458], 0xffffffff
call fcn.0040c0e0
mov eax, 1
mov ecx, dword [esp + 0x2450]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x244c
ret 0xc