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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], edx
mov edi, ecx
mov eax, dword [0x448020]
mov ecx, 0x448020
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x41020b
push 0x104
lea ecx, [ebp - 0x14]
call fcn.004026b0
mov esi, dword [ebp - 0x14]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [esi - 8]
push esi
call fcn.00420547
add esp, 8
test eax, eax
js 0x410459
cmp eax, dword [esi - 8]
jg 0x410459
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [esi - 0xc]
or ebx, 0xffffffff
test eax, eax
je 0x410463
cmp eax, 0xe6
jg 0x410463
lea ecx, [eax - 1]
test ecx, ecx
js 0x410459
cmp ecx, eax
jg 0x410459
cmp word [esi + ecx*2], 0x5c
je 0x41027d
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00407d30
mov esi, dword [ebp - 0x14]
mov eax, dword [0x448020]
mov ecx, 0x448020
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00403130
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004100e0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4102cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x4102e3
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004025f0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.00420547
mov edx, eax
add esp, 8
test edx, edx
js 0x410459
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x410459
mov dword [ecx - 0xc], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov word [eax + edx*2], cx
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ecx
jne 0x410343
push 3
push 0x43d9a8
lea ecx, [ebp - 0x18]
call fcn.00402440
push 8
push 0x43c63c
lea ecx, [ebp - 0x10]
call fcn.00402440
jmp 0x4103a2
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402500
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x41036a
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004025f0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.00420547
mov edx, eax
add esp, 8
test edx, edx
js 0x410459
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x410459
mov dword [ecx - 0xc], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov word [eax + edx*2], cx
mov edi, dword [ebp - 0x18]
xor ebx, ebx
push edi
push ebx
push dword [ebp - 0x10]
push esi
push str._s_s_i_s
push dword [ebp - 0x20]
call fcn.004025d0
inc ebx
add esp, 0x18
cmp ebx, 0x3e8
jge 0x4103d6
mov eax, dword [ebp - 0x20]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4103a7
xor eax, eax
cmp ebx, 0x3e8
setne al
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov ecx, ebx
mov dword [ebp - 0x20], eax
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410407
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410424
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x20]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x410445
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402950
xor edi, edi
jmp 0x410427