Function at 0x46d890
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb07c
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x4ff1a0]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xd8], ebx
mov edi, 7
xor ecx, ecx
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], cx
mov dword [ebp - 4], 1
push 0xf
xor edx, edx
push str.InstallLocation
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.0040e680
mov byte [ebp - 4], 2
push 0xc
push str._glka28iHCYp
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.0040ebe0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x9c]
push ecx
mov dword [ebp - 0xdc], SysReAllocStringLen
call fcn.0040f440
add esp, 8
mov esi, eax
mov byte [ebp - 4], 4
push 0x33
xor edx, edx
push 0x4c4aa0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
call fcn.0040e680
mov byte [ebp - 4], 5
lea eax, [ebp - 0xd4]
push eax
mov edx, esi
lea ecx, [ebp - 0x64]
call fcn.004273e0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 6
call fcn.00410830
push ebx
lea ecx, [ebp - 0xdc]
push ecx
mov edx, esi
lea ecx, [ebp - 0x2c]
lea esi, [ebp - 0xb8]
call fcn.00412810
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x80]
call fcn.00409ad0
mov byte [ebp - 4], 6
mov esi, 8
cmp dword [ebp - 0xa4], esi
jb 0x46d9cc
mov edx, dword [ebp - 0xb8]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], ax
mov byte [ebp - 4], 5
cmp dword [ebp - 0xc0], esi
jb 0x46d9fc
mov ecx, dword [ebp - 0xd4]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xc4], ebx
mov word [ebp - 0xd4], dx
mov byte [ebp - 4], 4
cmp dword [ebp - 0x50], esi
jb 0x46da26
mov eax, dword [ebp - 0x64]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x88], esi
jb 0x46da4d
mov edx, dword [ebp - 0x9c]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], ax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], 0x10
jb 0x46da78
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00490458
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], esi
jb 0x46da9a
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x70], ebx
jne 0x46e050
xor ecx, ecx
push 0xf
mov word [ebp - 0x64], cx
push str.InstallLocation
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
call fcn.0040e680
mov byte [ebp - 4], 8
push 0xc
push str._glka28iHCYp
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.0040ebe0
mov byte [ebp - 4], 9
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 0xdc], reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040f440
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0xa
xor ecx, ecx
push 0x33
mov word [ebp - 0x2c], cx
push 0x4c4aa0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
call fcn.0040e680
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0xd4]
push edx
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.004273e0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0xc
call fcn.00410830
push ebx
lea eax, [ebp - 0xdc]
mov edx, esi
push eax
lea ecx, [ebp - 0x64]
lea esi, [ebp - 0x9c]
call fcn.00412810
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x80]
call fcn.00409ad0
mov byte [ebp - 4], 0xc
mov esi, 8
cmp dword [ebp - 0x88], esi
jb 0x46db94
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], dx
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0xc0], esi
jb 0x46dbc4
mov eax, dword [ebp - 0xd4]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xc4], ebx
mov word [ebp - 0xd4], cx
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x18], esi
jb 0x46dbee
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 9
cmp dword [ebp - 0xa4], esi
jb 0x46dc15
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], dx
mov byte [ebp - 4], 8
cmp dword [ebp - 0x34], 0x10
jb 0x46dc40
mov eax, dword [ebp - 0x48]
push eax
call fcn.00490458
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], esi
jb 0x46dc62
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
cmp dword [ebp - 0x70], ebx
jne 0x46e04b
push 0xf
xor eax, eax
push str.InstallLocation
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
call fcn.0040e680
mov byte [ebp - 4], 0xe
push 0x10
push str._glkzbKNq5O7cg
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.0040ebe0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0xb8]
push edx
mov dword [ebp - 0xdc], SysReAllocStringLen
call fcn.0040f440
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0x10
push 0x33
xor eax, eax
push 0x4c4aa0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.0040e680
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xd4]
push ecx
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.004273e0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0x12
call fcn.00410830
push ebx
lea edx, [ebp - 0xdc]
push edx
mov edx, esi
lea ecx, [ebp - 0x64]
lea esi, [ebp - 0x9c]
call fcn.00412810
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x80]
call fcn.00409ad0
mov byte [ebp - 4], 0x12
mov esi, 8
cmp dword [ebp - 0x88], esi
jb 0x46dd5c
mov eax, dword [ebp - 0x9c]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], cx
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0xc0], esi
jb 0x46dd8c
mov edx, dword [ebp - 0xd4]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xc4], ebx
mov word [ebp - 0xd4], ax
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x18], esi
jb 0x46ddb6
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0xa4], esi
jb 0x46dddd
mov eax, dword [ebp - 0xb8]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], cx
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x34], 0x10
jb 0x46de08
mov edx, dword [ebp - 0x48]
push edx
call fcn.00490458
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], esi
jb 0x46de2a
mov eax, dword [ebp - 0x64]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
cmp dword [ebp - 0x70], ebx
jne 0x46e04b
push 0xf
xor edx, edx
push str.InstallLocation
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
call fcn.0040e680
mov byte [ebp - 4], 0x14
push 0x10
push str._glkzbKNq5O7cg
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.0040ebe0
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xb8]
push ecx
mov dword [ebp - 0xdc], reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040f440
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0x16
push 0x33
xor edx, edx
push 0x4c4aa0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.0040e680
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0xd4]
push eax
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.004273e0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0x18
call fcn.00410830
push ebx
lea ecx, [ebp - 0xdc]
push ecx
mov edx, esi
lea ecx, [ebp - 0x64]
lea esi, [ebp - 0x9c]
call fcn.00412810
mov byte [ebp - 4], 0x19
push eax
lea ecx, [ebp - 0x80]
call fcn.00409ad0
mov byte [ebp - 4], 0x18
mov esi, 8
cmp dword [ebp - 0x88], esi
jb 0x46df24
mov edx, dword [ebp - 0x9c]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], ax
mov byte [ebp - 4], 0x17
cmp dword [ebp - 0xc0], esi
jb 0x46df54
mov ecx, dword [ebp - 0xd4]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xc4], ebx
mov word [ebp - 0xd4], dx
mov byte [ebp - 4], 0x16
cmp dword [ebp - 0x18], esi
jb 0x46df7e
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
mov byte [ebp - 4], 0x15
cmp dword [ebp - 0xa4], esi
jb 0x46dfa5
mov edx, dword [ebp - 0xb8]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], ax
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x34], 0x10
jb 0x46dfd0
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00490458
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], esi
jb 0x46dff2
mov edx, dword [ebp - 0x64]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x70], ebx
jne 0x46e04b
mov esi, dword [ebp - 0xe0]
xor ecx, ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push ebx
mov word [esi], cx
push 0x4c42e8
mov ecx, esi
call fcn.0040e680
mov dword [ebp - 0xd8], 1
mov byte [ebp - 4], bl
cmp dword [ebp - 0x6c], 8
jb 0x46e040
mov edx, dword [ebp - 0x80]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov word [ebp - 0x80], ax
jmp 0x46e170
mov esi, 8
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x6c], esi
jae 0x46e05b
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
cmp al, bl
je 0x46e09a
push 0xffffffffffffffff
xor ecx, ecx
push ebx
lea edx, [ebp - 0x80]
mov word [ebp - 0x48], cx
push edx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
call fcn.0040f1f0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0x1a
mov dword [ebp - 0xd8], 2
jmp 0x46e0c8
push ebx
xor eax, eax
push 0x4c42e8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.0040e680
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0x1b
mov dword [ebp - 0xd8], 4
mov esi, dword [ebp - 0xe0]
xor ecx, ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov word [esi], cx
push eax
mov ecx, esi
call fcn.00409ad0
mov eax, dword [ebp - 0xd8]
or eax, 1
mov dword [ebp - 0xd8], eax
mov dword [ebp - 4], 0x1a
test al, 4
je 0x46e120
and dword [ebp - 0xd8], 0xfffffffb
cmp dword [ebp - 0x18], 8
jb 0x46e114
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 1
test byte [ebp - 0xd8], 2
je 0x46e155
and dword [ebp - 0xd8], 0xfffffffd
cmp dword [ebp - 0x34], 8
jb 0x46e149
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x6c], 8
jb 0x46e16a
mov eax, dword [ebp - 0x80]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov word [ebp - 0x80], cx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
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.004911d1
mov esp, ebp
pop ebp
ret