Function at 0x100399f0
Capabilities:
Create directory
Delete file
Set file attributes
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008306b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x100a6250]
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 ebx, ecx
call fcn.1002c620
mov esi, eax
mov dword [ebp - 0x228], esi
test esi, esi
je 0x10039d25
mov ecx, dword [ebx + 8]
sub esp, 8
sub ecx, dword [ebx + 4]
sar ecx, 2
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x100893c0]
movsd qword [esp], xmm0
call fcn.1002c5c0
push eax
push str.nItem
push esi
call fcn.1002c510
movd xmm0, dword [ebx + 0x18]
add esp, 0xc
cvtdq2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.1002c5c0
push eax
push str.bActived
push esi
call fcn.1002c510
mov eax, dword [ebx + 0x1c]
add esp, 0xc
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100893c0]
movsd qword [esp], xmm0
call fcn.1002c5c0
push eax
push str.dwInterval
push esi
call fcn.1002c510
movd xmm0, dword [ebx + 0x20]
add esp, 0xc
cvtdq2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.1002c5c0
push eax
push str.emMODE
push esi
call fcn.1002c510
mov eax, dword [ebx + 0x10]
add esp, 0xc
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100893c0]
movsd qword [esp], xmm0
call fcn.1002c5c0
push eax
push str.ItemIndex
push esi
call fcn.1002c510
push esi
call fcn.1002c8a0
add esp, 0x18
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x10039c64
mov edx, SysReAllocString
mov ecx, eax
nop dword [eax]
cmp byte [ecx], 0
je 0x10039b3b
inc ecx
sub edx, 1
jne 0x10039b30
mov eax, SysReAllocString
mov esi, edx
sub eax, edx
neg esi
sbb esi, esi
and esi, eax
test edx, edx
je 0x10039c55
lea eax, [ebp - 0x224]
mov ecx, ebx
push eax
call fcn.10038bc0
push 0x80
mov edi, dword [eax]
push edi
mov dword [ebp - 0x220], edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100456c0
lea ecx, [ebp - 0x218]
add esp, 0xc
mov eax, ecx
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10039bbe
movzx eax, word [edi + ecx]
test ax, ax
je 0x10039bbe
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10039ba0
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10039c2f
push 0
lea eax, [ebp - 0x220]
push eax
push esi
mov esi, dword [ebp - 0x21c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10039c35
mov esi, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x224]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10039c5b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10039c5b
mov esi, dword [ebp - 0x21c]
push esi
call fcn.100492e8
add esp, 4
mov eax, dword [ebx + 8]
xor esi, esi
mov ecx, dword [ebx + 4]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x10039d17
nop dword [eax]
mov edi, dword [ecx + esi*4]
test edi, edi
je 0x10039d03
push esi
lea eax, [ebp - 0x21c]
mov ecx, ebx
push eax
call fcn.10038a30
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.10036e20
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x220]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10039cd1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x21c]
mov ecx, edi
call fcn.10037390
mov edx, dword [ebp - 0x21c]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10039d03
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 8]
inc esi
mov ecx, dword [ebx + 4]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x10039c80
push dword [ebp - 0x228]
call fcn.1002c6d0
add esp, 4
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.1001a767
mov esp, ebp
pop ebp
ret