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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5fa0
mov eax, dword fs:[0]
push eax
sub esp, 0xb4c
mov eax, dword [0x4d0b90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb2c], ecx
push 0x4c6acc
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xb2c]
add ecx, 0x165fac
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp - 0xb2c]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x3ea9e0], eax
cmp dword [ebp + 0xc], 2
je 0x477bf2
cmp dword [ebp + 0xc], 3
jne 0x477e58
lea ecx, [ebp - 0xb54]
call fcn.004942b0
mov dword [ebp - 4], 0
mov ecx, 0x489f1d0
call fcn.00411390
push eax
lea ecx, [ebp - 0xb54]
call fcn.00494370
push str.union_sce.txt
lea ecx, [ebp - 0xb54]
call fcn.004943c0
push 0
lea ecx, [ebp - 0xb54]
call fcn.00411210
push eax
mov ecx, dword [ebp - 0xb2c]
add ecx, 0x50
mov edx, dword [ebp - 0xb2c]
mov eax, dword [edx + 0x50]
mov edx, dword [eax + 0x44]
call edx
mov ecx, 0x489f1d0
call fcn.00411390
push eax
lea ecx, [ebp - 0xb54]
call fcn.00494370
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xb54]
call fcn.004943c0
push 0x4c6ae8
lea ecx, [ebp - 0xb54]
call fcn.004943c0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0xb58], eax
mov dword [ebp - 0xb34], 0
mov ecx, dword [ebp - 0xb2c]
call fcn.00482410
mov dword [ebp - 0xb44], 1
lea edx, [ebp - 0xb28]
push edx
lea ecx, [ebp - 0xb54]
call fcn.00411210
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0xb38], eax
cmp dword [ebp - 0xb38], 0xffffffff
jne 0x477cff
mov byte [ebp - 0xb2d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb54]
call fcn.004942f0
mov al, byte [ebp - 0xb2d]
jmp 0x477f8e
cmp dword [ebp - 0xb44], 1
jne 0x477e39
cmp dword [ebp - 0xb28], 0x10
je 0x477e1a
mov eax, dword [ebp - 0xb58]
lea ecx, [ebp + eax - 0xafc]
push ecx
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
shl eax, 1
mov dword [ebp - 0xb3c], eax
cmp dword [ebp - 0xb3c], 0x104
jae 0x477d4f
jmp 0x477d54
call fcn.0049d88a
mov ecx, dword [ebp - 0xb3c]
mov byte [ebp + ecx - 0x114], 0
lea edx, [ebp - 0x114]
push edx
call fcn.004a194b
add esp, 4
mov dword [ebp - 0xb34], eax
mov eax, dword [ebp - 0xb2c]
mov ecx, dword [ebp - 0xb34]
mov dword [eax + 0x3ea9e4], ecx
lea edx, [ebp - 0xafc]
push edx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0xafc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, 4
mov dword [ebp - 0xb40], eax
cmp dword [ebp - 0xb40], 0x104
jae 0x477dc1
jmp 0x477dc6
call fcn.0049d88a
mov edx, dword [ebp - 0xb40]
mov byte [ebp + edx - 0x114], 0
lea eax, [ebp - 0xafc]
push eax
mov ecx, 0x489f1d0
call fcn.00411390
push eax
push str._s_s
lea ecx, [ebp - 0x218]
push ecx
call fcn.004329e0
add esp, 0x10
mov edx, dword [ebp - 0xb34]
push edx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0xb2c]
call fcn.00477fb0
lea edx, [ebp - 0xb28]
push edx
mov eax, dword [ebp - 0xb38]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0xb44], eax
jmp 0x477cff
mov ecx, dword [ebp - 0xb38]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb54]
call fcn.004942f0
mov edx, dword [ebp - 0xb2c]
mov dword [edx + 0x3ea9e4], 0xffffffff
mov eax, dword [ebp - 0xb2c]
cmp dword [eax + 0x165fa8], 3
jl 0x477eb1
push 0x4c6af8
mov ecx, dword [ebp - 0xb2c]
add ecx, 0x3ead18
push ecx
mov ecx, dword [ebp - 0xb2c]
call fcn.00481f70
push 0x4c6b08
mov edx, dword [ebp - 0xb2c]
add edx, 0x3ead10
push edx
mov ecx, dword [ebp - 0xb2c]
call fcn.00481f70
mov eax, dword [ebp - 0xb2c]
cmp dword [eax + 0x165fa8], 4
jl 0x477edd
push 0x4c6b18
mov ecx, dword [ebp - 0xb2c]
add ecx, 0x3ead20
push ecx
mov ecx, dword [ebp - 0xb2c]
call fcn.00481f70
mov ecx, dword [ebp - 0xb2c]
call fcn.004820f0
mov edx, dword [ebp - 0xb2c]
movzx eax, byte [edx + 0xc7444]
test eax, eax
je 0x477f6f
push 1
mov ecx, dword [ebp - 0xb2c]
add ecx, 0xc7428
mov edx, dword [ebp - 0xb2c]
mov eax, dword [edx + 0xc7428]
mov edx, dword [eax + 0x44]
call edx
push 0x4c6b28
lea eax, [ebp - 0x9e8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
lea ecx, [ebp - 0x9e8]
push ecx
mov ecx, dword [ebp - 0xb2c]
add ecx, 0xc7428
mov edx, dword [ebp - 0xb2c]
mov eax, dword [edx + 0xc7428]
mov edx, dword [eax + 0x40]
call edx
push 1
mov ecx, dword [ebp - 0xb2c]
add ecx, 0xc7428
mov eax, dword [ebp - 0xb2c]
mov edx, dword [eax + 0xc7428]
mov eax, dword [edx + 0x44]
call eax
cmp dword [ebp + 0xc], 2
jne 0x477f79
xor al, al
jmp 0x477f8e
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xb2c]
call fcn.004782e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049d498
mov esp, ebp
pop ebp
ret 8