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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5140a7
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.0046b980
mov dword [ebp - 4], 1
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x290]
call fcn.0046d470
mov byte [ebp - 4], 2
mov ecx, ebx
cmp dword [ebx + 0x14], 8
jb 0x46c00f
mov ecx, dword [ebx]
cmp dword [eax + 0x14], 8
jb 0x46c017
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 0x46c06c
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46c062
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46cadf
push edx
push ecx
call fcn.004dab55
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.004e0c46
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 0x46c109
cmp ecx, 8
jb 0x46c0e8
mov edi, dword [edi]
lea esi, [eax + eax]
mov dword [ebx], eax
push esi
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.004dc7e0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x46c203
cmp eax, 0x7ffffffe
ja 0x46cae4
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x46c128
mov esi, 0x7ffffffe
jmp 0x46c149
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x46c13e
mov esi, 0x7ffffffe
jmp 0x46c146
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 0x46c15b
or ecx, 0xffffffff
jmp 0x46c163
cmp ecx, 0x1000
jb 0x46c187
lea eax, [ecx + 0x23]
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004dab63
add esp, 4
test eax, eax
je 0x46cae9
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x46c19a
test ecx, ecx
je 0x46c198
push ecx
call fcn.004dab63
add esp, 4
mov ebx, eax
jmp 0x46c19a
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.004dc260
mov ecx, dword [ebp - 0x2f4]
xor eax, eax
add esp, 0xc
mov word [esi + ebx], ax
cmp ecx, 8
jb 0x46c201
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x46c1f7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46cae9
mov eax, edx
push ecx
push eax
call fcn.004dab55
add esp, 8
mov dword [edi], ebx
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.0046aad0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x30c]
cmp dword [eax + 0x10], 0
jne 0x46c2fb
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.004dc260
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 0x46c2d9
mov ecx, dword [ebp - 0x290]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46c2cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46cae9
push edx
push ecx
call fcn.004dab55
add esp, 8
xor eax, eax
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
jmp 0x46cac1
push eax
lea ecx, [ebp - 0x248]
call fcn.0046adc0
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x248]
call fcn.0046d470
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 8
jb 0x46c325
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 0x46c372
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46c368
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46caee
push edx
push ecx
call fcn.004dab55
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 0x46ca4a
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x248]
call fcn.0046ad50
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x260]
mov ecx, dword [ebp - 0x2fc]
push 3
push 0
push eax
call fcn.0041cbed
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x2a8]
push 0xffffffffffffffff
push dword [ebp - 0x250]
lea ecx, [ebp - 0x2c0]
push eax
call fcn.0041cbed
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x2f4]
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x2f4], 0
call fcn.0045faf0
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.0045f9c0
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 0x46c582
cmp ebx, 0x7ffffffe
ja 0x46cae4
mov edi, ebx
or edi, edx
cmp edi, 0x7ffffffe
jbe 0x46c4de
mov edi, 0x7ffffffe
jmp 0x46c4e4
cmp edi, 0xa
cmovb edi, esi
lea eax, [edi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x46c4f6
or ecx, 0xffffffff
jmp 0x46c4fe
cmp ecx, 0x1000
jb 0x46c527
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.004dab63
add esp, 4
test eax, eax
je 0x46cadf
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x46c53a
test ecx, ecx
je 0x46c538
push ecx
call fcn.004dab63
add esp, 4
mov esi, eax
jmp 0x46c53a
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.004dc260
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 0x46c588
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 0x46c5d7
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.004dc7e0
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
mov edi, dword [ebp - 0x230]
jmp 0x46c728
cmp ecx, 0x7ffffffe
ja 0x46cae4
mov ebx, ecx
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x46c5f7
mov ebx, 0x7ffffffe
jmp 0x46c615
mov edi, edx
mov eax, 0x7ffffffe
shr edi, 1
sub eax, edi
cmp edx, eax
jbe 0x46c60d
mov ebx, 0x7ffffffe
jmp 0x46c615
lea eax, [edx + edi]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
lea edi, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x46c627
or edi, 0xffffffff
jmp 0x46c62f
cmp edi, 0x1000
jb 0x46c66a
lea eax, [edi + 0x23]
mov ecx, 0xffffffff
cmp eax, edi
cmovbe eax, ecx
push eax
call fcn.004dab63
add esp, 4
test eax, eax
je 0x46cadf
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 0x46c68f
test edi, edi
je 0x46c68d
push edi
call fcn.004dab63
mov esi, dword [ebp - 0x230]
add esp, 4
mov ecx, dword [ebp - 0x2f4]
mov edi, eax
mov edx, dword [ebp - 0x2fc]
jmp 0x46c68f
xor edi, edi
mov dword [ebp - 0x21c], ebx
lea ebx, [ecx + ecx]
mov dword [ebp - 0x220], ecx
push 0
cmp edx, 8
jb 0x46c6fc
push esi
push edi
call fcn.004dc260
add esp, 0xc
push ebx
push dword [ebp - 0x2f8]
push edi
call fcn.004dc260
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 0x46c6f0
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x46cadf
mov esi, edx
push ecx
push esi
call fcn.004dab55
add esp, 8
jmp 0x46c722
lea eax, [ebp - 0x230]
push eax
push edi
call fcn.004dc260
add esp, 0xc
push ebx
push dword [ebp - 0x2f8]
push edi
call fcn.004dc260
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 0x46c7ac
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.004dc7e0
mov eax, dword [ebp - 0x2f8]
add esp, 0xc
add eax, ebx
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x46c934
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, ebx
jb 0x46cae4
lea eax, [ebx + ecx]
mov ebx, eax
mov dword [ebp - 0x304], eax
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x46c7d8
mov ebx, 0x7ffffffe
jmp 0x46c7f6
mov ecx, edx
mov eax, 0x7ffffffe
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x46c7ee
mov ebx, 0x7ffffffe
jmp 0x46c7f6
lea eax, [edx + ecx]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x46c808
or ecx, 0xffffffff
jmp 0x46c810
cmp ecx, 0x1000
jb 0x46c83f
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.004dab63
add esp, 4
test eax, eax
je 0x46cadf
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
mov edi, dword [ebp - 0x230]
jmp 0x46c858
test ecx, ecx
je 0x46c856
push ecx
call fcn.004dab63
mov edi, dword [ebp - 0x230]
add esp, 4
mov esi, eax
jmp 0x46c858
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 0x46c8fb
push edi
push esi
call fcn.004dc260
add esp, 0xc
lea eax, [esi + ebx]
push dword [ebp - 0x2f8]
push dword [ebp - 0x2f4]
push eax
call fcn.004dc260
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 0x46c8ef
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x46cadf
mov edi, edx
push ecx
push edi
call fcn.004dab55
add esp, 8
jmp 0x46c92e
lea eax, [ebp - 0x230]
push eax
push esi
call fcn.004dc260
add esp, 0xc
lea eax, [esi + ebx]
push dword [ebp - 0x2f8]
push dword [ebp - 0x2f4]
push eax
call fcn.004dc260
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 0x46c989
mov ecx, eax
call fcn.0040569b
push 0x18
lea eax, [ebp - 0x248]
push esi
push eax
call fcn.004dc260
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.0046b130
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x278]
call fcn.0040569b
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x248]
call fcn.0046d470
mov byte [ebp - 4], 0x14
cmp dword [eax + 0x14], 8
jb 0x46c9f4
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 0x46ca1b
mov eax, dword [ebp - 0x308]
jmp 0x46c40c
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 0x46ca50
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.004dc260
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.004dab44
mov esp, ebp
pop ebp
ret
call fcn.004e0bf6
call fcn.00405394
call fcn.004e0bf6
call fcn.004e0bf6
int3