Function at 0x46ba10
Capabilities:
Delete file
Set file attributes

Disassembly:
mov eax, 0x4b6124
call fcn.00483228
sub esp, 0x14
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
jne 0x46ba37
push 3
pop eax
mov dword [esi + 0x18], eax
jmp 0x46bc73
lea edi, [esi + 0x28]
lea eax, [ebp - 0x18]
push edi
push eax
mov ecx, 0x4e8288
call fcn.0044e2fe
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0049d9c5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0049d8d8
lea eax, [esi + 0x2c]
push eax
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.004633b6
add esp, 0xc
test byte [esi + 0x6c], 0x64
mov dword [ebp - 4], 1
je 0x46ba96
push 0xffffffffffffffff
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0049d64d
call fcn.0045c864
pop ecx
pop ecx
push 0x80
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x46bc5f
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x46babd
xor edi, edi
jmp 0x46bb36
push 5
pop edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x46bacf
cmp eax, 0x20
jne 0x46bb36
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0049d64d
call fcn.00446e8e
cmp eax, ebx
pop ecx
je 0x46bb33
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0049d64d
call fcn.00448b10
push 2
lea eax, [ebp - 0x10]
pop edi
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0049d64d
lea eax, [ebp - 0x18]
push eax
call fcn.0044ce2a
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.0049897b
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0049d8d8
jmp 0x46bb36
push 4
pop edi
mov eax, dword [esi + 0x64]
cmp eax, ebx
je 0x46bc62
cmp edi, ebx
je 0x46bb4a
cmp edi, 4
jne 0x46bb72
push ecx
lea eax, [ebp - 0x10]
mov ebx, esp
mov dword [ebp + 8], esp
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.0049d64d
push ebx
call fcn.00447289
pop ecx
pop ecx
call fcn.004480c1
pop ecx
jmp 0x46bc62
cmp eax, ebx
je 0x46bc62
cmp edi, 2
jne 0x46bc62
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.0049d64d
lea eax, [ebp + 8]
push eax
call fcn.00447289
add esp, 4
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 3
call fcn.0049d64d
lea eax, [ebp - 0x14]
push eax
call fcn.00447404
pop ecx
pop ecx
mov byte [ebp - 4], 4
push ebx
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.0049d64d
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov byte [ebp - 4], 5
call fcn.0049d64d
mov byte [ebp - 4], 4
call fcn.0044c9c8
add esp, 0xc
cmp eax, ebx
je 0x46bbfa
mov eax, dword [ebp + 8]
cmp dword [eax - 8], ebx
jne 0x46bc45
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0049d64d
call fcn.00448b10
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0049d64d
lea eax, [ebp - 0x1c]
push eax
call fcn.00447289
pop ecx
pop ecx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call fcn.0049d9c5
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0049d8d8
jmp 0x46bbbf
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0049d8d8
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0049d8d8
jmp 0x46bc62
push 6
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [esi + 0x18], edi
call fcn.0049d8d8
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4