Function at 0x1001cff0
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007044b
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x4318
call fcn.10068af0
mov eax, dword [0x10087040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x42cc], edx
mov esi, ecx
push 0x4018
lea eax, [ebp - 0x4284]
mov dword [ebp - 0x42c8], 0
xorps xmm0, xmm0
mov dword [ebp - 0x4288], 0
push 0
push eax
movq qword [ebp - 0x42c4], xmm0
call fcn.10043f30
add esp, 0xc
mov dword [ebp - 0x4328], 0
lea eax, [ebp - 0x4324]
push 0x4c
push 0
push eax
call fcn.10043f30
add esp, 0xc
mov dword [ebp - 0x4290], 0
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x42ac], 0
mov dword [ebp - 0x42bc], 0xffffffff
mov dword [ebp - 0x4294], 0
push esi
mov dword [ebp - 0x42d0], 0
mov dword [ebp - 0x42a8], 0x100205b0
mov dword [ebp - 0x42a4], 0x100205d0
mov dword [ebp - 0x42d8], 0x100205b0
mov dword [ebp - 0x42d4], 0x100205d0
call fcn.100098a0
push 0
push 0
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x238]
cmp dword [ebp - 0x224], 7
push 0
cmova eax, dword [ebp - 0x238]
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jg 0x1001d155
xorps xmm0, xmm0
mov dword [ebp - 0x240], 0
movups xmmword [ebp - 0x250], xmm0
mov dword [ebp - 0x23c], 0xf
mov byte [ebp - 0x250], 0
jmp 0x1001d1ed
push edi
call fcn.100428f4
add esp, 4
mov esi, eax
cmp dword [ebp - 0x224], 7
lea eax, [ebp - 0x238]
cmova eax, dword [ebp - 0x238]
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, esi
mov byte [esi + edi - 1], 0
xorps xmm0, xmm0
mov dword [ebp - 0x258], 0
movups xmmword [ebp - 0x268], xmm0
mov dword [ebp - 0x254], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001d1b0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x268]
call fcn.1000a880
push esi
call fcn.10041e2e
movups xmm0, xmmword [ebp - 0x268]
add esp, 4
movups xmmword [ebp - 0x250], xmm0
movq xmm0, qword [ebp - 0x258]
movq qword [ebp - 0x240], xmm0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x224]
cmp ecx, 7
jbe 0x1001d231
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001d227
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001d6ff
push ecx
push edx
call fcn.10042472
add esp, 8
push 0
push 0x80
push 3
xor eax, eax
mov dword [ebp - 0x228], 0
cmp dword [ebp - 0x23c], 0xf
push 0
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x250]
cmova eax, dword [ebp - 0x250]
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x224], 7
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x42c0], eax
cmp eax, 0xffffffff
je 0x1001d290
xor esi, esi
jmp 0x1001d294
call edi
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x23c]
cmp ecx, 0xf
jbe 0x1001d2d5
mov edx, dword [ebp - 0x250]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001d2cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001d704
push ecx
push edx
call fcn.10042472
add esp, 8
test esi, esi
jne 0x1001d6a8
lea eax, [ebp - 0x42c8]
mov dword [ebp - 0x42c8], 0x10020500
mov dword [ebp - 0x42c4], 0x10020520
mov dword [ebp - 0x4288], 0x100205e0
mov dword [ebp - 0x4284], 0x10020640
mov dword [ebp - 0x4280], 0x10020650
mov dword [ebp - 0x427c], 0x100206a0
mov dword [ebp - 0x4278], eax
mov dword [ebp - 0x4270], esi
mov dword [ebp - 0x4274], esi
call fcn.100206c0
lea eax, [ebp - 0x42d8]
mov dword [ebp - 0x4318], esi
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x4314], esi
lea eax, [ebp - 0x42a8]
mov dword [ebp - 0x4310], esi
push eax
lea edx, [ebp - 0x4288]
mov dword [ebp - 0x430c], esi
lea ecx, [ebp - 0x4328]
mov dword [ebp - 0x42e8], esi
movups xmmword [ebp - 0x4328], xmm0
mov dword [ebp - 0x42e4], esi
movups xmmword [ebp - 0x42f8], xmm0
mov dword [ebp - 0x42e0], esi
call fcn.1001fd60
mov esi, eax
add esp, 8
test esi, esi
je 0x1001d3af
lea edx, [ebp - 0x42a8]
lea ecx, [ebp - 0x4328]
call fcn.1001da30
jmp 0x1001d6a8
xor edi, edi
mov dword [ebp - 0x428c], esi
mov dword [ebp - 0x429c], edi
cmp dword [ebp - 0x430c], edi
jbe 0x1001d679
xor esi, esi
mov dword [ebp - 0x42a0], esi
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.10043f30
add esp, 0xc
lea eax, [ebp - 0x220]
push dword [ebp - 0x42cc]
push 0x104
push eax
call fcn.1004cfef
mov eax, dword [ebp - 0x4318]
add esp, 0xc
add eax, esi
mov dword [ebp - 0x42b4], 0
mov dword [ebp - 0x42b0], eax
mov eax, dword [ebp - 0x42e8]
mov dword [ebp - 0x4298], 0
lea esi, [eax + edi*4]
mov edi, dword [esi + 4]
sub edi, dword [esi]
cmp edi, dword [ebp - 0x42ac]
jbe 0x1001d477
push dword [ebp - 0x4290]
call fcn.10045ec5
add esp, 4
mov dword [ebp - 0x42ac], edi
add edi, edi
je 0x1001d66a
push edi
call fcn.10045ee0
mov edi, eax
add esp, 4
mov dword [ebp - 0x4290], edi
test edi, edi
je 0x1001d674
mov edx, dword [esi + 4]
mov ecx, dword [esi]
sub edx, ecx
jmp 0x1001d488
mov edx, dword [esi + 4]
mov ecx, dword [esi]
sub edx, ecx
mov edi, dword [ebp - 0x4290]
test edi, edi
je 0x1001d4b0
mov eax, dword [ebp - 0x42e4]
lea esi, [eax + ecx*2]
test edx, edx
je 0x1001d4b0
mov ecx, edi
sub esi, edi
nop dword [eax]
mov ax, word [esi + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x1001d4a0
push edi
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp - 0x42b0]
cmp byte [eax + 0x19], 0
jne 0x1001d525
lea eax, [ebp - 0x42d8]
push eax
lea eax, [ebp - 0x42a8]
push eax
lea eax, [ebp - 0x4298]
push eax
lea eax, [ebp - 0x42b4]
push eax
lea eax, [ebp - 0x42d0]
push eax
lea eax, [ebp - 0x4294]
push eax
lea eax, [ebp - 0x42bc]
push eax
push dword [ebp - 0x429c]
lea edx, [ebp - 0x4288]
lea ecx, [ebp - 0x4328]
call fcn.10020190
mov esi, eax
add esp, 0x20
mov dword [ebp - 0x428c], esi
test esi, esi
jne 0x1001d679
mov ax, word [ebp - 0x220]
xor edi, edi
test ax, ax
je 0x1001d58f
xor ecx, ecx
movzx edx, ax
lea esi, [ebp - 0x220]
nop
movzx eax, dx
cmp eax, 0x2f
je 0x1001d552
mov edx, 0x2f2f
cmp ax, dx
jne 0x1001d579
cmp ecx, 0x208
jae 0x1001d709
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, 0x5c
mov word [esi], ax
inc edi
lea esi, [ebp - 0x220]
lea ecx, [edi + edi]
add esi, ecx
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x1001d540
mov eax, dword [ebp - 0x42b0]
push 0
cmp byte [eax + 0x19], 0
je 0x1001d5af
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x1001d639
mov edi, dword [ebp - 0x42b4]
xor eax, eax
add edi, dword [ebp - 0x4294]
push 0x80
push 2
push eax
push eax
mov dword [ebp - 0x428c], eax
lea eax, [ebp - 0x220]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001d5f1
mov dword [ebp - 0x428c], 1
jmp 0x1001d639
push 0
lea eax, [ebp - 0x42b8]
mov dword [ebp - 0x42b8], 0
push eax
push dword [ebp - 0x4298]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x4298]
mov ecx, 1
cmp dword [ebp - 0x42b8], eax
mov eax, dword [ebp - 0x428c]
cmovne eax, ecx
push esi
mov dword [ebp - 0x428c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x428c]
test esi, esi
jne 0x1001d679
mov edi, dword [ebp - 0x429c]
add dword [ebp - 0x42a0], 0x20
inc edi
mov dword [ebp - 0x429c], edi
cmp edi, dword [ebp - 0x430c]
jae 0x1001d679
mov esi, dword [ebp - 0x42a0]
jmp 0x1001d3d1
mov dword [ebp - 0x4290], 0
mov esi, 1
mov eax, dword [ebp - 0x42a4]
push dword [ebp - 0x4294]
cmp eax, 0x100205d0
jne 0x1001d696
call fcn.10045ec5
add esp, 4
jmp 0x1001d6a2
lea ecx, [ebp - 0x42a8]
push ecx
call eax
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x42a8]
lea ecx, [ebp - 0x4328]
call fcn.1001da30
push dword [ebp - 0x4290]
call fcn.10045ec5
mov eax, dword [ebp - 0x42c0]
add esp, 4
cmp eax, 0xffffffff
je 0x1001d6df
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1001d6df
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10041e20
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10045dc4
call fcn.10045dc4
call fcn.10041f64
int3