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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c398
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4a704c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc
xor eax, eax
mov dword [ebp - 0x60], 0
push 0x4a023c
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.0041a830
mov dword [ebp - 4], 0
xor esi, esi
mov edi, dword [ebp - 0x60]
test edi, edi
je 0x41bb63
mov dword [ebp - 0x30], esi
xor eax, eax
mov esi, 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
mov edx, edi
push 1
cmovae ecx, dword [ebp - 0x70]
sub esp, 8
call fcn.0041ac50
add esp, 0xc
cmp eax, 1
jne 0x41b7c6
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push edi
cmovae eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x28]
push eax
call fcn.0041a830
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edx, 8
jb 0x41b788
mov eax, ecx
test eax, eax
je 0x41b7a4
cmp word [eax], 0
je 0x41b7a4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41b79e
test al, 0x10
je 0x41b7b9
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp edx, 8
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x28]
cmovae eax, ecx
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x18], 0
jne 0x41ba87
mov esi, dword [ebp - 0x2c]
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x40]
cmp esi, 8
mov dword [ebp - 0x30], 0
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
mov word [eax], cx
cmp word [0x4ad2f0], cx
jne 0x41b7f7
push 1
push 0x25
push 0x4ad2f0
push ecx
call edi
mov ecx, 0x4ad2f0
mov dword [ebp - 0x48], 0
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b813
sub ecx, edx
sar ecx, 1
push ecx
push 0x4ad2f0
lea ecx, [ebp - 0x58]
call fcn.0041a830
lea ecx, [ebp - 0x40]
call fcn.0041a780
cmp dword [ebp - 0x48], 0
movups xmm0, xmmword [ebp - 0x58]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [ebp - 0x48]
movq qword [ebp - 0x30], xmm0
je 0x41b921
lea ecx, [ebp - 0x40]
call fcn.0041b660
lea eax, [ebp - 0x70]
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.0041bc00
mov esi, eax
add esp, 4
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x41b8a2
mov ecx, eax
call fcn.0041a780
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x41b8dc
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41b8d2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41bbb6
push edx
push ecx
call fcn.0044ca9a
add esp, 8
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edx, 8
jb 0x41b8f0
mov eax, ecx
test eax, eax
je 0x41b90c
cmp word [eax], 0
je 0x41b90c
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41b906
test al, 0x10
je 0x41b921
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp edx, 8
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x28]
cmovae eax, ecx
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x18], 0
jne 0x41ba87
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], 0
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
mov word [eax], cx
cmp word [0x4ad0e8], cx
jne 0x41b957
push 1
push 0x24
push 0x4ad0e8
push ecx
call edi
mov ecx, 0x4ad0e8
mov dword [ebp - 0x48], 0
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b973
sub ecx, edx
sar ecx, 1
push ecx
push 0x4ad0e8
lea ecx, [ebp - 0x58]
call fcn.0041a830
lea ecx, [ebp - 0x40]
call fcn.0041a780
cmp dword [ebp - 0x48], 0
movups xmm0, xmmword [ebp - 0x58]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [ebp - 0x48]
movq qword [ebp - 0x30], xmm0
je 0x41ba81
lea ecx, [ebp - 0x40]
call fcn.0041b660
lea eax, [ebp - 0x70]
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.0041bc00
mov esi, eax
add esp, 4
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x41ba02
mov ecx, eax
call fcn.0041a780
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x41ba3c
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ba32
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41bbbb
push edx
push ecx
call fcn.0044ca9a
add esp, 8
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edx, 8
jb 0x41ba50
mov eax, ecx
test eax, eax
je 0x41ba6c
cmp word [eax], 0
je 0x41ba6c
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41ba66
test al, 0x10
je 0x41ba81
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp edx, 8
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x28]
cmovae eax, ecx
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x18], 0
je 0x41bac9
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x41ba97
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x41bac9
cmp word [eax], 0
je 0x41bac9
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41bac9
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test al, 0x10
jne 0x41bacf
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
mov esi, eax
test esi, esi
jne 0x41badf
jmp 0x41bacf
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call edi
mov esi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41bb19
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41bb0f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41bbc0
push edx
push ecx
call fcn.0044ca9a
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x41bb63
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41bb59
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41bbc5
push edx
push ecx
call fcn.0044ca9a
add esp, 8
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x41bb99
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41bb8f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41bbca
push edx
push ecx
call fcn.0044ca9a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ca89
mov esp, ebp
pop ebp
ret
call fcn.00451295
call fcn.00451295
call fcn.00451295
call fcn.00451295
call fcn.00451295
int3