Function at 0x46b6d0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513c79
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x57d074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov eax, ecx
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x250], eax
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], 0
call fcn.0046b440
mov dword [ebp - 4], 1
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x234]
call fcn.0046d3b0
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 8
jb 0x46b74e
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x46b756
mov eax, dword [eax]
lea ecx, [ebp - 0x21c]
push ecx
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x238]
cmp eax, 8
jb 0x46b7d6
lea edx, [eax + 1]
mov eax, dword [ebp - 0x24c]
mov ecx, eax
cmp edx, 0x7fffffff
ja 0x46ba41
add edx, edx
cmp edx, 0x1000
jb 0x46b7cc
lea esi, [edx + 0x23]
cmp esi, edx
jbe 0x46ba41
mov edx, esi
test cl, 0x1f
jne 0x46ba41
mov eax, dword [eax - 4]
cmp eax, ecx
jae 0x46ba41
sub ecx, eax
cmp ecx, 4
jb 0x46ba41
cmp ecx, 0x23
ja 0x46ba41
push edx
push eax
call fcn.004dadb5
add esp, 8
xor eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
cmp byte [ebp + 8], al
je 0x46b805
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 0x18
xor eax, eax
mov edi, esp
mov dword [ebp - 0x268], esp
lea ebx, [edi + 0x10]
mov dword [ebx], 0
mov dword [ebp - 0x258], ebx
mov dword [edi + 0x14], 7
mov word [edi], ax
lea eax, [ebp - 0x21c]
push eax
call fcn.004e07a4
mov ecx, dword [edi + 0x14]
add esp, 4
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], ecx
cmp eax, ecx
ja 0x46b875
cmp ecx, 8
jb 0x46b854
mov edi, dword [edi]
lea esi, [eax + eax]
mov dword [ebx], eax
push esi
lea eax, [ebp - 0x21c]
push eax
push edi
call fcn.004dc330
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x46b98e
cmp eax, 0x7ffffffe
ja 0x46ba46
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x46b894
mov esi, 0x7ffffffe
jmp 0x46b8b2
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x46b8aa
mov esi, 0x7ffffffe
jmp 0x46b8b2
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
test eax, eax
jne 0x46b8bd
xor ebx, ebx
jmp 0x46b8fb
cmp eax, 0x7fffffff
ja 0x46ba4b
add eax, eax
cmp eax, 0x1000
jb 0x46b8f0
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x46ba50
push ecx
call fcn.004da6a7
add esp, 4
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x46b8fb
push eax
call fcn.004da6a7
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 0x258]
mov dword [edi + 0x14], esi
lea esi, [eax + eax]
mov dword [ecx], eax
lea eax, [ebp - 0x21c]
push esi
push eax
push ebx
call fcn.004dbdb0
xor eax, eax
add esp, 0xc
mov word [esi + ebx], ax
mov eax, dword [ebp - 0x250]
cmp eax, 8
jb 0x46b98c
lea ecx, [eax + 1]
mov eax, dword [edi]
cmp ecx, 0x7fffffff
ja 0x46ba41
add ecx, ecx
cmp ecx, 0x1000
jb 0x46b982
lea edx, [ecx + 0x23]
cmp edx, ecx
jbe 0x46ba41
mov ecx, edx
test al, 0x1f
jne 0x46ba41
mov edx, dword [eax - 4]
cmp edx, eax
jae 0x46ba41
sub eax, edx
cmp eax, 4
jb 0x46ba41
cmp eax, 0x23
ja 0x46ba41
mov eax, edx
push ecx
push eax
call fcn.004dadb5
add esp, 8
mov dword [edi], ebx
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x25c]
mov ecx, edi
call fcn.0046a490
mov dword [ebp - 0x260], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x46ba06
mov ecx, dword [ebp - 0x234]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x7fffffff
ja 0x46ba41
add edx, edx
cmp edx, 0x1000
jb 0x46b9fc
lea esi, [edx + 0x23]
cmp esi, edx
jbe 0x46ba41
mov edx, esi
test al, 0x1f
jne 0x46ba41
mov ecx, dword [ecx - 4]
cmp ecx, eax
jae 0x46ba41
sub eax, ecx
cmp eax, 4
jb 0x46ba41
cmp eax, 0x23
ja 0x46ba41
push edx
push ecx
call fcn.004dadb5
add esp, 8
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004da696
mov esp, ebp
pop ebp
ret
call fcn.004e0754
call fcn.0040537b
call fcn.0040547e
call fcn.0040547e
int3