Function at 0x417140
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4c56a8
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x4e5d60]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e5d60]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
lea ebx, [esp + 0x1c]
mov edi, str.Deactivate
mov dword [esp + 0x1c], 0
call fcn.004109a0
xor ebx, ebx
test eax, eax
je 0x4171a1
cmp dword [esp + 0x1c], ebx
jne 0x4177fe
lea eax, [esp + 0x2c]
push eax
call fcn.0041b820
mov dword [esp + 0x298], ebx
call fcn.004990cf
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4171cc
push 0x80004005
call fcn.0040f160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x24], esi
mov byte [esp + 0x298], 1
call fcn.0040fc70
push eax
lea ecx, [esp + 0x18]
call fcn.0040f300
push ebx
push 0x1c
lea ecx, [esp + 0x8c]
push ecx
push ebx
mov byte [esp + 0x2a8], 2
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x41727c
mov byte [esp + 0x298], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417239
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x298], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41725c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [esp + 0x2c]
call fcn.0041b950
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00498c5e
mov edx, dword [esp + 0x30]
add esp, 4
push edx
jmp 0x4177ee
xor eax, eax
mov word [esp + 0x50], ax
mov ebp, 7
lea eax, [esp + 0x84]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4172a0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x88]
lea esi, [esp + 0x50]
call fcn.0040cb10
mov byte [esp + 0x298], 3
mov eax, dword [esp + 0x50]
mov esi, 8
cmp dword [esp + 0x64], esi
jae 0x4172db
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x28]
push str._sCocCocBrowserUser_DataDefault
push ecx
call fcn.0040e520
mov edi, dword [esp + 0x30]
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41734f
cmp dword [esp + 0x64], esi
jb 0x417310
mov edx, dword [esp + 0x50]
push edx
call fcn.00498c5e
add esp, 4
xor eax, eax
mov word [esp + 0x50], ax
mov byte [esp + 0x298], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417347
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
jmp 0x41723c
lea ebx, [esp + 0x2c]
call fcn.0041b950
push ecx
lea ebp, [edi - 0x10]
mov dword [esp + 0x2c], esp
mov esi, esp
push ebp
mov dword [esp + 0x24], ebp
call fcn.0040ec90
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov eax, ebx
push eax
call fcn.00402260
push ecx
mov dword [esp + 0x2c], esp
mov esi, esp
push ebp
call fcn.0040ec90
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00401e20
mov esi, eax
xor eax, eax
lea ebx, [esp + 0x20]
mov edi, str.Deactivate
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
call fcn.004109a0
test eax, eax
je 0x4173c0
xor edi, edi
cmp dword [esp + 0x20], edi
jne 0x41752b
lea ebx, [esp + 0x18]
mov edi, str.dwHomepage
call fcn.004109a0
test eax, eax
je 0x4173ea
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x4173ea
shr eax, 2
not eax
and eax, 1
test eax, eax
je 0x417529
cmp esi, 5
je 0x4174de
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x417424
lea esi, [esp + 0x4c]
call fcn.0040b1c0
lea ecx, [esp + 0x14]
call fcn.0040ed20
lea ecx, [esp + 0x24]
call fcn.0040ed20
lea eax, [esp + 0x2c]
call fcn.0041b890
jmp 0x4177fe
xor ebx, ebx
mov ebp, 1
test eax, eax
jbe 0x4174de
lea ecx, [esp + 0x18]
call fcn.0040ec60
lea eax, [esp + 0x2c]
mov byte [esp + 0x298], 4
call fcn.0041b8c0
push eax
lea esi, [esp + 0x6c]
call fcn.0040b190
lea eax, [esp + 0x2c]
mov byte [esp + 0x298], 5
call fcn.0041b910
cmp dword [esp + 0x80], 8
mov eax, dword [esp + 0x6c]
jae 0x41747a
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x1c]
push 0x4d3514
push ecx
call fcn.0040e520
mov edi, dword [esp + 0x24]
add esp, 0xc
mov ecx, edi
call fcn.0041aeb0
test eax, eax
jne 0x41749e
xor ebp, ebp
lea esi, [esp + 0x68]
call fcn.0040b1c0
lea eax, [edi - 0x10]
mov byte [esp + 0x298], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4174cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebx
cmp ebx, dword [esp + 0x44]
jb 0x417433
test ebp, ebp
je 0x41775a
lea ecx, [esp + 0x14]
call fcn.0040ba20
push eax
call fcn.00417830
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.0040e540
lea esi, [esp + 0x4c]
call fcn.0040b1c0
lea ecx, [esp + 0x14]
call fcn.0040ed20
lea ecx, [esp + 0x24]
call fcn.0040ed20
lea eax, [esp + 0x2c]
call fcn.0041b890
mov eax, 1
jmp 0x417800
xor edi, edi
mov eax, dword [esp + 0x44]
mov dword [esp + 0x48], 1
cmp eax, edi
je 0x41771e
mov dword [esp + 0x20], edi
jbe 0x417664
lea esp, [esp]
call fcn.004990cf
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x4171c2
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x298], 6
call fcn.0041b8c0
xor ecx, ecx
push 0xffffffffffffffff
mov word [esp + 0x70], cx
mov ebx, 7
push edi
lea ecx, [esp + 0x70]
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], edi
call fcn.0040bbd0
lea eax, [esp + 0x2c]
mov byte [esp + 0x298], bl
call fcn.0041b910
mov eax, dword [esp + 0x6c]
mov ebp, 8
cmp dword [esp + 0x80], ebp
jae 0x4175d1
lea eax, [esp + 0x6c]
push eax
lea edx, [esp + 0x1c]
push 0x4d3514
push edx
call fcn.0040e520
mov esi, dword [esp + 0x24]
add esp, 0xc
mov ecx, esi
call fcn.0041aeb0
test eax, eax
jne 0x4175f7
mov dword [esp + 0x48], edi
cmp dword [esp + 0x80], ebp
jb 0x41760d
mov eax, dword [esp + 0x6c]
push eax
call fcn.00498c5e
add esp, 4
xor ecx, ecx
lea eax, [esi - 0x10]
mov word [esp + 0x6c], cx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], edi
mov byte [esp + 0x298], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417643
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x44]
jb 0x417550
mov ebp, dword [esp + 0x1c]
cmp dword [esp + 0x48], edi
je 0x41771e
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
jle 0x41767f
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040f010
mov eax, dword [esp + 0x14]
push eax
call fcn.00417830
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
add esp, 4
push ecx
push eax
call fcn.004a7602
add esp, 8
cmp eax, edi
jl 0x417714
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x417714
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x14]
xor edx, edx
lea esi, [esp + 0x4c]
mov word [ecx + eax*2], dx
call fcn.0040b1c0
mov byte [esp + 0x298], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4176e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x298], 0
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417706
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
lea eax, [esp + 0x2c]
call fcn.0041b890
jmp 0x4177fe
push 0x80070057
call fcn.0040f160
mov dword [esp + 0x28], edi
lea ebx, [esp + 0x28]
mov edi, str.dwReport
call fcn.004109a0
test eax, eax
je 0x41775e
test byte [esp + 0x28], 0x40
jne 0x41775e
lea ecx, [esp + 0x14]
call fcn.0040ba20
push eax
call fcn.00417830
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.0040e540
jmp 0x41775e
mov ebp, dword [esp + 0x1c]
cmp dword [esp + 0x64], 8
jb 0x417772
mov eax, dword [esp + 0x50]
push eax
call fcn.00498c5e
add esp, 4
mov byte [esp + 0x298], 1
mov eax, dword [esp + 0x14]
xor ecx, ecx
add eax, 0xfffffff0
mov word [esp + 0x50], cx
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4177b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x298], 0
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4177d3
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
lea ebx, [esp + 0x2c]
call fcn.0041b950
mov eax, dword [esp + 0x40]
push eax
call fcn.00498c5e
mov ecx, dword [esp + 0x30]
add esp, 4
push ecx
mov dword [esp + 0x44], 0
call fcn.00498c5e
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.004a6859
add esp, 0x288
ret