Function at 0x46bf70
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513de7
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x2fc], ebx
mov eax, ecx
mov dword [ebp - 0x310], eax
mov dword [ebp - 0x308], eax
mov dword [ebp - 0x318], eax
lea ecx, [ebp - 0x290]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30c], eax
mov dword [ebp - 0x300], 0
call fcn.0046b970
mov dword [ebp - 4], 1
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x290]
call fcn.0046d460
mov byte [ebp - 4], 2
mov ecx, ebx
cmp dword [ebx + 0x14], 8
jb 0x46bfff
mov ecx, dword [ebx]
cmp dword [eax + 0x14], 8
jb 0x46c007
mov eax, dword [eax]
lea edx, [ebp - 0x218]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x46c05c
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46c052
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46cacf
push edx
push ecx
call fcn.004da8c5
add esp, 8
xor eax, eax
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x24c], 7
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 0x18
xor eax, eax
mov edi, esp
mov dword [ebp - 0x308], esp
lea ebx, [edi + 0x10]
mov dword [ebx], 0
mov dword [ebp - 0x2f8], ebx
mov dword [edi + 0x14], 7
mov word [edi], ax
lea eax, [ebp - 0x218]
push eax
call fcn.004e09b6
mov ecx, dword [edi + 0x14]
add esp, 4
or edx, 0xffffffff
mov dword [ebp - 0x304], eax
mov dword [ebp - 0x2f4], ecx
cmp eax, ecx
ja 0x46c0f9
cmp ecx, 8
jb 0x46c0d8
mov edi, dword [edi]
lea esi, [eax + eax]
mov dword [ebx], eax
push esi
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.004dc550
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x46c1f3
cmp eax, 0x7ffffffe
ja 0x46cad4
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x46c118
mov esi, 0x7ffffffe
jmp 0x46c139
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x46c12e
mov esi, 0x7ffffffe
jmp 0x46c136
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
or edx, 0xffffffff
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x46c14b
or ecx, 0xffffffff
jmp 0x46c153
cmp ecx, 0x1000
jb 0x46c177
lea eax, [ecx + 0x23]
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004da8d3
add esp, 4
test eax, eax
je 0x46cad9
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x46c18a
test ecx, ecx
je 0x46c188
push ecx
call fcn.004da8d3
add esp, 4
mov ebx, eax
jmp 0x46c18a
xor ebx, ebx
mov eax, dword [ebp - 0x304]
mov ecx, dword [ebp - 0x2f8]
mov dword [edi + 0x14], esi
lea esi, [eax + eax]
mov dword [ecx], eax
lea eax, [ebp - 0x218]
push esi
push eax
push ebx
call fcn.004dbfd0
mov ecx, dword [ebp - 0x2f4]
xor eax, eax
add esp, 0xc
mov word [esi + ebx], ax
cmp ecx, 8
jb 0x46c1f1
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x46c1e7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46cad9
mov eax, edx
push ecx
push eax
call fcn.004da8c5
add esp, 8
mov dword [edi], ebx
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.0046aac0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x30c]
cmp dword [eax + 0x10], 0
jne 0x46c2eb
mov esi, dword [ebp - 0x310]
lea eax, [ebp - 0x248]
push 0x18
push eax
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.004dbfd0
xor eax, eax
mov dword [ebp - 0x238], 0
add esp, 0xc
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov byte [ebp - 4], 4
mov dword [ebp - 0x300], 1
mov byte [ebp - 4], 1
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x27c]
cmp edx, 8
jb 0x46c2c9
mov ecx, dword [ebp - 0x290]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46c2bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46cad9
push edx
push ecx
call fcn.004da8c5
add esp, 8
xor eax, eax
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
jmp 0x46cab1
push eax
lea ecx, [ebp - 0x248]
call fcn.0046adb0
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x248]
call fcn.0046d460
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 8
jb 0x46c315
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x46c362
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46c358
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46cade
push edx
push ecx
call fcn.004da8c5
add esp, 8
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
test esi, esi
je 0x46ca3a
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x248]
call fcn.0046ad40
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x260]
mov ecx, dword [ebp - 0x2fc]
push 3
push 0
push eax
call fcn.0041cbfd
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x2a8]
push 0xffffffffffffffff
push dword [ebp - 0x250]
lea ecx, [ebp - 0x2c0]
push eax
call fcn.0041cbfd
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x2f4]
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x2f4], 0
call fcn.0045fae0
mov eax, dword [ebp - 0x2f4]
mov ebx, dword [ebp - 0x300]
xor ecx, ecx
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0
mov esi, 0xa
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], cx
mov byte [ebp - 4], 0xf
inc eax
push ecx
lea edx, [ebp - 0x278]
mov dword [ebp - 0x308], eax
mov ecx, eax
call fcn.0045f9b0
add esp, 4
mov byte [ebp - 4], 0x10
mov edx, 7
or ebx, 4
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x21c], edx
xor eax, eax
mov dword [ebp - 0x300], ebx
mov ecx, dword [ebp - 0x250]
mov ebx, dword [ebp - 0x268]
add ebx, ecx
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x2fc], edx
mov word [ebp - 0x230], ax
mov dword [ebp - 0x2f4], ecx
cmp ebx, edx
jbe 0x46c572
cmp ebx, 0x7ffffffe
ja 0x46cad4
mov edi, ebx
or edi, edx
cmp edi, 0x7ffffffe
jbe 0x46c4ce
mov edi, 0x7ffffffe
jmp 0x46c4d4
cmp edi, 0xa
cmovb edi, esi
lea eax, [edi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x46c4e6
or ecx, 0xffffffff
jmp 0x46c4ee
cmp ecx, 0x1000
jb 0x46c517
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.004da8d3
add esp, 4
test eax, eax
je 0x46cacf
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x46c52a
test ecx, ecx
je 0x46c528
push ecx
call fcn.004da8d3
add esp, 4
mov esi, eax
jmp 0x46c52a
xor esi, esi
push 2
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], ebx
push eax
push esi
mov dword [ebp - 0x21c], edi
call fcn.004dbfd0
mov dword [ebp - 0x230], esi
add esp, 0xc
mov ecx, dword [ebp - 0x250]
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x2f4], ecx
mov dword [ebp - 0x2fc], edx
jmp 0x46c578
mov esi, dword [ebp - 0x230]
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
mov dword [ebp - 0x2f8], eax
cmp ecx, edx
ja 0x46c5c7
cmp edx, 8
mov dword [ebp - 0x220], ecx
lea edi, [ebp - 0x230]
cmovae edi, esi
lea esi, [ecx + ecx]
push esi
push eax
push edi
call fcn.004dc550
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
mov edi, dword [ebp - 0x230]
jmp 0x46c718
cmp ecx, 0x7ffffffe
ja 0x46cad4
mov ebx, ecx
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x46c5e7
mov ebx, 0x7ffffffe
jmp 0x46c605
mov edi, edx
mov eax, 0x7ffffffe
shr edi, 1
sub eax, edi
cmp edx, eax
jbe 0x46c5fd
mov ebx, 0x7ffffffe
jmp 0x46c605
lea eax, [edx + edi]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
lea edi, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x46c617
or edi, 0xffffffff
jmp 0x46c61f
cmp edi, 0x1000
jb 0x46c65a
lea eax, [edi + 0x23]
mov ecx, 0xffffffff
cmp eax, edi
cmovbe eax, ecx
push eax
call fcn.004da8d3
add esp, 4
test eax, eax
je 0x46cacf
mov ecx, dword [ebp - 0x2f4]
lea edi, [eax + 0x23]
mov edx, dword [ebp - 0x2fc]
and edi, 0xffffffe0
mov dword [edi - 4], eax
mov esi, dword [ebp - 0x230]
jmp 0x46c67f
test edi, edi
je 0x46c67d
push edi
call fcn.004da8d3
mov esi, dword [ebp - 0x230]
add esp, 4
mov ecx, dword [ebp - 0x2f4]
mov edi, eax
mov edx, dword [ebp - 0x2fc]
jmp 0x46c67f
xor edi, edi
mov dword [ebp - 0x21c], ebx
lea ebx, [ecx + ecx]
mov dword [ebp - 0x220], ecx
push 0
cmp edx, 8
jb 0x46c6ec
push esi
push edi
call fcn.004dbfd0
add esp, 0xc
push ebx
push dword [ebp - 0x2f8]
push edi
call fcn.004dbfd0
xor eax, eax
add esp, 0xc
mov word [edi + ebx], ax
mov eax, dword [ebp - 0x2fc]
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x46c6e0
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x46cacf
mov esi, edx
push ecx
push esi
call fcn.004da8c5
add esp, 8
jmp 0x46c712
lea eax, [ebp - 0x230]
push eax
push edi
call fcn.004dbfd0
add esp, 0xc
push ebx
push dword [ebp - 0x2f8]
push edi
call fcn.004dbfd0
add esp, 0xc
xor eax, eax
mov word [edi + ebx], ax
mov dword [ebp - 0x230], edi
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
mov edx, dword [ebp - 0x21c]
cmovae eax, dword [ebp - 0x278]
mov ecx, dword [ebp - 0x220]
mov ebx, dword [ebp - 0x268]
mov dword [ebp - 0x2f4], eax
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x314], ebx
mov dword [ebp - 0x2f8], ecx
mov dword [ebp - 0x2fc], edx
cmp ebx, eax
ja 0x46c79c
lea eax, [ebx + ecx]
cmp edx, 8
mov dword [ebp - 0x220], eax
lea esi, [ebp - 0x230]
cmovae esi, edi
lea eax, [ebx + ebx]
push eax
push dword [ebp - 0x2f4]
lea eax, [esi + ecx*2]
push eax
call fcn.004dc550
mov eax, dword [ebp - 0x2f8]
add esp, 0xc
add eax, ebx
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x46c924
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, ebx
jb 0x46cad4
lea eax, [ebx + ecx]
mov ebx, eax
mov dword [ebp - 0x304], eax
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x46c7c8
mov ebx, 0x7ffffffe
jmp 0x46c7e6
mov ecx, edx
mov eax, 0x7ffffffe
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x46c7de
mov ebx, 0x7ffffffe
jmp 0x46c7e6
lea eax, [edx + ecx]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x46c7f8
or ecx, 0xffffffff
jmp 0x46c800
cmp ecx, 0x1000
jb 0x46c82f
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.004da8d3
add esp, 4
test eax, eax
je 0x46cacf
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
mov edi, dword [ebp - 0x230]
jmp 0x46c848
test ecx, ecx
je 0x46c846
push ecx
call fcn.004da8d3
mov edi, dword [ebp - 0x230]
add esp, 4
mov esi, eax
jmp 0x46c848
xor esi, esi
mov eax, dword [ebp - 0x304]
mov ecx, dword [ebp - 0x2f8]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x314]
mov dword [ebp - 0x21c], ebx
lea ebx, [ecx + ecx]
push ebx
lea edx, [eax + eax]
add eax, ecx
cmp dword [ebp - 0x2fc], 8
mov dword [ebp - 0x2f8], edx
lea eax, [esi + eax*2]
mov dword [ebp - 0x304], eax
jb 0x46c8eb
push edi
push esi
call fcn.004dbfd0
add esp, 0xc
lea eax, [esi + ebx]
push dword [ebp - 0x2f8]
push dword [ebp - 0x2f4]
push eax
call fcn.004dbfd0
mov eax, dword [ebp - 0x304]
xor ecx, ecx
add esp, 0xc
mov word [eax], cx
mov ecx, dword [ebp - 0x2fc]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x46c8df
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x46cacf
mov edi, edx
push ecx
push edi
call fcn.004da8c5
add esp, 8
jmp 0x46c91e
lea eax, [ebp - 0x230]
push eax
push esi
call fcn.004dbfd0
add esp, 0xc
lea eax, [esi + ebx]
push dword [ebp - 0x2f8]
push dword [ebp - 0x2f4]
push eax
call fcn.004dbfd0
mov eax, dword [ebp - 0x304]
add esp, 0xc
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x230], esi
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x290]
call fcn.0046dc30
mov esi, eax
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x248]
cmp eax, esi
je 0x46c979
mov ecx, eax
call fcn.0040569b
push 0x18
lea eax, [ebp - 0x248]
push esi
push eax
call fcn.004dbfd0
add esp, 0xc
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2d8]
call fcn.0040569b
mov ebx, dword [ebp - 0x300]
and ebx, 0xfffffffb
mov dword [ebp - 0x300], ebx
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x230]
call fcn.0040569b
push dword [ebp - 0x30c]
lea ecx, [ebp - 0x248]
call fcn.0046b120
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x278]
call fcn.0040569b
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x248]
call fcn.0046d460
mov byte [ebp - 4], 0x14
cmp dword [eax + 0x14], 8
jb 0x46c9e4
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2f0]
call fcn.0040569b
test esi, esi
je 0x46ca0b
mov eax, dword [ebp - 0x308]
jmp 0x46c3fc
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x2a8]
call fcn.0040569b
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x260]
call fcn.0040569b
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c0]
call fcn.0040569b
jmp 0x46ca40
mov ebx, dword [ebp - 0x300]
mov esi, dword [ebp - 0x310]
lea eax, [ebp - 0x248]
push 0x18
push eax
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.004dbfd0
xor eax, eax
mov dword [ebp - 0x238], 0
add esp, 0xc
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov byte [ebp - 4], 4
or ebx, 1
mov dword [ebp - 0x300], ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.0040569b
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x290]
call fcn.0040569b
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 - 0x10]
xor ecx, ebp
call fcn.004da8b4
mov esp, ebp
pop ebp
ret
call fcn.004e0966
call fcn.00405394
call fcn.004e0966
call fcn.004e0966
int3