Function at 0x1003fdd0
Capabilities:
Create directory
Delete file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10125337
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x10167c60]
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 esi, ecx
mov eax, dword [esi + 0x20]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
je 0x10040106
push 0x64
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.100e67c0
add esp, 0xc
lea eax, [ebp - 0x74]
push 0x32
push eax
call fcn.100bfd10
push dword [esi + 0x20]
lea ecx, [ebp - 0x2c4]
call fcn.10007a50
push 0xfde9
lea eax, [ebp - 0x74]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0xf8]
call fcn.1001c220
push dword [eax]
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 1
call fcn.10007a50
mov eax, dword [ebp - 0xf8]
lea ecx, [ebp - 0xf4]
cmp eax, ecx
je 0x1003fe77
push eax
call fcn.100e9f68
add esp, 4
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0xf
mov byte [ebp - 0x294], 0
lea eax, [ebp - 0x294]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x2c4]
push eax
call fcn.10095d60
add esp, 0xc
test eax, eax
je 0x10040026
call fcn.100088b0
mov ecx, eax
test ecx, ecx
je 0x10040124
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c8], eax
lea eax, [ebp - 0x2c8]
mov byte [ebp - 4], 5
push eax
push 0x71
call fcn.100132d0
add esp, 8
lea ecx, [ebp - 0x2c9]
call fcn.1003eda0
push eax
lea eax, [ebp - 0x2c8]
push eax
call fcn.100131f0
mov ebx, dword [ebp - 0x2c8]
lea eax, [ebp - 0x294]
mov edi, dword [ebp - 0x284]
add esp, 8
cmp dword [ebp - 0x280], 0x10
mov dword [ebp - 0x2d0], ebx
cmovae eax, dword [ebp - 0x294]
push 0x80
push ebx
mov dword [ebp - 0x2d4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x208
lea eax, [ebp - 0x27c]
push 0
push eax
call fcn.100e67c0
lea ecx, [ebp - 0x27c]
mov esi, ebx
mov eax, ecx
add esp, 0xc
mov edx, 0x104
sub esi, eax
nop
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1003ff8e
movzx eax, word [esi + ecx]
test ax, ax
je 0x1003ff8e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x1003ff70
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0
lea eax, [ebp - 0x27c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10040004
push ebx
lea eax, [ebp - 0x2d0]
push eax
push edi
push dword [ebp - 0x2d4]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x2d0], edi
push esi
sete bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2c8]
or eax, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10040026
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x280]
cmp edx, 0x10
jb 0x10040060
mov ecx, dword [ebp - 0x294]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10040056
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004012e
push edx
push ecx
call fcn.100c459e
add esp, 8
mov edx, dword [ebp - 0x298]
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0xf
mov byte [ebp - 0x294], 0
cmp edx, 0x10
jb 0x100400b5
mov ecx, dword [ebp - 0x2ac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100400ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040133
push edx
push ecx
call fcn.100c459e
add esp, 8
mov edx, dword [ebp - 0x2b0]
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 0xf
mov byte [ebp - 0x2ac], 0
cmp edx, 0x10
jb 0x10040106
mov ecx, dword [ebp - 0x2c4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100400fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040138
push edx
push ecx
call fcn.100c459e
add esp, 8
mov eax, ebx
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.100c495f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10008520
call fcn.100e9c89
call fcn.100e9c89
call fcn.100e9c89
int3