Function at 0x42ac20
Capabilities:
Create directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a1851
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x610304]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push esi
push edi
mov eax, dword [0x610304]
xor eax, esp
push eax
lea eax, [esp + 0x2c8]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov esi, edx
push 3
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov byte [esp + 0x18], bl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.0042b1c0
push edi
mov edi, esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x2d4], ebx
call fcn.0042aad0
test al, al
je 0x42ae62
mov al, byte [esp + 0x14]
cmp al, bl
mov edi, dword [esp + 0x18]
je 0x42ace2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x42acc0
xor al, al
jmp 0x42accc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
cmp al, bl
sete al
cmp al, bl
sete cl
cmp cl, bl
mov byte [esp + 0x14], al
je 0x42ae62
cmp al, bl
mov dword [esp + 0x2d0], 0xffffffff
je 0x42ad16
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x42ad01
xor al, al
jmp 0x42ad0d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
cmp al, bl
sete al
mov byte [esp + 0x14], al
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edi, dword [esi]
add esp, 4
push 3
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call fcn.0042b1c0
lea ecx, [esp + 0x6c]
push ecx
push edi
mov dword [esp + 0x2d8], 2
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x68], edi
jne 0x42ad63
mov byte [esp + 0x13], bl
jmp 0x42adef
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x74]
push 1
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x7c]
push ebx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x8c]
push ebx
push eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
call fcn.00585110
mov ecx, dword [esp + 0x8c]
xor esi, esi
add eax, ecx
adc edx, esi
mov dword [esp + 0x30], edx
lea edx, [esp + 0x98]
push edx
lea ecx, [esp + 0x58]
mov dword [esp + 0x30], eax
mov byte [esp + 0x54], bl
call fcn.0042c610
push edi
mov byte [esp + 0x17], 1
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x2d0], 0xffffffff
mov eax, dword [esp + 0x54]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp byte [esp + 0x13], bl
jne 0x42ae28
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42ae91
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42ae6b
push 3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x18], bl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.0042b1c0
mov ecx, dword [esp + 0x24]
push ecx
mov edi, esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x2d4], ebx
call fcn.0042aad0
test al, al
jne 0x42aca4
lea edi, [esp + 0x14]
call fcn.00429df0
xor al, al
mov ecx, dword [esp + 0x2c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2b0]
xor ecx, esp
call fcn.00584870
mov esp, ebp
pop ebp
ret
mov al, 1
jmp 0x42ae6d