Function at 0x405bc0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44d317
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x4651b0]
xor eax, esp
mov dword [esp + 0x2f8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4651b0]
xor eax, esp
push eax
lea eax, [esp + 0x314]
mov dword fs:[0], eax
mov eax, dword [esp + 0x324]
mov dword [esp + 0x1c], ecx
xor edi, edi
xor ecx, ecx
mov word [esp + 0x84], cx
mov ecx, eax
mov ebp, 1
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], edi
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x405c30
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x84]
call fcn.00401760
mov ebx, vtable.TString.0
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x31c], edi
mov eax, dword [esp + 0x94]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x405c6f
call fcn.00438e02
cmp dword [esp + 0x98], 8
mov eax, dword [esp + 0x84]
jae 0x405c87
lea eax, [esp + 0x84]
cmp word [eax + esi*2], 0x5c
je 0x405ca3
push 0x5c
mov eax, 1
lea edi, [esp + 0x84]
call fcn.004060b0
xor edi, edi
push 0xffffffffffffffff
xor edx, edx
push edi
lea eax, [esp + 0x88]
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], edi
mov word [esp + 0x6c], dx
call fcn.00401670
mov dword [esp + 0x5c], ebx
push 3
push 0x45a534
lea eax, [esp + 0x68]
mov byte [esp + 0x324], 1
call fcn.00404520
push 0x24c
lea eax, [esp + 0xc4]
push edi
push eax
mov dword [esp + 0xc8], edi
call fcn.0043ad60
mov eax, dword [esp + 0x70]
mov esi, 8
add esp, 0xc
cmp dword [esp + 0x78], esi
jae 0x405d18
lea eax, [esp + 0x64]
lea ecx, [esp + 0xbc]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x405df3
mov eax, dword [esp + 0x84]
cmp dword [esp + 0x98], esi
jae 0x405d4b
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
mov dword [esp + 0x5c], ebx
test eax, eax
jne 0x405da4
cmp dword [esp + 0x78], esi
jb 0x405d6d
mov edx, dword [esp + 0x64]
push edx
call fcn.00438e12
add esp, 4
xor eax, eax
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], edi
mov word [esp + 0x64], ax
mov dword [esp + 0x7c], ebx
cmp dword [esp + 0x98], esi
jb 0x405d9d
mov ecx, dword [esp + 0x84]
push ecx
call fcn.00438e12
add esp, 4
xor eax, eax
jmp 0x406084
cmp dword [esp + 0x78], esi
jb 0x405db7
mov edx, dword [esp + 0x64]
push edx
call fcn.00438e12
add esp, 4
xor eax, eax
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], edi
mov word [esp + 0x64], ax
mov dword [esp + 0x7c], ebx
cmp dword [esp + 0x98], esi
jb 0x405de7
mov ecx, dword [esp + 0x84]
push ecx
call fcn.00438e12
add esp, 4
mov eax, 1
jmp 0x406084
xor edi, edi
xor edx, edx
lea eax, [esp + 0xe8]
mov word [esp + 0xa4], dx
mov dword [esp + 0xb8], 7
mov dword [esp + 0xb4], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405e20
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xec]
lea esi, [esp + 0xa4]
call fcn.00401760
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x31c], 2
mov eax, dword [esp + 0xb4]
push 0x45a53c
mov edi, 1
mov ecx, esi
call fcn.00406160
test eax, eax
je 0x405fbb
mov eax, dword [esp + 0xb4]
push 0x45a540
mov edi, 2
mov ecx, esi
call fcn.00406160
test eax, eax
je 0x405fbb
mov eax, esi
push eax
lea ecx, [esp + 0x84]
push ecx
lea edi, [esp + 0x48]
call fcn.00404ce0
add esp, 8
mov byte [esp + 0x31c], 3
xor esi, esi
push 0xffffffffffffffff
xor edx, edx
mov ebp, 7
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], esi
mov word [esp + 0x30], dx
call fcn.00401670
mov dword [esp + 0x20], ebx
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x2c]
lea ecx, [esp + 0xa8]
mov byte [esp + 0x324], 4
call fcn.00401670
mov edi, 8
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x3c], edi
jb 0x405f0e
mov eax, dword [esp + 0x28]
push eax
call fcn.00438e12
add esp, 4
xor ecx, ecx
mov byte [esp + 0x31c], 2
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], esi
mov word [esp + 0x28], cx
cmp dword [esp + 0x58], edi
jb 0x405f38
mov edx, dword [esp + 0x44]
push edx
call fcn.00438e12
add esp, 4
mov eax, dword [esp + 0xa4]
cmp dword [esp + 0xb8], edi
jae 0x405f4f
lea eax, [esp + 0xa4]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
push eax
call ebp
test al, 0x10
je 0x405f81
mov eax, dword [esp + 0xa4]
cmp dword [esp + 0xb8], edi
jae 0x405f73
lea eax, [esp + 0xa4]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.00405bc0
mov ebp, eax
jmp 0x405fc0
mov esi, dword [esp + 0xa4]
cmp dword [esp + 0xb8], edi
jae 0x405f98
lea esi, [esp + 0xa4]
push esi
call ebp
test al, 1
je 0x405faa
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
jmp 0x405fc0
mov edi, 8
mov byte [esp + 0x31c], 1
mov dword [esp + 0x9c], ebx
cmp dword [esp + 0xb8], edi
jb 0x405fe8
mov eax, dword [esp + 0xa4]
push eax
call fcn.00438e12
add esp, 4
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xbc]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x405df1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 0x84]
mov esi, 8
cmp dword [esp + 0x98], esi
jae 0x40602a
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x406037
xor ebp, ebp
mov dword [esp + 0x5c], ebx
cmp dword [esp + 0x78], esi
jb 0x40604e
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00438e12
add esp, 4
xor edx, edx
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], dx
mov dword [esp + 0x7c], ebx
cmp dword [esp + 0x98], esi
jb 0x406082
mov eax, dword [esp + 0x84]
push eax
call fcn.00438e12
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x314]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2f8]
xor ecx, esp
call fcn.00438b17
add esp, 0x30c
ret 4