Function at 0x46ae36
Capabilities:
Delete file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52182e
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
je 0x46b054
cmp dword [ebp + 0xc], esi
je 0x46b054
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov dword [esp + 0x2c], esi
lea edi, [esp + 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0xfc]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x46aef7
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
movzx eax, word [esp + 0x1c]
mov dword [esp + 0x40], eax
movzx eax, word [esp + 0x1e]
dec eax
mov dword [esp + 0x3c], eax
movzx eax, word [esp + 0x22]
mov dword [esp + 0x38], eax
movzx eax, word [esp + 0x24]
mov dword [esp + 0x34], eax
movzx eax, word [esp + 0x26]
mov dword [esp + 0x30], eax
movzx eax, word [esp + 0x28]
mov dword [esp + 0x2c], eax
push 0x103
lea eax, [esp + 0x125]
push esi
push eax
mov byte [esp + 0x12c], 0
call fcn.004ee670
add esp, 0xc
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x46af77
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [esp + 0x7c]
call fcn.00431bce
mov dword [esp + 0x234], 1
mov eax, dword [eax]
lea ecx, [esp + 0x120]
push ecx
mov edx, eax
mov ecx, 0x104
call fcn.0045416b
or dword [esp + 0x234], 0xffffffff
lea eax, [esp + 0x7c]
cmp dword [esp + 0x78], eax
je 0x46af77
push dword [esp + 0x78]
call fcn.004ea208
pop ecx
push dword [ebp + 8]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x18], esi
call fcn.00431bce
mov dword [esp + 0x234], 2
push dword [eax]
call fcn.0046c42c
or dword [esp + 0x238], 0xffffffff
mov ebx, eax
lea eax, [esp + 0x80]
pop ecx
cmp dword [esp + 0x78], eax
je 0x46afbb
push dword [esp + 0x78]
call fcn.004ea208
pop ecx
cmp ebx, esi
je 0x46b045
push 8
pop ecx
xor eax, eax
push 6
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
pop ecx
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x124]
push eax
lea esi, [esp + 0x34]
lea edi, [esp + 0x5c]
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
call fcn.0046c4de
pop ecx
pop ecx
test eax, eax
jne 0x46b037
push dword [ebp + 0xc]
lea esi, [esp + 0x1c]
lea edi, [esp + 0x14]
call fcn.0046aa9c
cmp dword [esp + 0x14], 0
pop ecx
je 0x46b032
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, ebx
call fcn.0046c8dd
test eax, eax
jne 0x46b028
mov dword [esp + 0x14], 1
push dword [esp + 0x10]
call fcn.004e93ab
pop ecx
call fcn.0046c9b8
mov eax, ebx
call fcn.0046cb8b
cmp dword [esp + 0x14], 0
jne 0x46b04e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x14]
jmp 0x46b056
xor eax, eax
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret