Function at 0x4339a0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x414]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
mov esi, edi
mov edx, 0x104
sub esi, eax
lea ecx, [ecx]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4339ee
movzx eax, word [esi + ecx]
test ax, ax
je 0x4339ee
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x4339d0
jmp 0x4339f2
test edx, edx
jne 0x4339f5
sub ecx, 2
xor eax, eax
mov edx, 0x104
mov word [ecx], ax
lea ecx, [ebp - 0x20c]
mov eax, ecx
sub edi, eax
lea esp, [esp]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x433a2e
movzx eax, word [edi + ecx]
test ax, ax
je 0x433a2e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x433a10
jmp 0x433a32
test edx, edx
jne 0x433a35
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433a43
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x416], 0x5c
jne 0x433a7a
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x433db0
xor eax, eax
mov word [ebp + ecx - 0x414], ax
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433a83
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x20e], 0x5c
jne 0x433aba
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x433db0
xor eax, eax
mov word [ebp + ecx - 0x20c], ax
push 0x468e88
push 0x104
lea eax, [ebp - 0x414]
push eax
call fcn.004025f0
push 0x472938
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.004025f0
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x433b34
test ebx, ebx
je 0x433b21
lea eax, [ebp - 0x414]
push eax
push str.first_file_hfind___s__is_invalid
push ebx
call fcn.00438440
add esp, 0xc
mov ecx, ebx
call fcn.00437480
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x414]
mov edx, 0x104
lea esi, [ebp - 0x20c]
mov eax, ecx
sub esi, eax
lea esp, [esp]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x433b6e
movzx eax, word [esi + ecx]
test ax, ax
je 0x433b6e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x433b50
jmp 0x433b72
test edx, edx
jne 0x433b75
sub ecx, 2
xor eax, eax
mov byte [ebp - 0x665], 1
mov word [ecx], ax
mov ecx, 0x473670
lea eax, [ebp - 0x638]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x433bb6
test dx, dx
je 0x433bb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x433bb6
add eax, 4
add ecx, 4
test dx, dx
jne 0x433b90
xor eax, eax
jmp 0x433bbb
sbb eax, eax
or eax, 1
test eax, eax
je 0x433d2c
mov ecx, 0x473674
lea eax, [ebp - 0x638]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x433bf6
test dx, dx
je 0x433bf2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x433bf6
add eax, 4
add ecx, 4
test dx, dx
jne 0x433bd0
xor eax, eax
jmp 0x433bfb
sbb eax, eax
or eax, 1
test eax, eax
je 0x433d2c
lea eax, [ebp - 0x638]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.004025f0
test byte [ebp - 0x664], 0x10
lea eax, [ebp - 0x20c]
je 0x433ca9
push ebx
push eax
call fcn.004339a0
add esp, 8
test al, al
jne 0x433c5f
test ebx, ebx
je 0x433c58
lea eax, [ebp - 0x20c]
push eax
push str.failed_deleting_directory__s
push ebx
call fcn.00438440
add esp, 0xc
mov ecx, ebx
call fcn.00437480
mov byte [ebp - 0x665], 0
lea ecx, [ebp - 0x20c]
mov edx, 0x104
lea esi, [ebp - 0x414]
mov eax, ecx
sub esi, eax
jmp 0x433c80
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x433d20
movzx eax, word [esi + ecx]
test ax, ax
je 0x433d20
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x433c80
jmp 0x433d24
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x433ced
test ebx, ebx
je 0x433ce6
lea eax, [ebp - 0x20c]
push eax
push str.failed_deleting_file__s
push ebx
call fcn.00438440
add esp, 0xc
mov ecx, ebx
call fcn.00437480
mov byte [ebp - 0x665], 0
lea ecx, [ebp - 0x20c]
mov edx, 0x104
lea esi, [ebp - 0x414]
mov eax, ecx
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x433d20
movzx eax, word [esi + ecx]
test ax, ax
je 0x433d20
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x433d02
jmp 0x433d24
test edx, edx
jne 0x433d27
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x664]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x433b81
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, byte [ebp - 0x665]
xor ecx, ecx
cmp eax, 0x12
push edi
cmovne ebx, ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x433d83
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edx, 1
movzx ecx, bl
cmp eax, edx
pop edi
cmove ecx, edx
mov al, cl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00438f17
mov esp, ebp
pop ebp
ret
call fcn.004399a9
int3