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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b37e0
mov eax, dword fs:[0]
push eax
sub esp, 0xb4c
mov eax, dword [0x4ceb90]
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 0x4c49f4
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 0x4757a2
cmp dword [ebp + 0xc], 3
jne 0x475a08
lea ecx, [ebp - 0xb54]
call fcn.00491b40
mov dword [ebp - 4], 0
mov ecx, 0x47c64f8
call fcn.004113b0
push eax
lea ecx, [ebp - 0xb54]
call fcn.00491c00
push str.union_sce.txt
lea ecx, [ebp - 0xb54]
call fcn.00491c50
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, 0x47c64f8
call fcn.004113b0
push eax
lea ecx, [ebp - 0xb54]
call fcn.00491c00
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xb54]
call fcn.00491c50
push 0x4c4a10
lea ecx, [ebp - 0xb54]
call fcn.00491c50
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.0047faf0
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 0x4758af
mov byte [ebp - 0xb2d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb54]
call fcn.00491b80
mov al, byte [ebp - 0xb2d]
jmp 0x475b3e
cmp dword [ebp - 0xb44], 1
jne 0x4759e9
cmp dword [ebp - 0xb28], 0x10
je 0x4759ca
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 0x4758ff
jmp 0x475904
call fcn.0049b12a
mov ecx, dword [ebp - 0xb3c]
mov byte [ebp + ecx - 0x114], 0
lea edx, [ebp - 0x114]
push edx
call fcn.0049f1b6
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 0x475971
jmp 0x475976
call fcn.0049b12a
mov edx, dword [ebp - 0xb40]
mov byte [ebp + edx - 0x114], 0
lea eax, [ebp - 0xafc]
push eax
mov ecx, 0x47c64f8
call fcn.004113b0
push eax
push str._s_s
lea ecx, [ebp - 0x218]
push ecx
call fcn.00431d60
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.00475b60
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 0x4758af
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.00491b80
mov edx, dword [ebp - 0xb2c]
mov dword [edx + 0x3ea9e4], 0xffffffff
mov eax, dword [ebp - 0xb2c]
cmp dword [eax + 0x165fa8], 3
jl 0x475a61
push 0x4c4a20
mov ecx, dword [ebp - 0xb2c]
add ecx, 0x3ead18
push ecx
mov ecx, dword [ebp - 0xb2c]
call fcn.0047f650
push 0x4c4a30
mov edx, dword [ebp - 0xb2c]
add edx, 0x3ead10
push edx
mov ecx, dword [ebp - 0xb2c]
call fcn.0047f650
mov eax, dword [ebp - 0xb2c]
cmp dword [eax + 0x165fa8], 4
jl 0x475a8d
push 0x4c4a40
mov ecx, dword [ebp - 0xb2c]
add ecx, 0x3ead20
push ecx
mov ecx, dword [ebp - 0xb2c]
call fcn.0047f650
mov ecx, dword [ebp - 0xb2c]
call fcn.0047f7d0
mov edx, dword [ebp - 0xb2c]
movzx eax, byte [edx + 0xc7444]
test eax, eax
je 0x475b1f
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 0x4c4a50
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 0x475b29
xor al, al
jmp 0x475b3e
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xb2c]
call fcn.00475e90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049ad38
mov esp, ebp
pop ebp
ret 8