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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ba4e
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x573080]
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 esi, edx
mov eax, ecx
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2c8], eax
mov dword [ebp - 0x2dc], eax
lea ecx, [ebp - 0x290]
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0x2c4], ebx
call fcn.00466960
mov dword [ebp - 4], 1
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x290]
call fcn.00468590
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 8
jb 0x466fe5
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x466fed
mov eax, dword [eax]
lea ecx, [ebp - 0x218]
push ecx
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x467042
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x467038
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x467c0b
push edx
push ecx
call fcn.004d5b86
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x234], 7
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 0x18
xor eax, eax
mov edi, esp
mov dword [ebp - 0x2e0], esp
lea esi, [edi + 0x10]
mov dword [esi], 0
mov dword [ebp - 0x2d4], esi
mov dword [edi + 0x14], 7
mov word [edi], ax
lea eax, [ebp - 0x218]
push eax
call fcn.004dbc76
mov ecx, dword [edi + 0x14]
add esp, 4
or edx, 0xffffffff
mov dword [ebp - 0x2c8], eax
mov dword [ebp - 0x2cc], ecx
cmp eax, ecx
ja 0x4670df
cmp ecx, 8
jb 0x4670be
mov edi, dword [edi]
mov dword [esi], eax
lea esi, [eax + eax]
push esi
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.004d7810
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
jmp 0x4671df
cmp eax, 0x7ffffffe
ja 0x467c10
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4670fe
mov esi, 0x7ffffffe
jmp 0x46711f
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x467114
mov esi, 0x7ffffffe
jmp 0x46711c
lea eax, [ecx + edx]
cmp esi, eax
cmovb esi, eax
or edx, 0xffffffff
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x467131
or ecx, 0xffffffff
jmp 0x467139
cmp ecx, 0x1000
jb 0x46715d
lea eax, [ecx + 0x23]
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004d5b94
add esp, 4
test eax, eax
je 0x467c15
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x467170
test ecx, ecx
je 0x46716e
push ecx
call fcn.004d5b94
add esp, 4
mov ebx, eax
jmp 0x467170
xor ebx, ebx
mov eax, dword [ebp - 0x2c8]
mov ecx, dword [ebp - 0x2d4]
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.004d7290
mov ecx, dword [ebp - 0x2cc]
xor eax, eax
add esp, 0xc
mov word [ebx + esi], ax
cmp ecx, 8
jb 0x4671d7
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4671cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x467c15
mov eax, edx
push ecx
push eax
call fcn.004d5b86
add esp, 8
mov dword [edi], ebx
mov ebx, dword [ebp - 0x2c4]
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x260]
call fcn.00465b90
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2d0]
cmp dword [eax + 0x10], 0
jne 0x4672d7
mov esi, dword [ebp - 0x2d8]
lea eax, [ebp - 0x260]
push 0x18
push eax
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.004d7290
xor eax, eax
mov dword [ebp - 0x250], 0
add esp, 0xc
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov byte [ebp - 4], 4
mov dword [ebp - 0x2c4], 1
mov byte [ebp - 4], 1
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x27c]
cmp edx, 8
jb 0x4672b5
mov ecx, dword [ebp - 0x290]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4672ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x467c15
push edx
push ecx
call fcn.004d5b86
add esp, 8
xor eax, eax
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
jmp 0x467bed
push eax
lea ecx, [ebp - 0x260]
call fcn.00465da0
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x260]
call fcn.00468590
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 8
jb 0x467301
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 - 0x294]
cmp edx, 8
jb 0x46734e
mov ecx, dword [ebp - 0x2a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x467344
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x467c0b
push edx
push ecx
call fcn.004d5b86
add esp, 8
xor eax, eax
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
test esi, esi
je 0x467b84
mov byte [ebp - 4], 0xc
or ebx, 2
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], eax
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x2c4], ebx
call fcn.00468250
mov edi, dword [ebp - 0x21c]
lea edx, [ebp - 0x230]
mov ebx, dword [ebp - 0x230]
cmp edi, 8
mov esi, dword [ebp - 0x220]
cmovae edx, ebx
test esi, esi
je 0x467438
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x2e
lea ecx, [edx + ecx*2]
je 0x4673fd
nop dword [eax]
cmp ecx, edx
je 0x467438
sub ecx, 2
cmp word [ecx], 0x2e
jne 0x4673f0
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x467438
cmp esi, ecx
jb 0x467c1a
cmp edi, 8
mov dword [ebp - 0x220], ecx
lea eax, [ebp - 0x230]
cmovae eax, ebx
xor edx, edx
mov word [eax + ecx*2], dx
mov edi, dword [ebp - 0x21c]
mov esi, dword [ebp - 0x220]
mov ebx, dword [ebp - 0x230]
cmp edi, 8
mov dword [ebp - 0x2d0], 1
lea edx, [ebp - 0x230]
cmovae edx, ebx
or ebx, 0xffffffff
test esi, esi
je 0x467483
lea eax, [esi - 1]
mov ecx, ebx
cmp eax, ebx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5f
lea edi, [edx + ecx*2]
je 0x46747d
nop dword [eax]
cmp edi, edx
je 0x467483
sub edi, 2
cmp word [edi], 0x5f
jne 0x467470
sub edi, edx
sar edi, 1
jmp 0x467486
or edi, 0xffffffff
cmp edi, 0xffffffff
je 0x467872
lea edx, [edi + 1]
mov byte [ebp - 4], 0xd
xor eax, eax
mov word [ebp - 0x278], ax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 7
cmp eax, edx
jb 0x467c1a
sub eax, edx
mov ecx, ebx
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x2cc], ecx
cmovae eax, dword [ebp - 0x230]
lea eax, [eax + edx*2]
mov dword [ebp - 0x2c8], eax
cmp ecx, 7
ja 0x467536
lea esi, [ecx + ecx]
mov dword [ebp - 0x268], ecx
push esi
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.004d7810
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x278], ax
mov ebx, dword [ebp - 0x278]
jmp 0x4675e9
cmp ecx, 0x7ffffffe
ja 0x467c10
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x467556
mov esi, 0x7ffffffe
jmp 0x467561
cmp esi, 0xa
mov eax, 0xa
cmovb esi, eax
lea eax, [esi + 1]
lea edx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x467573
or edx, 0xffffffff
jmp 0x46757b
cmp edx, 0x1000
jb 0x4675a5
lea eax, [edx + 0x23]
cmp eax, edx
cmovbe eax, ebx
push eax
call fcn.004d5b94
add esp, 4
test eax, eax
je 0x467c0b
mov ecx, dword [ebp - 0x2cc]
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x4675be
test edx, edx
je 0x4675bc
push edx
call fcn.004d5b94
mov ecx, dword [ebp - 0x2cc]
add esp, 4
mov ebx, eax
jmp 0x4675be
xor ebx, ebx
mov dword [ebp - 0x264], esi
lea esi, [ecx + ecx]
push esi
push dword [ebp - 0x2c8]
mov dword [ebp - 0x268], ecx
push ebx
call fcn.004d7290
add esp, 0xc
xor eax, eax
mov word [ebx + esi], ax
mov dword [ebp - 0x278], ebx
or dword [ebp - 0x2c4], 4
lea eax, [ebp - 0x278]
cmp dword [ebp - 0x264], 8
cmovae eax, ebx
push eax
call fcn.004e0244
mov ebx, dword [ebp - 0x2c4]
add esp, 4
and ebx, 0xfffffffb
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0x2c4], ebx
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x264]
cmp edx, 8
jb 0x467662
mov ecx, dword [ebp - 0x278]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x467658
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x467c0b
push edx
push ecx
call fcn.004d5b86
add esp, 8
xor eax, eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x220], edi
mov dword [ebp - 0x238], eax
cmovb edi, dword [ebp - 0x220]
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x238], eax
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x2c8], eax
cmp edi, 7
ja 0x4676fb
lea esi, [edi + edi]
mov dword [ebp - 0x238], edi
push esi
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004d7810
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x248], ax
jmp 0x4677ad
cmp edi, 0x7ffffffe
ja 0x467c10
mov esi, edi
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x46771b
mov esi, 0x7ffffffe
jmp 0x467726
cmp esi, 0xa
mov eax, 0xa
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x467738
or ecx, 0xffffffff
jmp 0x467740
cmp ecx, 0x1000
jb 0x467769
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.004d5b94
add esp, 4
test eax, eax
je 0x467c0b
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x46777c
test ecx, ecx
je 0x46777a
push ecx
call fcn.004d5b94
add esp, 4
mov ebx, eax
jmp 0x46777c
xor ebx, ebx
mov dword [ebp - 0x234], esi
lea esi, [edi + edi]
push esi
push dword [ebp - 0x2c8]
mov dword [ebp - 0x238], edi
push ebx
call fcn.004d7290
add esp, 0xc
xor eax, eax
mov word [ebx + esi], ax
mov dword [ebp - 0x248], ebx
mov ebx, dword [ebp - 0x2c4]
or ebx, 8
mov dword [ebp - 0x2c4], ebx
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4677f6
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4677ec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x467c0b
push edx
push ecx
call fcn.004d5b86
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x248]
push 0x18
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
push eax
call fcn.004d7290
xor eax, eax
mov dword [ebp - 0x238], 0
and ebx, 0xfffffff7
mov dword [ebp - 0x234], 7
add esp, 0xc
mov word [ebp - 0x248], ax
mov dword [ebp - 0x2c4], ebx
mov byte [ebp - 4], 0xc
inc dword [ebp - 0x2d0]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
push 0x536d08
call fcn.004dbc76
mov ebx, dword [ebp - 0x21c]
mov edx, eax
mov esi, dword [ebp - 0x220]
mov ecx, ebx
sub ecx, esi
mov dword [ebp - 0x2d4], edx
add esp, 4
mov dword [ebp - 0x2c8], esi
cmp edx, ecx
ja 0x4678e0
lea edi, [esi + edx]
cmp ebx, 8
lea eax, [edx + edx]
mov dword [ebp - 0x220], edi
push eax
mov eax, dword [ebp - 0x2c8]
lea esi, [ebp - 0x230]
cmovae esi, dword [ebp - 0x230]
push 0x536d08
lea eax, [esi + eax*2]
push eax
call fcn.004d7810
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x467a5a
mov eax, 0x7ffffffe
sub eax, esi
cmp eax, edx
jb 0x467c10
lea eax, [edx + esi]
mov edi, eax
mov dword [ebp - 0x2cc], eax
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x46790c
mov edi, 0x7ffffffe
jmp 0x46792a
mov ecx, ebx
mov eax, 0x7ffffffe
shr ecx, 1
sub eax, ecx
cmp ebx, eax
jbe 0x467922
mov edi, 0x7ffffffe
jmp 0x46792a
lea eax, [ebx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x46793c
or ecx, 0xffffffff
jmp 0x467944
cmp ecx, 0x1000
jb 0x467973
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.004d5b94
add esp, 4
test eax, eax
je 0x467c0b
mov edx, dword [ebp - 0x2d4]
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x46798c
test ecx, ecx
je 0x46798a
push ecx
call fcn.004d5b94
mov edx, dword [ebp - 0x2d4]
add esp, 4
mov esi, eax
jmp 0x46798c
xor esi, esi
mov eax, dword [ebp - 0x2cc]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x2c8]
add eax, eax
mov dword [ebp - 0x21c], edi
lea edi, [edx + edx]
mov dword [ebp - 0x2d4], edi
push eax
lea ecx, [eax + esi]
mov dword [ebp - 0x2c8], ecx
cmp ebx, 8
jb 0x467a24
mov edi, dword [ebp - 0x230]
push edi
push esi
call fcn.004d7290
add esp, 0xc
push dword [ebp - 0x2d4]
push 0x536d08
push dword [ebp - 0x2c8]
call fcn.004d7290
mov eax, dword [ebp - 0x2cc]
xor ecx, ecx
add esp, 0xc
mov word [esi + eax*2], cx
lea ecx, [ebx*2 + 2]
cmp ecx, 0x1000
jb 0x467a18
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x467c0b
mov edi, edx
push ecx
push edi
call fcn.004d5b86
add esp, 8
jmp 0x467a54
lea eax, [ebp - 0x230]
push eax
push esi
call fcn.004d7290
add esp, 0xc
push edi
push 0x536d08
push dword [ebp - 0x2c8]
call fcn.004d7290
mov eax, dword [ebp - 0x2cc]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax*2], cx
mov dword [ebp - 0x230], esi
mov edx, dword [ebp - 0x2d0]
lea ecx, [ebp - 0x2c0]
call fcn.0045bb00
mov byte [ebp - 4], 0xf
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x467a79
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00412200
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2c0]
call fcn.0040569b
mov ebx, dword [ebp - 0x24c]
lea edx, [ebp - 0x260]
mov edi, dword [ebp - 0x250]
cmp ebx, 8
cmovae edx, dword [ebp - 0x260]
test edi, edi
je 0x467ae3
lea eax, [edi - 1]
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea eax, [edx + ecx*2]
je 0x467add
nop dword [eax]
cmp eax, edx
je 0x467ae3
sub eax, 2
cmp word [eax], 0x5c
jne 0x467ad0
sub eax, edx
sar eax, 1
jmp 0x467ae6
or eax, 0xffffffff
xor esi, esi
lea edx, [ebp - 0x260]
cmp eax, 0xffffffff
cmovne esi, eax
cmp ebx, 8
cmovae edx, dword [ebp - 0x260]
test edi, edi
je 0x467b2a
or ecx, 0xffffffff
lea eax, [edi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x2e
lea ecx, [edx + ecx*2]
je 0x467b24
cmp ecx, edx
je 0x467b2a
sub ecx, 2
cmp word [ecx], 0x2e
jne 0x467b17
sub ecx, edx
sar ecx, 1
jmp 0x467b2d
or ecx, 0xffffffff
push dword [ebp - 0x220]
cmp ecx, 0xffffffff
lea eax, [ebp - 0x230]
cmove ecx, edi
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
sub ecx, esi
push eax
dec ecx
lea eax, [esi + 1]
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.004691c0
mov ebx, dword [ebp - 0x2c4]
and ebx, 0xfffffffd
mov dword [ebp - 0x2c4], ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x230]
call fcn.0040569b
jmp 0x4672e3
mov esi, dword [ebp - 0x2d8]
push 0x18
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x260]
push eax
push esi
call fcn.004d7290
xor eax, eax
mov dword [ebp - 0x250], 0
add esp, 0xc
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov byte [ebp - 4], 4
or ebx, 1
mov dword [ebp - 0x2c4], ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x260]
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.004d5b75
mov esp, ebp
pop ebp
ret
call fcn.004dbc26
call fcn.00405394
call fcn.004dbc26
call fcn.00419de0
int3