Function at 0x40b340
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x4d9770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x414]
push edi
mov dword [ebp - 0x668], ebx
mov ecx, ebx
sub edx, ebx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40b370
lea ecx, [ebp - 0x414]
add ecx, 0xfffffffe
nop dword [eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x40b390
mov eax, dword [0x47a514]
lea edx, [ebp - 0x20c]
mov dword [ecx], eax
sub edx, ebx
mov ax, word [0x47a518]
mov word [ecx + 4], ax
mov ecx, ebx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40b3c0
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x40b3e0
mov eax, dword [0x479574]
mov dword [edi], eax
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40b420
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044d06d
mov esp, ebp
pop ebp
ret
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x20c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x416], ax
test ax, ax
jne 0x40b422
push esi
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x664]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40b58d
mov ecx, 0x47a508
lea eax, [ebp - 0x638]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b488
test dx, dx
je 0x40b484
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b488
add eax, 4
add ecx, 4
test dx, dx
jne 0x40b462
xor eax, eax
jmp 0x40b48d
sbb eax, eax
or eax, 1
test eax, eax
je 0x40b441
mov ecx, 0x47a50c
lea eax, [ebp - 0x638]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b4c6
test dx, dx
je 0x40b4c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b4c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40b4a0
xor eax, eax
jmp 0x40b4cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x40b441
lea edx, [ebp - 0x638]
mov esi, edx
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40b4e0
lea edi, [ebp - 0x20c]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40b4f6
mov ecx, edx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test byte [ebp - 0x664], 0x10
rep movsb byte es:[edi], byte [esi]
push eax
je 0x40b55e
call fcn.0040b340
add esp, 4
test eax, eax
je 0x40b5b8
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call esi
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x414]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x40b541
jmp 0x40b441
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40b5b8
xor eax, eax
nop word [eax + eax]
movzx ecx, word [ebp + eax - 0x414]
lea eax, [eax + 2]
mov word [ebp + eax - 0x20e], cx
test cx, cx
jne 0x40b570
jmp 0x40b43b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x40b5b8
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x668]
call esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044d06d
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0044d06d
mov esp, ebp
pop ebp
ret