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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50aaf5
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x54112c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2f4], ebx
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x2f8], eax
lea eax, [ebp - 0x244]
push eax
push edi
push edi
push 0x1c
push edi
mov dword [ebp - 0x2fc], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x421244
xor al, al
jmp 0x421b79
xor eax, eax
mov dword [ebp - 0x2ac], edi
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x2a8], 7
mov word [ebp - 0x2bc], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421266
sub ecx, edx
lea eax, [ebp - 0x244]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2bc]
call fcn.004235b0
lea eax, [ebx + 0x1b0]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.00412470
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4212b4
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x28c]
mov esi, eax
call fcn.00402e60
test esi, esi
jne 0x4212fc
sub esp, 0x18
mov ecx, esp
push 0x11
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], 0xf
push str.noChromeInstalled
mov byte [ecx], 0
call fcn.0040e880
lea ecx, [ebx + 0x84]
call fcn.0040bec0
mov bl, 1
jmp 0x421b6c
push 7
xor eax, eax
mov dword [ebp - 0x27c], 0
push str.Default
lea ecx, [ebp - 0x28c]
mov dword [ebp - 0x278], 7
mov word [ebp - 0x28c], ax
call fcn.004235b0
mov esi, dword [ebp - 0x2f8]
lea eax, [ebx + 0x1c8]
push eax
mov dword [ebp - 0x30c], eax
mov ecx, ebx
lea eax, [ebp - 0x28c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2bc]
push eax
push esi
call fcn.0041d170
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 0
mov bl, al
call fcn.00402e60
push 7
xor eax, eax
mov dword [ebp - 0x27c], 0
push str.Default
lea ecx, [ebp - 0x28c]
mov dword [ebp - 0x278], 7
mov word [ebp - 0x28c], ax
call fcn.004235b0
mov eax, dword [ebp - 0x2f4]
mov byte [ebp - 4], 2
lea ecx, [eax + 0x1e0]
push ecx
mov dword [ebp - 0x304], ecx
lea ecx, [ebp - 0x28c]
push ecx
lea ecx, [ebp - 0x2bc]
push ecx
push esi
mov ecx, eax
call fcn.0041d170
or bl, al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28c]
mov byte [ebp - 0x2ed], bl
call fcn.00402e60
mov ebx, 1
mov dword [ebp - 0x300], ebx
mov ecx, ebx
lea esi, [ebp - 0x12]
test ebx, ebx
jns 0x421420
neg ecx
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x4213f2
add esi, 0xfffffffe
mov eax, 0x2d
mov word [esi], ax
jmp 0x421440
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x421420
xor eax, eax
mov dword [ebp - 0x24c], 0
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x12]
mov dword [ebp - 0x248], 7
cmp esi, eax
je 0x421475
sub eax, esi
lea ecx, [ebp - 0x25c]
sar eax, 1
push eax
push esi
call fcn.004235b0
or edi, 3
mov ebx, edi
mov esi, dword [ebp - 0x2ac]
or edi, 4
xor eax, eax
mov dword [ebp - 0x2fc], edi
mov edi, dword [ebp - 0x2f4]
mov word [ebp - 0x2d4], ax
mov byte [ebp - 4], 4
mov dword [ebp - 0x2c4], 0
mov eax, dword [edi + 0x1c0]
add eax, esi
mov dword [ebp - 0x2c0], 7
cmp eax, 7
jbe 0x4214e0
mov byte [ebp - 0x308], 0
lea ecx, [ebp - 0x2d4]
push dword [ebp - 0x308]
push eax
call fcn.004141b0
mov dword [ebp - 0x2c4], 0
cmp dword [ebp - 0x2a8], 8
lea eax, [ebp - 0x2bc]
jb 0x4214f5
mov eax, dword [ebp - 0x2bc]
push esi
push eax
lea ecx, [ebp - 0x2d4]
call fcn.00423540
cmp dword [edi + 0x1c4], 8
lea eax, [edi + 0x1b0]
jb 0x421517
mov eax, dword [edi + 0x1b0]
push dword [edi + 0x1c0]
lea ecx, [ebp - 0x2d4]
push eax
call fcn.00423540
push 8
push str.Profile
lea ecx, [ebp - 0x2d4]
call fcn.00423540
mov edx, eax
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 0
mov ecx, dword [edx]
mov dword [ebp - 0x2a4], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x2a0], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x29c], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x298], ecx
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x294], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x290], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov eax, ebx
or eax, 0xc
mov dword [ebp - 0x2fc], eax
mov edi, dword [ebp - 0x290]
mov eax, edi
mov edx, dword [ebp - 0x294]
sub eax, edx
mov esi, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0x248]
mov byte [ebp - 4], 5
cmp esi, eax
jbe 0x4215f2
mov eax, ecx
sub eax, esi
cmp eax, edx
jb 0x4215f2
lea eax, [ebp - 0x2a4]
cmp edi, 8
jb 0x4215e1
mov eax, dword [ebp - 0x2a4]
push edx
push eax
push 0
lea ecx, [ebp - 0x25c]
call fcn.00425210
jmp 0x421610
lea eax, [ebp - 0x25c]
cmp ecx, 8
jb 0x421603
mov eax, dword [ebp - 0x25c]
push esi
push eax
lea ecx, [ebp - 0x2a4]
call fcn.00423540
mov edx, eax
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 0
mov edi, ebx
or edi, 0x1c
mov ecx, dword [edx]
mov dword [ebp - 0x274], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x270], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x26c], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x268], ecx
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x264], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x260], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
lea eax, [ebp - 0x274]
cmp dword [ebp - 0x260], 8
jb 0x421688
mov eax, dword [ebp - 0x274]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x260]
mov esi, eax
cmp edx, 8
jb 0x4216d1
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4216c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421b97
push edx
push ecx
call fcn.0048bf7f
add esp, 8
mov edx, dword [ebp - 0x290]
xor eax, eax
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 7
mov word [ebp - 0x274], ax
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x421732
mov ecx, dword [ebp - 0x2a4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421728
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421b97
push edx
push ecx
call fcn.0048bf7f
add esp, 8
mov edx, dword [ebp - 0x2c0]
xor eax, eax
and edi, 0xfffffffb
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 7
mov word [ebp - 0x2a4], ax
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x421796
mov ecx, dword [ebp - 0x2d4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42178c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421b97
push edx
push ecx
call fcn.0048bf7f
add esp, 8
mov edx, dword [ebp - 0x248]
xor eax, eax
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2c0], 7
mov word [ebp - 0x2d4], ax
mov byte [ebp - 4], al
cmp edx, 8
jb 0x4217f6
mov ecx, dword [ebp - 0x25c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4217ec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421b97
push edx
push ecx
call fcn.0048bf7f
add esp, 8
test esi, esi
je 0x421b66
mov ebx, dword [ebp - 0x300]
lea esi, [ebp - 0x12]
mov ecx, ebx
test ebx, ebx
jns 0x421840
neg ecx
nop
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x421810
add esi, 0xfffffffe
mov eax, 0x2d
mov word [esi], ax
jmp 0x421860
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x421840
xor eax, eax
mov dword [ebp - 0x24c], 0
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x12]
mov dword [ebp - 0x248], 7
cmp esi, eax
je 0x421895
sub eax, esi
lea ecx, [ebp - 0x25c]
sar eax, 1
push eax
push esi
call fcn.004235b0
push 8
push str.Profile
push 0
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 6
call fcn.00425210
mov edx, eax
mov ecx, dword [edx]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x2ec], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x2e8], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x2e4], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x2e0], ecx
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x2d8], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov dword [ebp - 0x2dc], ecx
mov word [edx], ax
push dword [ebp - 0x30c]
mov ecx, dword [ebp - 0x2f4]
lea eax, [ebp - 0x2ec]
push eax
lea eax, [ebp - 0x2bc]
mov byte [ebp - 4], 7
push eax
push dword [ebp - 0x2f8]
call fcn.0041d170
or byte [ebp - 0x2ed], al
mov edx, dword [ebp - 0x2d8]
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x42196a
mov ecx, dword [ebp - 0x2ec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421960
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421b97
push edx
push ecx
call fcn.0048bf7f
add esp, 8
mov edx, dword [ebp - 0x248]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x4219ae
mov ecx, dword [ebp - 0x25c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4219a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421b97
push edx
push ecx
call fcn.0048bf7f
add esp, 8
lea esi, [ebp - 0x12]
mov ecx, ebx
test ebx, ebx
jns 0x4219f0
neg ecx
lea esp, [esp]
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x4219c0
add esi, 0xfffffffe
mov eax, 0x2d
mov word [esi], ax
jmp 0x421a10
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x4219f0
xor eax, eax
mov dword [ebp - 0x24c], 0
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x12]
mov dword [ebp - 0x248], 7
cmp esi, eax
je 0x421a45
sub eax, esi
lea ecx, [ebp - 0x25c]
sar eax, 1
push eax
push esi
call fcn.004235b0
push 8
push str.Profile
push 0
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 8
call fcn.00425210
mov edx, eax
or edi, 0x7e0
mov ecx, dword [edx]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x28c], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x288], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x284], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x280], ecx
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x278], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov dword [ebp - 0x27c], ecx
mov word [edx], ax
push dword [ebp - 0x304]
mov ecx, dword [ebp - 0x2f4]
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x2bc]
mov byte [ebp - 4], 9
push eax
push dword [ebp - 0x2f8]
call fcn.0041d170
or byte [ebp - 0x2ed], al
mov edx, dword [ebp - 0x278]
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x421b20
mov ecx, dword [ebp - 0x28c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421b16
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421b97
push edx
push ecx
call fcn.0048bf7f
add esp, 8
mov edx, dword [ebp - 0x248]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x421b60
mov ecx, dword [ebp - 0x25c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421b56
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421b97
push edx
push ecx
call fcn.0048bf7f
add esp, 8
inc ebx
jmp 0x4213e1
mov bl, byte [ebp - 0x2ed]
lea ecx, [ebp - 0x2bc]
call fcn.00402e60
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048bf8d
mov esp, ebp
pop ebp
ret 4
call fcn.004bce09
int3