Function at 0x10001590
Capabilities:
Create directory
Delete file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10010d8b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x5c8
mov eax, dword [0x10015364]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x164
lea eax, [ebp - 0x180]
mov dword [ebp - 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x180]
push 0x164
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__getcwd]
mov dword [ebp - 0x5a0], 0xd5337463
lea edx, [ebp - 0x5d0]
mov dword [ebp - 0x59c], 0x21651b87
add esp, 8
mov eax, dword [ebp - 0x5a0]
mov esi, edx
mov ecx, dword [ebp - 0x59c]
mov dword [ebp - 0x5d0], eax
mov dword [ebp - 0x5cc], ecx
mov dword [ebp - 0x5a0], 0x978a8d40
mov dword [ebp - 0x59c], 0x57d6156e
mov eax, dword [ebp - 0x5a0]
mov ecx, dword [ebp - 0x59c]
mov dword [ebp - 0x5c8], eax
mov dword [ebp - 0x5c4], ecx
mov dword [ebp - 0x5a0], 0x261e63fa
mov dword [ebp - 0x59c], 0x9d435798
mov eax, dword [ebp - 0x5a0]
mov ecx, dword [ebp - 0x59c]
mov dword [ebp - 0x5c0], eax
mov dword [ebp - 0x5bc], ecx
mov dword [ebp - 0x5a0], 0xb739916
mov dword [ebp - 0x59c], 0x1d05ce99
mov eax, dword [ebp - 0x5a0]
mov ecx, dword [ebp - 0x59c]
mov dword [ebp - 0x5b8], eax
mov dword [ebp - 0x5b4], ecx
mov dword [ebp - 0x5a0], 0xa652333f
mov dword [ebp - 0x59c], 0x4a167aca
mov eax, dword [ebp - 0x5a0]
mov ecx, dword [ebp - 0x59c]
mov dword [ebp - 0x590], eax
mov dword [ebp - 0x58c], ecx
mov dword [ebp - 0x5a0], 0xdacdd61c
mov dword [ebp - 0x59c], 0x30b95933
mov eax, dword [ebp - 0x5a0]
mov ecx, dword [ebp - 0x59c]
mov dword [ebp - 0x588], eax
mov dword [ebp - 0x584], ecx
mov dword [ebp - 0x5a0], 0x261e6389
mov dword [ebp - 0x59c], 0x9d435798
mov eax, dword [ebp - 0x5a0]
mov ecx, dword [ebp - 0x59c]
mov dword [ebp - 0x580], eax
mov dword [ebp - 0x57c], ecx
mov dword [ebp - 0x5a0], 0xb739916
mov dword [ebp - 0x59c], 0x1d05ce99
mov eax, dword [ebp - 0x5a0]
mov ecx, dword [ebp - 0x59c]
movaps xmm1, xmmword [ebp - 0x5d0]
xorps xmm1, xmmword [ebp - 0x590]
movaps xmmword [ebp - 0x5d0], xmm1
movaps xmm1, xmmword [ebp - 0x5c0]
mov dword [ebp - 0x578], eax
mov dword [ebp - 0x574], ecx
xorps xmm1, xmmword [ebp - 0x580]
movaps xmmword [ebp - 0x5c0], xmm1
mov al, byte [edx]
inc edx
test al, al
jne 0x10001795
lea edi, [ebp - 0x180]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100017a5
mov ecx, edx
lea eax, [ebp - 0x180]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x588]
call fcn.1000b2a0
lea ecx, [ebp - 0x588]
call fcn.10001570
mov ecx, dword [ebp - 0x574]
mov byte [ebp - 0x5a1], al
cmp ecx, 0x10
jb 0x10001820
mov edx, dword [ebp - 0x588]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001810
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001810
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1000f79c
mov al, byte [ebp - 0x5a1]
add esp, 8
test al, al
jne 0x10001833
push 0
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x1f4
lea eax, [ebp - 0x378]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebx + 8]
cmp dword [ebx + 0x1c], 0x10
cmovae eax, dword [ebx + 8]
push eax
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x378]
push str._s_s
push eax
call fcn.10001380
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 0x10
cmp byte [0x10015ba8], 0
jne 0x100018b2
lea eax, [ebp - 0x378]
push 0x10012a20
push eax
call esi
add esp, 8
test eax, eax
je 0x100018ab
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea eax, [ebp - 0x378]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [0x10015ba8], 1
lea eax, [ebp - 0x378]
push 0x10012a24
push eax
call esi
add esp, 8
mov dword [ebp - 0x59c], eax
test eax, eax
je 0x10001a58
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov dword [ebp - 0x598], eax
lea eax, [ebp - 0x598]
mov dword [ebp - 0x594], edx
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x570]
push 0x1f4
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x570]
push dword [esi]
push dword [esi + 4]
push dword [esi + 8]
push str.__d:_d:_d_
push eax
call fcn.10001380
add esp, 0x14
lea ecx, [ebp - 0x5c8]
push dword [ebx + 0x20]
call fcn.1000b2a0
push 1
sub esp, 8
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.1000ba40
lea edx, [ebp - 0x588]
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
movd eax, xmm1
movq qword [ebp - 0x578], xmm0
cmp dword [ebp - 0x574], 0x10
movups xmmword [ebp - 0x588], xmm1
cmovae edx, eax
mov dword [ebp - 0x5a8], eax
mov esi, edx
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x10001990
lea edi, [ebp - 0x570]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100019a0
mov eax, dword [ebp - 0x574]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp eax, 0x10
jb 0x100019ee
mov edx, dword [ebp - 0x5a8]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x100019e4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001a1a
push ecx
push edx
call fcn.1000f79c
add esp, 8
mov ecx, dword [ebp - 0x5b4]
cmp ecx, 0x10
jb 0x10001a2a
mov edx, dword [ebp - 0x5c8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001a20
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001a20
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1000f79c
add esp, 8
mov esi, dword [ebp - 0x59c]
lea eax, [ebx + 0x24]
push eax
push 0
lea eax, [ebp - 0x570]
push eax
push esi
call fcn.10001370
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vfprintf]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x1c
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x10
jb 0x10001a8e
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001a84
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001a84
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1000f79c
add esp, 8
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.1000f444
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret