Function at 0x1001f3b0
Capabilities:
Create directory
Delete file
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
xor eax, eax
jmp 0x1001f3c0
mov cl, byte [eax + 0x1005ae00]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x1001f3c0
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push esi
push edi
push 0x1005db70
call ebx
mov eax, 0x1005db70
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001f3f0
lea edi, [ebp - 0x104]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001f402
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [ebp - 0x104]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1001f451
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001f44a
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x104]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001f458
mov edx, dword [str.inter.zip]
mov ecx, dword [0x1004aa44]
mov dword [eax], edx
mov dx, word [0x1004aa48]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
not eax
test al, 0x10
je 0x1001f4d9
lea eax, [ebp - 0x208]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001f4b0
sub eax, edx
cmp byte [ebp + eax - 0x208], 0x5c
lea eax, [ebp + eax - 0x208]
je 0x1001f4d9
lea ebx, [ebx]
mov byte [eax], 0
dec eax
cmp byte [eax], 0x5c
jne 0x1001f4d0
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x1001f603
push 4
push 0x3000
push 0x104
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x1001f603
push 0x104
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x104]
push ecx
call fcn.10028c30
mov edi, eax
test edi, edi
je 0x1001f540
push 0
push esi
push edi
call fcn.10028dc0
push edi
call fcn.10028d30
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov cl, byte [eax + 0x1005ae00]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x1001f550
push 0x1005db70
call ebx
mov eax, 0x1005db70
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001f570
lea edi, [ebp - 0x104]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001f582
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x104]
rep movsb byte es:[edi], byte [esi]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001f5a0
mov edx, dword [str.path.txt]
mov ecx, dword [0x1004a380]
mov dword [eax], edx
mov dl, byte [0x1004a384]
mov dword [eax + 4], ecx
mov byte [eax + 8], dl
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x208]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001f5e7
sub eax, edx
push eax
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x104]
call fcn.10005550
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret