Function at 0x4028a0
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fd40
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x44c060]
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 dword [ebp - 0x88], edx
mov eax, ecx
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x84], ecx
test eax, eax
je 0x402c44
cmp word [eax], 0
je 0x402c44
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x78], 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 0x402932
push 0x104
lea ecx, [ebp - 0x78]
call fcn.00402ec0
mov esi, dword [ebp - 0x78]
push ecx
lea eax, [ebp - 0x6c]
push eax
push esi
sub esp, 8
mov dword [ebp - 0x6c], 0x208
call fcn.0041e7e0
add esp, 0x14
push dword [esi - 8]
movzx ebx, al
push esi
call dword [sym.imp.MSVCR110.dll_wcsnlen]
add esp, 8
test eax, eax
js 0x402c33
cmp eax, dword [esi - 8]
jg 0x402c33
xor ecx, ecx
or edi, 0xffffffff
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test ebx, ebx
je 0x402c3d
mov ecx, dword [esi - 0xc]
lea eax, [ecx - 1]
test eax, eax
js 0x402c33
cmp eax, ecx
jg 0x402c33
cmp word [esi + eax*2], 0x5c
je 0x4029a9
push 0x436f78
lea ecx, [ebp - 0x78]
call fcn.00402d40
push 5
push str.temp_
lea ecx, [ebp - 0x78]
call fcn.00403000
mov esi, dword [ebp - 0x78]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4029d8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x402c3d
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x80], ebx
mov byte [ebp - 4], 1
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x7c], edi
mov byte [ebp - 4], 2
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x104
or eax, ecx
jge 0x402a2a
push 0x104
lea ecx, [ebp - 0x80]
call fcn.00402ec0
mov ebx, dword [ebp - 0x80]
push ebx
push 0
push 0x436ea8
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push ecx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x74], eax
call fcn.00402d90
cmp dword [ebp - 0x74], 0
je 0x402a97
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x402a6f
push 0x104
lea ecx, [ebp - 0x7c]
call fcn.00402ec0
mov edi, dword [ebp - 0x7c]
push edi
push 0
push 0x436eb0
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push ecx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x74], eax
call fcn.00402d90
cmp dword [ebp - 0x74], 0
jne 0x402b03
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x70], 0
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402abe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [ebx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402adb
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x70]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x402afc
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
jmp 0x402c46
xor eax, eax
push 0x50
push eax
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push eax
call sub.MSVCR110.dll_memset
mov edx, dword [ebp - 0x70]
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
sub esp, 8
mov ecx, ebx
call fcn.00402580
add esp, 0xc
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x402b40
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
jmp 0x402a91
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x74], eax
push edi
lea eax, [ebp - 0x68]
push eax
push str.SHA1_CODE
push str.default
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
and dword [ebp - 0x70], eax
push edi
push dword [ebp - 0x88]
push str.virus_name
push str.default
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push dword [ebp + 0xc]
and dword [ebp - 0x70], eax
push dword [ebp + 8]
lea eax, [ebp - 0x74]
push str._I64u
push eax
call fcn.004032c0
add esp, 0x10
push edi
push dword [ebp - 0x74]
push str.virus_lib_date
push str.default
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
and dword [ebp - 0x70], eax
push edi
push str.8.17.0.0
push str.engine_version
push str.default
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
and dword [ebp - 0x70], eax
push 0
lea eax, [ebp - 0x74]
push 0x436f64
push eax
call fcn.004032c0
add esp, 0xc
push edi
push dword [ebp - 0x74]
push str.trust_types
push str.default
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
and dword [ebp - 0x70], eax
push edi
push ebx
push str.false_file
push str.default
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
and dword [ebp - 0x70], eax
je 0x402c26
push edi
push 0x104
push dword [ebp - 0x84]
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0xc
lea ecx, [ebp - 0x74]
call fcn.00402d20
jmp 0x402a9e
push 0x80070057
call fcn.004035b0
xor ebx, ebx
jmp 0x402ade
xor eax, eax
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.0042e0d6
mov esp, ebp
pop ebp
ret