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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508459
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x570074]
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.00467560
mov dword [ebp - 4], 1
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00469200
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 8
jb 0x46784e
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x467856
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 0x4678c4
mov ecx, dword [ebp - 0x24c]
inc eax
cmp eax, 0x7fffffff
ja 0x467963
add eax, eax
cmp eax, 0x1000
jb 0x4678bb
test cl, 0x1f
jne 0x467963
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x467963
sub ecx, eax
cmp ecx, 4
jb 0x467963
cmp ecx, 0x23
ja 0x467963
mov ecx, eax
push ecx
call fcn.004d0212
add esp, 4
xor eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
cmp byte [ebp + 8], al
je 0x4678f3
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.004d5c34
mov ecx, dword [edi + 0x14]
add esp, 4
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], ecx
cmp eax, ecx
ja 0x467968
cmp ecx, 8
jb 0x467942
mov edi, dword [edi]
lea esi, [eax + eax]
mov dword [ebx], eax
push esi
lea eax, [ebp - 0x21c]
push eax
push edi
call fcn.004d1e90
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x467a73
call fcn.004d5be4
cmp eax, 0x7ffffffe
jbe 0x467974
call fcn.00404df7
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x467988
mov esi, 0x7ffffffe
jmp 0x4679a6
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x46799e
mov esi, 0x7ffffffe
jmp 0x4679a6
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
test eax, eax
jne 0x4679b1
xor ebx, ebx
jmp 0x4679f1
cmp eax, 0x7fffffff
jbe 0x4679bd
call fcn.004d0f9b
add eax, eax
cmp eax, 0x1000
jb 0x4679e6
lea ecx, [eax + 0x23]
cmp ecx, eax
ja 0x4679d2
call fcn.004d0f9b
push ecx
call fcn.004d0228
add esp, 4
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x4679f1
push eax
call fcn.004d0228
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.004d1910
xor eax, eax
add esp, 0xc
mov word [esi + ebx], ax
mov eax, dword [ebp - 0x250]
cmp eax, 8
jb 0x467a71
mov ecx, dword [edi]
inc eax
cmp eax, 0x7fffffff
ja 0x467963
add eax, eax
cmp eax, 0x1000
jb 0x467a68
test cl, 0x1f
jne 0x467963
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x467963
sub ecx, eax
cmp ecx, 4
jb 0x467963
cmp ecx, 0x23
ja 0x467963
mov ecx, eax
push ecx
call fcn.004d0212
add esp, 4
mov dword [edi], ebx
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x25c]
mov ecx, esi
call fcn.004661c0
mov dword [ebp - 0x260], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x467af2
mov ecx, dword [ebp - 0x234]
inc eax
cmp eax, 0x7fffffff
ja 0x467963
add eax, eax
cmp eax, 0x1000
jb 0x467ae9
test cl, 0x1f
jne 0x467963
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x467963
sub ecx, eax
cmp ecx, 4
jb 0x467963
cmp ecx, 0x23
ja 0x467963
mov ecx, eax
push ecx
call fcn.004d0212
add esp, 4
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov eax, esi
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.004d0217
mov esp, ebp
pop ebp
ret