Function at 0x407920
Capabilities:
Delete file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47bcb8
push 0x44e7f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x254
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x264], ebx
mov ecx, 0x4f
xor eax, eax
lea edi, [ebp - 0x260]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x124], bl
mov ecx, 0x40
lea edi, [ebp - 0x123]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x124]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x407986
lea edi, [ebp - 0x124]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x407997
mov ax, word [0x47a898]
mov word [edi], ax
lea edi, [ebp - 0x124]
dec edi
nop
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4079b0
mov ecx, dword [str..txt]
mov dword [edi], ecx
mov dx, word [0x47bcb0]
mov word [edi + 4], dx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x407b0e
jmp 0x4079f0
lea edx, [ebp - 0x264]
push edx
call fcn.00408260
test eax, eax
jne 0x407af5
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x124]
lea ecx, [ecx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x407a10
lea edi, [ebp - 0x124]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x407a21
mov ax, word [0x47a898]
mov word [edi], ax
lea eax, [ebp - 0x238]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407a40
sub eax, edx
lea edi, [ebp - 0x124]
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x407a50
mov ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x20], eax
test al, 1
je 0x407a90
and eax, 0xfffffffe
mov dword [ebp - 0x20], eax
push eax
lea edx, [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [ebp - 0x264], 0x10
jne 0x407af5
mov eax, dword [ebp - 0x25c]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
sub esp, 0x10
mov edx, esp
mov eax, dword [ebp + 0x1c]
mov dword [edx], eax
mov ecx, dword [ebp + 0x20]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 0x24]
mov dword [edx + 8], eax
mov ecx, dword [ebp + 0x28]
mov dword [edx + 0xc], ecx
sub esp, 0x10
mov edx, esp
mov eax, dword [ebp + 0xc]
mov dword [edx], eax
mov ecx, dword [ebp + 0x10]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 0x14]
mov dword [edx + 8], eax
mov ecx, dword [ebp + 0x18]
mov dword [edx + 0xc], ecx
call fcn.004081f0
test eax, eax
je 0x407af5
lea edx, [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x264]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4079f0
mov dword [ebp - 4], 0xffffffff
call fcn.00407b2f
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24