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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513417
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x57c074]
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.0046b6d0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x290]
call fcn.0046d200
mov byte [ebp - 4], 2
mov ecx, ebx
cmp dword [ebx + 0x14], 8
jb 0x46bd9f
mov ecx, dword [ebx]
cmp dword [eax + 0x14], 8
jb 0x46bda7
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 0x46bdfc
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46bdf2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c86f
push edx
push ecx
call fcn.004d9b41
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.004dfc45
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 0x46be99
cmp ecx, 8
jb 0x46be78
mov edi, dword [edi]
lea esi, [eax + eax]
mov dword [ebx], eax
push esi
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.004db7c0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x46bf93
cmp eax, 0x7ffffffe
ja 0x46c874
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x46beb8
mov esi, 0x7ffffffe
jmp 0x46bed9
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x46bece
mov esi, 0x7ffffffe
jmp 0x46bed6
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 0x46beeb
or ecx, 0xffffffff
jmp 0x46bef3
cmp ecx, 0x1000
jb 0x46bf17
lea eax, [ecx + 0x23]
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004d9b4f
add esp, 4
test eax, eax
je 0x46c879
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x46bf2a
test ecx, ecx
je 0x46bf28
push ecx
call fcn.004d9b4f
add esp, 4
mov ebx, eax
jmp 0x46bf2a
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.004db240
mov ecx, dword [ebp - 0x2f4]
xor eax, eax
add esp, 0xc
mov word [esi + ebx], ax
cmp ecx, 8
jb 0x46bf91
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x46bf87
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c86f
mov eax, edx
push ecx
push eax
call fcn.004d9b41
add esp, 8
mov dword [edi], ebx
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.0046a810
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x30c]
cmp dword [eax + 0x10], 0
jne 0x46c08b
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.004db240
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 0x46c069
mov ecx, dword [ebp - 0x290]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46c05f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c87e
push edx
push ecx
call fcn.004d9b41
add esp, 8
xor eax, eax
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
jmp 0x46c851
push eax
lea ecx, [ebp - 0x248]
call fcn.0046ab10
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x248]
call fcn.0046d200
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 8
jb 0x46c0b5
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 0x46c102
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46c0f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c883
push edx
push ecx
call fcn.004d9b41
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 0x46c7da
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x248]
call fcn.0046aaa0
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x260]
mov ecx, dword [ebp - 0x2fc]
push 3
push 0
push eax
call fcn.0041cd29
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x2a8]
push 0xffffffffffffffff
push dword [ebp - 0x250]
lea ecx, [ebp - 0x2c0]
push eax
call fcn.0041cd29
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x2f4]
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x2f4], 0
call fcn.0045f6f0
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.0045f5c0
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 0x46c312
cmp ebx, 0x7ffffffe
ja 0x46c874
mov edi, ebx
or edi, edx
cmp edi, 0x7ffffffe
jbe 0x46c26e
mov edi, 0x7ffffffe
jmp 0x46c274
cmp edi, 0xa
cmovb edi, esi
lea eax, [edi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x46c286
or ecx, 0xffffffff
jmp 0x46c28e
cmp ecx, 0x1000
jb 0x46c2b7
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.004d9b4f
add esp, 4
test eax, eax
je 0x46c86f
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x46c2ca
test ecx, ecx
je 0x46c2c8
push ecx
call fcn.004d9b4f
add esp, 4
mov esi, eax
jmp 0x46c2ca
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.004db240
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 0x46c318
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 0x46c367
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.004db7c0
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
mov edi, dword [ebp - 0x230]
jmp 0x46c4b8
cmp ecx, 0x7ffffffe
ja 0x46c874
mov ebx, ecx
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x46c387
mov ebx, 0x7ffffffe
jmp 0x46c3a5
mov edi, edx
mov eax, 0x7ffffffe
shr edi, 1
sub eax, edi
cmp edx, eax
jbe 0x46c39d
mov ebx, 0x7ffffffe
jmp 0x46c3a5
lea eax, [edx + edi]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
lea edi, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x46c3b7
or edi, 0xffffffff
jmp 0x46c3bf
cmp edi, 0x1000
jb 0x46c3fa
lea eax, [edi + 0x23]
mov ecx, 0xffffffff
cmp eax, edi
cmovbe eax, ecx
push eax
call fcn.004d9b4f
add esp, 4
test eax, eax
je 0x46c86f
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 0x46c41f
test edi, edi
je 0x46c41d
push edi
call fcn.004d9b4f
mov esi, dword [ebp - 0x230]
add esp, 4
mov ecx, dword [ebp - 0x2f4]
mov edi, eax
mov edx, dword [ebp - 0x2fc]
jmp 0x46c41f
xor edi, edi
mov dword [ebp - 0x21c], ebx
lea ebx, [ecx + ecx]
mov dword [ebp - 0x220], ecx
push 0
cmp edx, 8
jb 0x46c48c
push esi
push edi
call fcn.004db240
add esp, 0xc
push ebx
push dword [ebp - 0x2f8]
push edi
call fcn.004db240
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 0x46c480
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x46c86f
mov esi, edx
push ecx
push esi
call fcn.004d9b41
add esp, 8
jmp 0x46c4b2
lea eax, [ebp - 0x230]
push eax
push edi
call fcn.004db240
add esp, 0xc
push ebx
push dword [ebp - 0x2f8]
push edi
call fcn.004db240
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 0x46c53c
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.004db7c0
mov eax, dword [ebp - 0x2f8]
add esp, 0xc
add eax, ebx
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x46c6c4
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, ebx
jb 0x46c874
lea eax, [ebx + ecx]
mov ebx, eax
mov dword [ebp - 0x304], eax
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x46c568
mov ebx, 0x7ffffffe
jmp 0x46c586
mov ecx, edx
mov eax, 0x7ffffffe
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x46c57e
mov ebx, 0x7ffffffe
jmp 0x46c586
lea eax, [edx + ecx]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x46c598
or ecx, 0xffffffff
jmp 0x46c5a0
cmp ecx, 0x1000
jb 0x46c5cf
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.004d9b4f
add esp, 4
test eax, eax
je 0x46c86f
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
mov edi, dword [ebp - 0x230]
jmp 0x46c5e8
test ecx, ecx
je 0x46c5e6
push ecx
call fcn.004d9b4f
mov edi, dword [ebp - 0x230]
add esp, 4
mov esi, eax
jmp 0x46c5e8
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 0x46c68b
push edi
push esi
call fcn.004db240
add esp, 0xc
lea eax, [esi + ebx]
push dword [ebp - 0x2f8]
push dword [ebp - 0x2f4]
push eax
call fcn.004db240
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 0x46c67f
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x46c86f
mov edi, edx
push ecx
push edi
call fcn.004d9b41
add esp, 8
jmp 0x46c6be
lea eax, [ebp - 0x230]
push eax
push esi
call fcn.004db240
add esp, 0xc
lea eax, [esi + ebx]
push dword [ebp - 0x2f8]
push dword [ebp - 0x2f4]
push eax
call fcn.004db240
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.0046d9f0
mov esi, eax
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x248]
cmp eax, esi
je 0x46c719
mov ecx, eax
call fcn.004056f5
push 0x18
lea eax, [ebp - 0x248]
push esi
push eax
call fcn.004db240
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.004056f5
mov ebx, dword [ebp - 0x300]
and ebx, 0xfffffffb
mov dword [ebp - 0x300], ebx
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x230]
call fcn.004056f5
push dword [ebp - 0x30c]
lea ecx, [ebp - 0x248]
call fcn.0046ae80
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x278]
call fcn.004056f5
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x248]
call fcn.0046d200
mov byte [ebp - 4], 0x14
cmp dword [eax + 0x14], 8
jb 0x46c784
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.004056f5
test esi, esi
je 0x46c7ab
mov eax, dword [ebp - 0x308]
jmp 0x46c19c
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x2a8]
call fcn.004056f5
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x260]
call fcn.004056f5
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c0]
call fcn.004056f5
jmp 0x46c7e0
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.004db240
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.004056f5
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x290]
call fcn.004056f5
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.004d9b30
mov esp, ebp
pop ebp
ret
call fcn.004dfbf5
call fcn.004053e9
call fcn.004dfbf5
call fcn.004dfbf5
call fcn.004dfbf5
int3