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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6230
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 0x4c6b1c
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 0x477e32
cmp dword [ebp + 0xc], 3
jne 0x478098
lea ecx, [ebp - 0xb54]
call fcn.00494520
mov dword [ebp - 4], 0
mov ecx, 0x489f1d0
call fcn.00411390
push eax
lea ecx, [ebp - 0xb54]
call fcn.004945e0
push str.union_sce.txt
lea ecx, [ebp - 0xb54]
call fcn.00494630
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.004945e0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xb54]
call fcn.00494630
push 0x4c6b38
lea ecx, [ebp - 0xb54]
call fcn.00494630
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.00482660
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 0x477f3f
mov byte [ebp - 0xb2d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb54]
call fcn.00494560
mov al, byte [ebp - 0xb2d]
jmp 0x4781ce
cmp dword [ebp - 0xb44], 1
jne 0x478079
cmp dword [ebp - 0xb28], 0x10
je 0x47805a
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 0x477f8f
jmp 0x477f94
call fcn.0049dafa
mov ecx, dword [ebp - 0xb3c]
mov byte [ebp + ecx - 0x114], 0
lea edx, [ebp - 0x114]
push edx
call fcn.004a1bdb
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 0x478001
jmp 0x478006
call fcn.0049dafa
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.004328d0
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.004781f0
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 0x477f3f
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.00494560
mov edx, dword [ebp - 0xb2c]
mov dword [edx + 0x3ea9e4], 0xffffffff
mov eax, dword [ebp - 0xb2c]
cmp dword [eax + 0x165fa8], 3
jl 0x4780f1
push 0x4c6b48
mov ecx, dword [ebp - 0xb2c]
add ecx, 0x3ead18
push ecx
mov ecx, dword [ebp - 0xb2c]
call fcn.004821c0
push 0x4c6b58
mov edx, dword [ebp - 0xb2c]
add edx, 0x3ead10
push edx
mov ecx, dword [ebp - 0xb2c]
call fcn.004821c0
mov eax, dword [ebp - 0xb2c]
cmp dword [eax + 0x165fa8], 4
jl 0x47811d
push 0x4c6b68
mov ecx, dword [ebp - 0xb2c]
add ecx, 0x3ead20
push ecx
mov ecx, dword [ebp - 0xb2c]
call fcn.004821c0
mov ecx, dword [ebp - 0xb2c]
call fcn.00482340
mov edx, dword [ebp - 0xb2c]
movzx eax, byte [edx + 0xc7444]
test eax, eax
je 0x4781af
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 0x4c6b78
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 0x4781b9
xor al, al
jmp 0x4781ce
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xb2c]
call fcn.00478520
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049d708
mov esp, ebp
pop ebp
ret 8