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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514087
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.0046b990
mov dword [ebp - 4], 1
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x290]
call fcn.0046d480
mov byte [ebp - 4], 2
mov ecx, ebx
cmp dword [ebx + 0x14], 8
jb 0x46c01f
mov ecx, dword [ebx]
cmp dword [eax + 0x14], 8
jb 0x46c027
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 0x46c07c
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46c072
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46caef
push edx
push ecx
call fcn.004dab35
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.004e0c26
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 0x46c119
cmp ecx, 8
jb 0x46c0f8
mov edi, dword [edi]
lea esi, [eax + eax]
mov dword [ebx], eax
push esi
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.004dc7c0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x46c213
cmp eax, 0x7ffffffe
ja 0x46caf4
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x46c138
mov esi, 0x7ffffffe
jmp 0x46c159
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x46c14e
mov esi, 0x7ffffffe
jmp 0x46c156
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 0x46c16b
or ecx, 0xffffffff
jmp 0x46c173
cmp ecx, 0x1000
jb 0x46c197
lea eax, [ecx + 0x23]
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004dab43
add esp, 4
test eax, eax
je 0x46caf9
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x46c1aa
test ecx, ecx
je 0x46c1a8
push ecx
call fcn.004dab43
add esp, 4
mov ebx, eax
jmp 0x46c1aa
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.004dc240
mov ecx, dword [ebp - 0x2f4]
xor eax, eax
add esp, 0xc
mov word [esi + ebx], ax
cmp ecx, 8
jb 0x46c211
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x46c207
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46caf9
mov eax, edx
push ecx
push eax
call fcn.004dab35
add esp, 8
mov dword [edi], ebx
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.0046aae0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x30c]
cmp dword [eax + 0x10], 0
jne 0x46c30b
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.004dc240
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 0x46c2e9
mov ecx, dword [ebp - 0x290]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46c2df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46caf9
push edx
push ecx
call fcn.004dab35
add esp, 8
xor eax, eax
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
jmp 0x46cad1
push eax
lea ecx, [ebp - 0x248]
call fcn.0046add0
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x248]
call fcn.0046d480
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 8
jb 0x46c335
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 0x46c382
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46c378
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46cafe
push edx
push ecx
call fcn.004dab35
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 0x46ca5a
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x248]
call fcn.0046ad60
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.0045fb00
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.0045f9d0
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 0x46c592
cmp ebx, 0x7ffffffe
ja 0x46caf4
mov edi, ebx
or edi, edx
cmp edi, 0x7ffffffe
jbe 0x46c4ee
mov edi, 0x7ffffffe
jmp 0x46c4f4
cmp edi, 0xa
cmovb edi, esi
lea eax, [edi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x46c506
or ecx, 0xffffffff
jmp 0x46c50e
cmp ecx, 0x1000
jb 0x46c537
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.004dab43
add esp, 4
test eax, eax
je 0x46caef
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x46c54a
test ecx, ecx
je 0x46c548
push ecx
call fcn.004dab43
add esp, 4
mov esi, eax
jmp 0x46c54a
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.004dc240
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 0x46c598
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 0x46c5e7
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.004dc7c0
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
mov edi, dword [ebp - 0x230]
jmp 0x46c738
cmp ecx, 0x7ffffffe
ja 0x46caf4
mov ebx, ecx
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x46c607
mov ebx, 0x7ffffffe
jmp 0x46c625
mov edi, edx
mov eax, 0x7ffffffe
shr edi, 1
sub eax, edi
cmp edx, eax
jbe 0x46c61d
mov ebx, 0x7ffffffe
jmp 0x46c625
lea eax, [edx + edi]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
lea edi, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x46c637
or edi, 0xffffffff
jmp 0x46c63f
cmp edi, 0x1000
jb 0x46c67a
lea eax, [edi + 0x23]
mov ecx, 0xffffffff
cmp eax, edi
cmovbe eax, ecx
push eax
call fcn.004dab43
add esp, 4
test eax, eax
je 0x46caef
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 0x46c69f
test edi, edi
je 0x46c69d
push edi
call fcn.004dab43
mov esi, dword [ebp - 0x230]
add esp, 4
mov ecx, dword [ebp - 0x2f4]
mov edi, eax
mov edx, dword [ebp - 0x2fc]
jmp 0x46c69f
xor edi, edi
mov dword [ebp - 0x21c], ebx
lea ebx, [ecx + ecx]
mov dword [ebp - 0x220], ecx
push 0
cmp edx, 8
jb 0x46c70c
push esi
push edi
call fcn.004dc240
add esp, 0xc
push ebx
push dword [ebp - 0x2f8]
push edi
call fcn.004dc240
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 0x46c700
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x46caef
mov esi, edx
push ecx
push esi
call fcn.004dab35
add esp, 8
jmp 0x46c732
lea eax, [ebp - 0x230]
push eax
push edi
call fcn.004dc240
add esp, 0xc
push ebx
push dword [ebp - 0x2f8]
push edi
call fcn.004dc240
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 0x46c7bc
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.004dc7c0
mov eax, dword [ebp - 0x2f8]
add esp, 0xc
add eax, ebx
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x46c944
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, ebx
jb 0x46caf4
lea eax, [ebx + ecx]
mov ebx, eax
mov dword [ebp - 0x304], eax
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x46c7e8
mov ebx, 0x7ffffffe
jmp 0x46c806
mov ecx, edx
mov eax, 0x7ffffffe
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x46c7fe
mov ebx, 0x7ffffffe
jmp 0x46c806
lea eax, [edx + ecx]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x46c818
or ecx, 0xffffffff
jmp 0x46c820
cmp ecx, 0x1000
jb 0x46c84f
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.004dab43
add esp, 4
test eax, eax
je 0x46caef
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
mov edi, dword [ebp - 0x230]
jmp 0x46c868
test ecx, ecx
je 0x46c866
push ecx
call fcn.004dab43
mov edi, dword [ebp - 0x230]
add esp, 4
mov esi, eax
jmp 0x46c868
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 0x46c90b
push edi
push esi
call fcn.004dc240
add esp, 0xc
lea eax, [esi + ebx]
push dword [ebp - 0x2f8]
push dword [ebp - 0x2f4]
push eax
call fcn.004dc240
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 0x46c8ff
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x46caef
mov edi, edx
push ecx
push edi
call fcn.004dab35
add esp, 8
jmp 0x46c93e
lea eax, [ebp - 0x230]
push eax
push esi
call fcn.004dc240
add esp, 0xc
lea eax, [esi + ebx]
push dword [ebp - 0x2f8]
push dword [ebp - 0x2f4]
push eax
call fcn.004dc240
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.0046dc50
mov esi, eax
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x248]
cmp eax, esi
je 0x46c999
mov ecx, eax
call fcn.0040569b
push 0x18
lea eax, [ebp - 0x248]
push esi
push eax
call fcn.004dc240
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.0046b140
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x278]
call fcn.0040569b
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x248]
call fcn.0046d480
mov byte [ebp - 4], 0x14
cmp dword [eax + 0x14], 8
jb 0x46ca04
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 0x46ca2b
mov eax, dword [ebp - 0x308]
jmp 0x46c41c
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 0x46ca60
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.004dc240
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.004dab24
mov esp, ebp
pop ebp
ret
call fcn.004e0bd6
call fcn.00405394
call fcn.004e0bd6
call fcn.004e0bd6
int3