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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e8acd
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x308], eax
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x320]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
push 0xffffffffffffffff
mov edi, 7
push esi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], esi
mov word [esp + 0x50], si
call fcn.00402580
push 0x10
lea ecx, [esp + 0x48]
mov dword [esp + 0x32c], esi
call fcn.00429af0
add esp, 4
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], esi
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], esi
mov word [esp + 0xa8], si
push 4
mov byte [esp + 0x32c], 1
call fcn.0059b847
add esp, 4
cmp eax, esi
je 0x42a811
mov dword [eax], 0xffffffff
mov dword [esp + 0x20], eax
jmp 0x42a815
mov dword [esp + 0x20], esi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x24], edi
lea eax, [esp + 0x44]
push eax
mov ebx, 0x609fd4
lea esi, [esp + 0x2c]
mov byte [esp + 0x32c], 2
call fcn.0040c140
add esp, 4
lea edx, [esp + 0x7c]
mov ecx, eax
mov esi, edi
mov byte [esp + 0x328], 3
call fcn.0042e060
mov byte [esp + 0x328], 2
cmp dword [esp + 0x40], 8
mov bl, al
jb 0x42a86e
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0059b877
add esp, 4
test bl, bl
je 0x42aa85
lea esi, [esp + 0x7c]
call fcn.0042e240
test al, al
jne 0x42a8f5
mov eax, dword [esp + 0x9c]
and eax, 0x10
xor ecx, ecx
lea edx, [esp + 0xa4]
or eax, ecx
push edx
lea eax, [esp + 0x48]
lea edi, [esp + 0x2c]
push eax
je 0x42a8c4
call fcn.0040c1f0
push eax
mov byte [esp + 0x334], 4
call fcn.0042a740
add esp, 0xc
mov byte [esp + 0x328], 2
jmp 0x42a8d9
call fcn.0040c1f0
add esp, 8
lea edi, [esp + 0x28]
call fcn.0042a6f0
movzx eax, al
cdq
cmp dword [esp + 0x40], 8
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
jb 0x42a8f5
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0059b877
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
lea edx, [esp + 0xc4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne al
test al, al
je 0x42aa85
lea edi, [esp + 0x7c]
lea ecx, [esp + 0xc4]
call fcn.0042e0f0
mov edx, dword [esp + 0x9c]
mov eax, edx
and eax, 0x10
xor ecx, ecx
or eax, ecx
je 0x42a9b0
mov ecx, dword [esp + 0xb8]
test ecx, ecx
je 0x42a9b0
cmp dword [esp + 0xbc], 8
mov eax, dword [esp + 0xa8]
jae 0x42a968
lea eax, [esp + 0xa8]
cmp word [eax], 0x2e
jne 0x42a9b0
cmp ecx, 1
je 0x42a901
jae 0x42a988
call fcn.005b8b18
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0x9c]
cmp dword [esp + 0xbc], 8
mov eax, dword [esp + 0xa8]
jae 0x42a9a0
lea eax, [esp + 0xa8]
cmp word [eax + 2], 0x2e
jne 0x42a9b0
cmp ecx, 2
je 0x42a901
and edx, 0x10
mov eax, edx
xor ecx, ecx
or eax, ecx
lea ecx, [esp + 0xa4]
lea edx, [esp + 0x44]
push ecx
lea edi, [esp + 0x2c]
push edx
je 0x42aa0f
call fcn.0040c1f0
push eax
mov byte [esp + 0x334], 5
call fcn.0042a740
add esp, 0xc
add dword [esp + 0x14], eax
mov byte [esp + 0x328], 2
adc dword [esp + 0x18], edx
cmp dword [esp + 0x40], 8
jb 0x42a901
mov eax, dword [esp + 0x2c]
push eax
call fcn.0059b877
add esp, 4
jmp 0x42a901
call fcn.0040c1f0
mov eax, dword [esp + 0x34]
mov edi, 8
add esp, 8
cmp dword [esp + 0x40], edi
jae 0x42aa2a
lea eax, [esp + 0x2c]
push eax
call ebx
mov ecx, dword [esp + 0x2c]
and eax, 0xfffffffe
cmp dword [esp + 0x40], edi
jae 0x42aa3e
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x40], edi
mov eax, dword [esp + 0x2c]
jae 0x42aa54
lea eax, [esp + 0x2c]
push eax
call esi
cmp eax, 1
sete al
movzx eax, al
cdq
add dword [esp + 0x14], eax
adc dword [esp + 0x18], edx
cmp dword [esp + 0x40], edi
jb 0x42a901
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0059b877
add esp, 4
jmp 0x42a901
mov eax, dword [edi]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
je 0x42aa9f
push eax
call ebx
test eax, eax
je 0x42aa9f
mov dword [edi], 0xffffffff
push 0x20
lea ecx, [esp + 0x48]
call fcn.00429af0
xor eax, eax
add esp, 4
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], eax
mov word [esp + 0x64], ax
lea esi, [esp + 0x60]
mov byte [esp + 0x328], 6
call fcn.00439600
test al, al
je 0x42ab43
push 0x20
mov ecx, esi
call fcn.00429af0
mov eax, dword [esp + 0x4c]
add esp, 4
cmp dword [esp + 0x5c], 8
jae 0x42aaf0
lea eax, [esp + 0x48]
mov edi, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x64]
call fcn.00402d90
test eax, eax
jne 0x42ab43
lea edx, [esp + 0x44]
push edx
lea edi, [esp + 0x2c]
call fcn.00429fe0
mov esi, 8
add esp, 4
cmp dword [eax + 0x18], esi
jb 0x42ab26
mov eax, dword [eax + 4]
jmp 0x42ab29
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [esp + 0x40], esi
jb 0x42ab43
mov eax, dword [esp + 0x2c]
push eax
call fcn.0059b877
add esp, 4
mov eax, dword [esp + 0x48]
mov edi, 8
cmp dword [esp + 0x5c], edi
jae 0x42ab56
lea eax, [esp + 0x48]
push 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x5c], edi
mov eax, dword [esp + 0x48]
jae 0x42ab6d
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x42ab88
add dword [esp + 0x14], 1
mov esi, 0
adc dword [esp + 0x18], esi
jmp 0x42ab8a
xor esi, esi
cmp dword [esp + 0x78], edi
jb 0x42ab9d
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0059b877
add esp, 4
mov edi, dword [esp + 0x20]
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], esi
mov word [esp + 0x64], si
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x42abc6
push eax
call ebx
test eax, eax
je 0x42abc6
mov dword [edi], 0xffffffff
push edi
call fcn.0059b877
mov edi, 8
add esp, 4
cmp dword [esp + 0xbc], edi
jb 0x42abed
mov edx, dword [esp + 0xa8]
push edx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x5c], edi
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], esi
mov word [esp + 0xa8], si
jb 0x42ac1a
mov eax, dword [esp + 0x48]
push eax
call fcn.0059b877
add esp, 4
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x320]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x308]
xor ecx, esp
call fcn.005b88a9
mov esp, ebp
pop ebp
ret