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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10029759
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x10045070]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x10045070]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov dword [esp + 0x28], edx
mov eax, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x2c], ecx
test eax, eax
je 0x10001d97
cmp word [eax], 0
je 0x10001d97
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov dword [esp + 0xa0], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x10001a48
push 0x104
lea ecx, [esp + 0x20]
call fcn.10001f30
mov esi, dword [esp + 0x1c]
push ecx
lea eax, [esp + 0x34]
push eax
push esi
sub esp, 8
mov dword [esp + 0x44], 0x208
call fcn.10025160
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 0x10001d86
cmp eax, dword [esi - 8]
jg 0x10001d86
xor ecx, ecx
or edi, 0xffffffff
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test ebx, ebx
je 0x10001d90
mov ecx, dword [esi - 0xc]
lea eax, [ecx - 1]
test eax, eax
js 0x10001d86
cmp eax, ecx
jg 0x10001d86
cmp word [esi + eax*2], 0x5c
je 0x10001ac2
push 0x1002f634
lea ecx, [esp + 0x20]
call fcn.10001e90
push 5
push str.temp_
lea ecx, [esp + 0x24]
call fcn.10002070
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10001af3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10001d90
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x24], ebx
mov byte [esp + 0xa0], 1
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
mov byte [esp + 0xa0], 2
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x104
or eax, ecx
jge 0x10001b51
push 0x104
lea ecx, [esp + 0x28]
call fcn.10001f30
mov ebx, dword [esp + 0x24]
push ebx
push 0
push 0x1002f564
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], eax
call fcn.10001ee0
cmp dword [esp + 0x18], 0
je 0x10001bca
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x10001b9b
push 0x104
lea ecx, [esp + 0x24]
call fcn.10001f30
mov edi, dword [esp + 0x20]
push edi
push 0
push 0x1002f56c
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], eax
call fcn.10001ee0
cmp dword [esp + 0x18], 0
jne 0x10001c44
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x14], 0
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [esp + 0xa0], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10001bf6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [esp + 0xa0], 0
lea eax, [ebx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10001c17
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [esp + 0x14]
add esi, 0xfffffff0
mov dword [esp + 0xa0], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x10001c3d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
jmp 0x10001d99
xor eax, eax
push 0x50
push eax
mov word [esp + 0x3c], ax
lea eax, [esp + 0x3e]
push eax
call sub.MSVCR110.dll_memset
mov edx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x34]
push eax
sub esp, 8
mov ecx, ebx
call fcn.10001680
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10001c86
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
jmp 0x10001bc4
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
push edi
lea eax, [esp + 0x38]
push eax
push str.SHA1_CODE
push str.default
mov byte [esp + 0xb0], 3
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
and dword [esp + 0x14], eax
push edi
push dword [esp + 0x2c]
push str.virus_name
push str.default
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push dword [ebp + 0xc]
and dword [esp + 0x18], eax
push dword [ebp + 8]
lea eax, [esp + 0x20]
push str._I64u
push eax
call fcn.10002330
add esp, 0x10
push edi
push dword [esp + 0x1c]
push str.virus_lib_date
push str.default
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
and dword [esp + 0x14], 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 [esp + 0x14], eax
push 3
lea eax, [esp + 0x1c]
push 0x1002f620
push eax
call fcn.10002330
add esp, 0xc
push edi
push dword [esp + 0x1c]
push str.trust_types
push str.default
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
and dword [esp + 0x14], eax
push edi
push ebx
push str.false_file
push str.default
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
and dword [esp + 0x14], eax
je 0x10001d78
push edi
push 0x104
push dword [esp + 0x34]
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.10001e70
jmp 0x10001bd2
push 0x80070057
call fcn.10002660
xor ebx, ebx
jmp 0x10001c1b
xor eax, eax
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.10027146
mov esp, ebp
pop ebp
ret