Function at 0x476970
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574853
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x5ebea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x294], edi
mov edx, edi
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4769c1
sub edx, ecx
lea ecx, [ebp - 0x28]
sar edx, 1
push edx
push edi
call fcn.0044a910
push 1
push 0x5d8ea4
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00451c60
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4769f5
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00451c60
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x476a48
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.____FindFirstFile_fails_in_directory__s._Code__lu.
call fcn.00463ab0
add esp, 0xc
jmp 0x476b94
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
nop
push 0x5d84f0
lea eax, [ebp - 0x264]
push eax
call esi
test eax, eax
je 0x476b77
push 0x5ddd0c
lea eax, [ebp - 0x264]
push eax
call esi
test eax, eax
je 0x476b77
mov eax, dword [ebp - 0x290]
test eax, 0x400
jne 0x476b77
test al, 0x10
jne 0x476b77
sub esp, 0x18
xor eax, eax
mov edx, esp
mov dword [ebp - 0x298], esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
lea eax, [ebp - 0x264]
lea edi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x476ac0
sub eax, edi
mov ecx, edx
sar eax, 1
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0044a910
mov ecx, dword [ebp - 0x294]
sub esp, 0x18
mov edx, esp
mov byte [ebp - 4], 1
xor eax, eax
lea edi, [ecx + 2]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476b03
sub ecx, edi
sar ecx, 1
push ecx
push dword [ebp - 0x294]
mov ecx, edx
call fcn.0044a910
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.004728a0
add esp, 0x30
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x476b77
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x476b6d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476be6
push edx
push ecx
call fcn.0052f5d6
add esp, 8
lea eax, [ebp - 0x290]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x476a50
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x476bca
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x476bc0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476be6
push edx
push ecx
call fcn.0052f5d6
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f395
mov esp, ebp
pop ebp
ret
call fcn.0054b071
int3