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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407650
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2c8
mov eax, dword [0x40b040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2a4], ecx
mov edx, dword [ecx + 0x10]
mov eax, 0x7ffffffe
sub eax, edx
cmp eax, 2
jb 0x403ba4
cmp dword [ecx + 0x14], 7
mov eax, ecx
jbe 0x4037a4
mov eax, dword [ecx]
push 2
push 0x4089b0
push edx
push eax
push ecx
push dword [ebp - 0x29c]
lea ecx, [ebp - 0x2d8]
call fcn.00405e10
cmp dword [ebp - 0x2c4], 7
lea ecx, [ebp - 0x298]
lea eax, [ebp - 0x2d8]
cmova eax, dword [ebp - 0x2d8]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov ecx, dword [ebp - 0x2c4]
mov esi, eax
mov dword [ebp - 0x29c], esi
cmp ecx, 7
jbe 0x40382b
mov edx, dword [ebp - 0x2d8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403821
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403821
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040638a
add esp, 8
xor eax, eax
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 7
mov word [ebp - 0x2d8], ax
cmp esi, 0xffffffff
jne 0x403860
xor al, al
jmp 0x403b86
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403880
sub eax, edx
lea ecx, [ebp - 0x2c]
sar eax, 1
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.00405660
mov dword [ebp - 4], 0
lea esi, [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
cmp eax, 7
mov edi, dword [ebp - 0x2c]
cmova esi, edi
cmp dword [ebp - 0x1c], 1
jne 0x4038e0
mov ecx, 0x4089b8
mov edx, 1
sub esi, ecx
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x4038dd
add ecx, 2
sub edx, 1
jne 0x4038c7
jmp 0x403b0b
mov eax, dword [ebp - 0x18]
cmp eax, 7
lea esi, [ebp - 0x2c]
cmova esi, edi
cmp dword [ebp - 0x1c], 2
jne 0x403916
mov ecx, 0x4089bc
mov edx, 2
sub esi, ecx
nop dword [eax + eax]
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x403916
add ecx, 2
sub edx, 1
jne 0x403900
jmp 0x403b0b
mov edx, dword [ebp - 0x2a4]
mov eax, 0x7ffffffe
mov ecx, dword [edx + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x403ba4
cmp dword [edx + 0x14], 7
mov eax, edx
jbe 0x403939
mov eax, dword [edx]
push 1
push 0x4089c4
push ecx
push eax
push ecx
push dword [ebp - 0x29c]
lea ecx, [ebp - 0x2bc]
call fcn.00405e10
mov byte [ebp - 4], 1
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 7
mov esi, dword [ebp - 0x2ac]
mov eax, dword [ebp - 0x2a8]
cmova edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x2a0], esi
cmp ecx, eax
ja 0x4039ca
cmp dword [ebp - 0x2a8], 7
lea eax, [esi + ecx]
mov dword [ebp - 0x2ac], eax
lea esi, [ebp - 0x2bc]
cmova esi, dword [ebp - 0x2bc]
mov eax, dword [ebp - 0x2a0]
lea ecx, [esi + eax*2]
mov eax, dword [ebp - 0x1c]
add eax, eax
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x1c]
add esp, 0xc
add eax, dword [ebp - 0x2a0]
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x2bc]
jmp 0x4039e8
push ecx
push edx
mov byte [ebp - 0x2c0], 0
push dword [ebp - 0x2c0]
push ecx
lea ecx, [ebp - 0x2bc]
call fcn.00405c70
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x34], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2a8]
cmp ecx, 7
jbe 0x403a65
mov edx, dword [ebp - 0x2bc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403a5b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40381b
push ecx
push edx
call fcn.0040638a
add esp, 8
xor eax, eax
mov dword [ebp - 0x2ac], 0
test byte [ebp - 0x298], 0x10
mov dword [ebp - 0x2a8], 7
mov word [ebp - 0x2bc], ax
je 0x403aa7
lea ecx, [ebp - 0x44]
call fcn.00403740
cmp dword [ebp - 0x30], 7
lea eax, [ebp - 0x44]
cmova eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x403ab9
cmp dword [ebp - 0x30], 7
lea eax, [ebp - 0x44]
cmova eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x403af7
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403aed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40381b
push ecx
push edx
call fcn.0040638a
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 7
jbe 0x403b49
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x403b3f
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40381b
push ecx
push edi
call fcn.0040638a
add esp, 8
mov esi, dword [ebp - 0x29c]
lea eax, [ebp - 0x298]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x403860
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov ecx, dword [ebp - 0x2a4]
cmp dword [ecx + 0x14], 7
jbe 0x403b7a
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00406237
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00401170
int3