Function at 0x462465
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 - 1], bl
mov edi, edx
call fcn.004073d7
lea ecx, [ebp - 0x44]
call fcn.004073d7
lea ecx, [ebp - 0x14]
call fcn.004073d7
lea ecx, [ebp - 0x24]
call fcn.004073d7
lea edx, [ebp - 0x34]
mov ecx, esi
call fcn.00404894
lea edx, [ebp - 0x44]
mov ecx, edi
call fcn.00404894
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x34]
call fcn.004636f1
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 3], al
call fcn.0046375b
mov esi, str..
test al, al
je 0x4624d6
push esi
lea ecx, [ebp - 0x34]
call fcn.00407a1b
mov ecx, dword [ebp - 0x44]
call fcn.0046375b
test al, al
je 0x4624eb
push esi
lea ecx, [ebp - 0x44]
call fcn.00407a1b
lea ecx, [ebp - 0x54]
call fcn.004073d7
lea ecx, [ebp - 0x64]
call fcn.004073d7
push ebx
lea eax, [ebp - 0x64]
push ebx
push eax
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x34]
call fcn.004046df
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 - 2], al
cmp esi, 0xffffffff
je 0x462679
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp al, 1
jne 0x462679
test byte [ebp - 0x2c8], 0x10
jne 0x46264d
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x74]
call fcn.00407b51
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x74]
call fcn.00462d35
pop ecx
lea ecx, [ebp - 0x74]
call fcn.00405832
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x24]
call fcn.00407d2b
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040789e
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x24]
call fcn.00407a1b
lea ecx, [ebp - 0x14]
call fcn.004628fe
test al, al
je 0x4625c3
cmp byte [ebp + 8], bl
je 0x462670
push ebx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
call fcn.00407678
push dword [ebp - 0x14]
test eax, eax
je 0x4625d1
call edi
cmp byte [ebp + 0xc], 1
jne 0x462616
cmp byte [ebp - 3], bl
jne 0x4625dc
push dword [ebp - 0x14]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x462645
mov eax, dword [ebp - 0x14]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 8]
mov dword [ecx + 0xc], eax
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 8]
inc dword [eax]
call fcn.004626bc
movzx eax, al
add esp, 0x10
test eax, eax
je 0x462670
push dword [ebp - 0x24]
call edi
jmp 0x462645
mov eax, dword [ebp - 0x14]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 8]
mov dword [ecx + 0xc], eax
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 8]
inc dword [eax]
call fcn.004626bc
add esp, 0x10
movzx eax, al
test eax, eax
je 0x462670
mov byte [ebp - 1], 1
lea eax, [ebp - 0x2c8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov al, byte [ebp - 2]
jne 0x462535
mov al, bl
mov byte [ebp - 2], al
jmp 0x462535
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x462683
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, byte [ebp - 1]
lea ecx, [ebp - 0x64]
call fcn.00405832
lea ecx, [ebp - 0x54]
call fcn.00405832
lea ecx, [ebp - 0x24]
call fcn.00405832
lea ecx, [ebp - 0x14]
call fcn.00405832
lea ecx, [ebp - 0x44]
call fcn.00405832
lea ecx, [ebp - 0x34]
call fcn.00405832
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret