Function at 0x46d076
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 2], bl
mov edi, edx
call fcn.0040a961
lea ecx, [ebp - 0x54]
call fcn.0040a961
lea ecx, [ebp - 0x24]
call fcn.0040a961
lea edx, [ebp - 0x34]
mov ecx, esi
call fcn.00403aa2
lea edx, [ebp - 0x54]
mov ecx, edi
call fcn.00403aa2
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x34]
call fcn.0046e12c
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 3], al
call fcn.0046e199
mov esi, 0x4c68d8
test al, al
je 0x46d0df
push esi
lea ecx, [ebp - 0x34]
call fcn.004033c6
mov ecx, dword [ebp - 0x54]
call fcn.0046e199
test al, al
je 0x46d0f4
push esi
lea ecx, [ebp - 0x54]
call fcn.004033c6
lea ecx, [ebp - 0x44]
call fcn.0040a961
lea ecx, [ebp - 0x64]
call fcn.0040a961
push ebx
lea eax, [ebp - 0x64]
push ebx
push eax
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x34]
call fcn.0040525f
add esp, 0xc
lea eax, [ebp - 0x2c8]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
mov al, 1
mov byte [ebp - 1], al
cmp esi, 0xffffffff
je 0x46d263
mov edi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp al, 1
jne 0x46d263
test byte [ebp - 0x2c8], 0x10
jne 0x46d22f
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x74]
call fcn.00409cb3
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x74]
call fcn.0046d7bc
pop ecx
lea ecx, [ebp - 0x74]
call fcn.0040988f
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
inc dword [eax]
lea eax, [ebp - 0x64]
push eax
call fcn.00406350
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x14]
call fcn.004033c6
lea ecx, [ebp - 0x24]
call fcn.0046d4ce
test al, al
je 0x46d1df
cmp byte [ebp + 8], bl
je 0x46d252
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0041ce60
push dword [ebp - 0x24]
test eax, eax
je 0x46d1ed
call edi
cmp byte [ebp + 0xc], 1
jne 0x46d211
cmp byte [ebp - 3], bl
jne 0x46d1f8
push dword [ebp - 0x24]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
jmp 0x46d21f
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.0046d29c
movzx eax, al
test eax, eax
je 0x46d252
push dword [ebp - 0x14]
call edi
jmp 0x46d21f
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.0046d29c
movzx eax, al
test eax, eax
je 0x46d252
lea ecx, [ebp - 0x14]
call fcn.0040988f
mov byte [ebp - 2], 1
lea eax, [ebp - 0x2c8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
mov al, byte [ebp - 1]
jne 0x46d13e
mov al, bl
mov byte [ebp - 1], al
jmp 0x46d13e
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [ebp - 0x14]
call fcn.0040988f
jmp 0x46d26d
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov bl, byte [ebp - 2]
lea ecx, [ebp - 0x64]
call fcn.0040988f
lea ecx, [ebp - 0x44]
call fcn.0040988f
lea ecx, [ebp - 0x24]
call fcn.0040988f
lea ecx, [ebp - 0x54]
call fcn.0040988f
lea ecx, [ebp - 0x34]
call fcn.0040988f
pop edi
pop esi
mov al, bl
pop ebx
leave
ret