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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5540
mov eax, dword fs:[0]
push eax
sub esp, 0xb4c
mov eax, dword [0x4cfb90]
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 0x4c58cc
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 0x476db2
cmp dword [ebp + 0xc], 3
jne 0x477018
lea ecx, [ebp - 0xb54]
call fcn.00493820
mov dword [ebp - 4], 0
mov ecx, 0x489e1d0
call fcn.00411390
push eax
lea ecx, [ebp - 0xb54]
call fcn.004938e0
push str.union_sce.txt
lea ecx, [ebp - 0xb54]
call fcn.004939c0
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, 0x489e1d0
call fcn.00411390
push eax
lea ecx, [ebp - 0xb54]
call fcn.004938e0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xb54]
call fcn.004939c0
push 0x4c58e8
lea ecx, [ebp - 0xb54]
call fcn.004939c0
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.004818c0
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 0x476ebf
mov byte [ebp - 0xb2d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb54]
call fcn.00493860
mov al, byte [ebp - 0xb2d]
jmp 0x47714e
cmp dword [ebp - 0xb44], 1
jne 0x476ff9
cmp dword [ebp - 0xb28], 0x10
je 0x476fda
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 0x476f0f
jmp 0x476f14
call fcn.0049ce8a
mov ecx, dword [ebp - 0xb3c]
mov byte [ebp + ecx - 0x114], 0
lea edx, [ebp - 0x114]
push edx
call fcn.004a0f16
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 0x476f81
jmp 0x476f86
call fcn.0049ce8a
mov edx, dword [ebp - 0xb40]
mov byte [ebp + edx - 0x114], 0
lea eax, [ebp - 0xafc]
push eax
mov ecx, 0x489e1d0
call fcn.00411390
push eax
push str._s_s
lea ecx, [ebp - 0x218]
push ecx
call fcn.00432540
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.00477170
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 0x476ebf
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.00493860
mov edx, dword [ebp - 0xb2c]
mov dword [edx + 0x3ea9e4], 0xffffffff
mov eax, dword [ebp - 0xb2c]
cmp dword [eax + 0x165fa8], 3
jl 0x477071
push 0x4c58f8
mov ecx, dword [ebp - 0xb2c]
add ecx, 0x3ead18
push ecx
mov ecx, dword [ebp - 0xb2c]
call fcn.00481420
push 0x4c5908
mov edx, dword [ebp - 0xb2c]
add edx, 0x3ead10
push edx
mov ecx, dword [ebp - 0xb2c]
call fcn.00481420
mov eax, dword [ebp - 0xb2c]
cmp dword [eax + 0x165fa8], 4
jl 0x47709d
push 0x4c5918
mov ecx, dword [ebp - 0xb2c]
add ecx, 0x3ead20
push ecx
mov ecx, dword [ebp - 0xb2c]
call fcn.00481420
mov ecx, dword [ebp - 0xb2c]
call fcn.004815a0
mov edx, dword [ebp - 0xb2c]
movzx eax, byte [edx + 0xc7444]
test eax, eax
je 0x47712f
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 0x4c5928
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 0x477139
xor al, al
jmp 0x47714e
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xb2c]
call fcn.004774a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049ca98
mov esp, ebp
pop ebp
ret 8