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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
mov eax, 0x10a0
call fcn.004a9200
mov esi, esp
mov eax, dword [0x4f6014]
xor eax, ebp
mov dword [esi + 0x1098], eax
xor eax, eax
dec eax
lea ecx, [esi + 0x70]
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [ecx], xmm0
call fcn.0043ae00
xor eax, eax
lea edi, [esi + 0x60]
mov dword [edi + 4], eax
mov dword [edi], eax
mov dword [edi + 8], eax
lea ebx, [esi + 0x50]
mov dword [ebx + 4], eax
mov dword [ebx], eax
mov dword [esi + 8], 0
mov dword [ebx + 8], eax
push edi
call fcn.004136b3
add esp, 4
mov ecx, ebx
push edi
call fcn.00413a3c
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x413afc
mov eax, dword [esi + 0x54]
test eax, eax
je 0x413b21
lea ecx, [esi + 0x50]
push 0xe
push 0x4e34f4
call fcn.00435670
cmp byte [eax + 0xb], 0
jns 0x413b17
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 8], eax
movzx eax, byte [esi + 0x6b]
test al, al
jns 0x413b2c
mov eax, dword [esi + 0x64]
mov ecx, dword [ebp + 0x10]
test eax, eax
je 0x413c0e
cmp dword [esi + 8], 0
jne 0x413c0e
xor edi, edi
lea ebx, [esi + 0x90]
push 0x1000
push edi
push ebx
call fcn.004ab560
add esp, 0xc
push edi
push 0x1c
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
dec eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
lea edi, [esi + 0x30]
mov ecx, edi
push ebx
call fcn.00413982
mov ecx, edi
push 0xc
push 0x4e3512
call fcn.00435670
mov ecx, eax
push 6
push str.config
call fcn.00435670
mov ecx, eax
push 4
push str..ini
call fcn.00435670
cmp byte [eax + 0xb], 0
js 0x413bbb
mov ecx, dword [eax + 8]
mov dword [esi + 0x48], ecx
movq xmm0, qword [eax]
movq qword [esi + 0x40], xmm0
jmp 0x413bc8
lea ecx, [esi + 0x40]
push dword [eax + 4]
push dword [eax]
call fcn.00435230
cmp byte [esi + 0x3b], 0
jns 0x413bd9
push dword [esi + 0x30]
call fcn.004a7ee0
add esp, 4
cmp byte [esi + 0x4b], 0
jns 0x413be4
mov eax, dword [esi + 0x40]
jmp 0x413be7
lea eax, [esi + 0x40]
push eax
push 0
push 0x4e3492
push 0x4e34a2
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [esi + 0x4b], 0
jns 0x413c0b
push dword [esi + 0x40]
call fcn.004a7ee0
add esp, 4
mov ecx, dword [ebp + 0x10]
xor eax, eax
dec eax
mov dword [esi + 0xb4], eax
mov dword [esi + 0xb0], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0xa0], xmm0
movdqa xmmword [esi + 0x90], xmm0
test ecx, ecx
je 0x414105
push ecx
mov ebx, ecx
call fcn.004c3f8c
add esp, 4
lea edi, [esi + 0x90]
push eax
push ebx
push edi
call fcn.0043bb40
add esp, 0xc
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
cmp eax, edx
je 0x413d47
mov byte [esi + 3], 1
mov dword [esi + 0xc], edx
movzx ecx, byte [eax + 0xb]
mov dword [esi + 4], eax
test cl, cl
jns 0x413c7d
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 4]
cmp ecx, 7
jge 0x413c8e
add eax, 0xc
cmp eax, edx
jne 0x413c6a
jmp 0x413d4b
mov edi, dword [esi + 4]
lea ebx, [edi + ecx*2]
mov dword [esi + 0x10], ebx
lea ebx, [edi + ecx*2]
add ebx, 0xfffffffe
mov dword [esi + 0x14], ebx
add ecx, 0xfffffffa
je 0x413c82
mov ebx, dword [esi + 0x14]
sub ebx, edi
cmp word [edi], 0x2d
je 0x413cbb
add edi, 2
add ebx, 0xfffffffe
dec ecx
jne 0x413caa
jmp 0x413c82
test edi, edi
je 0x413c82
mov ecx, 0xfffffff2
movzx edx, word [edi + ecx + 0xe]
cmp dx, word [ecx + 0x4e3552]
jne 0x413cd9
add ecx, 2
jne 0x413cc4
jmp 0x413cea
add edi, 2
mov ecx, ebx
sar ecx, 1
cmp ebx, 0xe
mov edx, dword [esi + 0xc]
jge 0x413ca0
jmp 0x413c82
cmp edi, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
je 0x413c82
cmp edi, dword [esi + 4]
jne 0x413c82
xor ecx, ecx
dec ecx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], ecx
movzx ecx, byte [eax + 0xb]
test cl, cl
jns 0x413d10
mov ecx, dword [eax + 4]
mov eax, dword [eax]
xor edx, edx
inc edx
lea edi, [esi + 0x40]
push edx
push edx
push edx
push 0x4e3554
push ecx
push eax
push edi
call fcn.00451190
add esp, 0x1c
mov eax, dword [edi + 4]
sub eax, dword [edi]
sar eax, 2
imul eax, eax, 0xaaaaaaab
cmp eax, 2
setb byte [esi + 3]
mov ecx, edi
call fcn.00414108
jmp 0x413d4b
mov byte [esi + 3], 1
cmp dword [esi + 8], 0
jne 0x41403e
lea ebx, [esi + 0x40]
push ebx
call fcn.0041474c
add esp, 4
cmp byte [esi + 0x6b], 0
jns 0x413d72
push dword [esi + 0x60]
call fcn.004a7ee0
add esp, 4
mov eax, dword [esi + 0x48]
mov dword [esi + 0x68], eax
movq xmm0, qword [esi + 0x40]
movq qword [esi + 0x60], xmm0
lea edi, [esi + 0x50]
mov ecx, edi
lea eax, [esi + 0x60]
push eax
call fcn.00413a3c
mov ecx, edi
push 0xe
push 0x4e34f4
call fcn.00435670
cmp byte [esi + 0x5b], 0
jns 0x413da7
mov edi, dword [esi + 0x50]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413e56
xor eax, eax
dec eax
lea ebx, [esi + 0x40]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
lea eax, [esi + 0x50]
lea edi, [esi + 0x30]
push eax
push edi
call fcn.00414d02
add esp, 8
mov ecx, ebx
push edi
call fcn.004151e8
cmp byte [edi + 0xb], 0
jns 0x413ded
push dword [esi + 0x30]
call fcn.004a7ee0
add esp, 4
lea ebx, [esi + 0x18]
push ebx
call fcn.00414816
add esp, 4
lea eax, [esi + 0x24]
push ebx
push eax
mov ebx, eax
call fcn.00414610
add esp, 8
mov ecx, edi
push ebx
call fcn.004151e8
lea ecx, [esi + 0x40]
push edi
call fcn.00415276
mov dword [esi + 4], eax
mov ecx, edi
call fcn.004151d0
cmp byte [ebx + 0xb], 0
jns 0x413e34
push dword [esi + 0x24]
call fcn.004a7ee0
add esp, 4
cmp byte [esi + 0x23], 0
lea ebx, [esi + 0x40]
jns 0x413e48
push dword [esi + 0x18]
call fcn.004a7ee0
add esp, 4
lea ecx, [esi + 0x40]
call fcn.004151d0
cmp dword [esi + 4], 0
jns 0x413ec4
lea edi, [esi + 0x30]
push edi
call fcn.0041474c
add esp, 4
push edi
push ebx
call fcn.004148e0
add esp, 8
cmp byte [esi + 0x6b], 0
jns 0x413e7d
push dword [esi + 0x60]
call fcn.004a7ee0
add esp, 4
mov eax, dword [esi + 0x48]
mov dword [esi + 0x68], eax
movq xmm0, qword [esi + 0x40]
movq qword [esi + 0x60], xmm0
mov byte [esi + 0x4b], 0
mov word [esi + 0x40], 0
cmp byte [esi + 0x3b], 0
jns 0x413ea8
push dword [esi + 0x30]
call fcn.004a7ee0
add esp, 4
lea edi, [esi + 0x50]
mov ecx, edi
lea eax, [esi + 0x60]
push eax
call fcn.00413a3c
mov ecx, edi
push 0xe
push 0x4e34f4
call fcn.00435670
cmp byte [esi + 0x5b], 0
jns 0x413ecf
mov eax, dword [esi + 0x50]
jmp 0x413ed2
lea eax, [esi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x414025
call fcn.0043a15c
mov dword [esi + 4], eax
mov ecx, ebx
push 0x4e3558
call fcn.00414142
lea ebx, [esi + 0x24]
mov dword [ebx], 1
lea edi, [esi + 0x30]
mov ecx, edi
push str.qdhg02
call fcn.00414142
mov ecx, dword [esi + 4]
lea eax, [esi + 0x40]
push eax
push ebx
push edi
call fcn.0043a70a
cmp byte [edi + 0xb], 0
jns 0x413f2c
push dword [esi + 0x30]
call fcn.004a7ee0
add esp, 4
cmp byte [esi + 0x4b], 0
jns 0x413f3d
push dword [esi + 0x40]
call fcn.004a7ee0
add esp, 4
xor edi, edi
dec edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
push ebx
call fcn.00414816
add esp, 4
lea eax, [esi + 0x18]
push eax
call fcn.0041474c
add esp, 4
movzx eax, byte [esi + 0x2f]
test al, al
jns 0x413f6c
mov eax, dword [esi + 0x28]
mov ebx, dword [esi + 0x24]
lea ecx, [esi + 0x18]
push eax
push ebx
call fcn.00435670
mov ecx, dword [eax + 8]
mov dword [esi + 0x38], ecx
movq xmm0, qword [eax]
movq qword [esi + 0x30], xmm0
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
movzx eax, byte [esi + 0x3b]
test al, al
lea edx, [esi + 0x30]
jns 0x413fa0
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x34]
lea ecx, [esi + 0x40]
push eax
push edx
call fcn.0043d840
cmp byte [esi + 0x3b], 0
jns 0x413fbb
push dword [esi + 0x30]
call fcn.004a7ee0
add esp, 4
cmp byte [esi + 0x23], 0
jns 0x413fcc
push dword [esi + 0x18]
call fcn.004a7ee0
add esp, 4
cmp byte [esi + 0x2f], 0
jns 0x413fdd
push dword [esi + 0x24]
call fcn.004a7ee0
add esp, 4
mov dword [esi + 4], esp
push eax
sub esp, 8
mov ecx, esp
cmp byte [esi + 0x4b], 0
js 0x413ffd
mov eax, dword [esi + 0x48]
mov dword [ecx + 8], eax
movq xmm0, qword [esi + 0x40]
movq qword [ecx], xmm0
jmp 0x414008
push dword [esi + 0x44]
push dword [esi + 0x40]
call fcn.00435230
call fcn.00438f37
add esp, 0xc
mov ebx, eax
mov esp, dword [esi + 4]
lea ecx, [esi + 0x40]
call fcn.0043d8f0
test bl, bl
jne 0x4140b7
cmp byte [esi + 0x5b], 0
jns 0x414030
mov eax, dword [esi + 0x50]
jmp 0x414033
lea eax, [esi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x41408f
lea ecx, [esi + 0x60]
push 0x12
push str.chrome_initial.dll
call fcn.00435670
cmp byte [eax + 0xb], 0
jns 0x414055
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x41408f
push str.ChromeInitialMain
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4140b5
mov ecx, eax
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
call dword [section..00cfg]
push edi
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call ecx
add esp, 0x10
mov edi, eax
jmp 0x4140b7
cmp byte [esi + 3], 0
je 0x4140b0
push 0x10
push dword [0x4f6c2c]
push dword [0x4f6c30]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
call fcn.00414de7
xor edi, edi
dec edi
jmp 0x4140b7
xor edi, edi
lea ecx, [esi + 0x90]
call fcn.0043b910
cmp byte [esi + 0x5b], 0
jns 0x4140d3
push dword [esi + 0x50]
call fcn.004a7ee0
add esp, 4
cmp byte [esi + 0x6b], 0
jns 0x4140e4
push dword [esi + 0x60]
call fcn.004a7ee0
add esp, 4
lea ecx, [esi + 0x70]
call fcn.0043ae60
mov ecx, dword [esi + 0x1098]
xor ecx, ebp
call fcn.004a8de3
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
int3