Function at 0x46bff0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e21e8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004b5c24
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x46c034
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
call fcn.004b5c24
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x46c060
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
call fcn.004b5c24
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x46c08d
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
push str.usbscp.txt
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x1c]
push str._s_s
push ecx
mov byte [ebp - 4], 2
call fcn.004065c0
mov ebx, dword [ebp - 0x1c]
add esp, 0x10
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46c1fa
lea ecx, [ebp - 0x34]
call fcn.004c0de6
push 0
push 0x4010
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.004c0cc4
test eax, eax
je 0x46c1e4
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x34]
call fcn.004c11e4
test eax, eax
je 0x46c1dc
mov bl, 4
lea esp, [esp]
lea ecx, [ebp - 0x10]
call fcn.004078c0
mov ecx, eax
call fcn.004077a0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x46c1c5
cmp dword [eax], 0x79706f63
jne 0x46c1c5
cmp byte [eax + 4], 0x20
jne 0x46c1c5
mov eax, dword [eax - 0xc]
add eax, 0xfffffffb
push eax
push 5
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00449ce0
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00406510
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46c186
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x10]
call fcn.004077a0
mov ecx, dword [ebp - 0x10]
push ecx
push edi
lea edx, [ebp - 0x18]
push str._s_s
push edx
call fcn.004065c0
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
add esp, 0x10
cmp dword [eax - 0xc], 0
je 0x46c1c5
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46c1c5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x34]
call fcn.004c11e4
test eax, eax
jne 0x46c110
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.004c1085
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004c10c3
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46c21d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46c23d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46c260
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4