Function at 0x468860
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x220], eax
cmp esi, edi
jne 0x468899
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
mov edx, dword [0x599458]
mov eax, dword [edx + 0xc]
push ebx
mov ecx, 0x599458
xor ebx, ebx
mov dword [ebp - 0x224], edi
call eax
push esi
lea ecx, [ebp - 0x210]
add eax, 0x10
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_s
push ecx
mov dword [ebp - 0x210], eax
call fcn.0044ff30
add esp, 0xc
mov dword [ebp - 0x230], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x22c], VariantClear
jmp 0x4688f0
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp + edi*4 - 0x230]
lea edx, [ebp - 0x214]
push edx
push 1
xor esi, esi
push esi
push eax
push ecx
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4689dc
xor eax, eax
cmp ebx, esi
je 0x46892c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x214]
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], ebx
cmp eax, esi
jne 0x4689dc
push 0x206
lea eax, [ebp - 0x20a]
xor edx, edx
push esi
push eax
mov word [ebp - 0x20c], dx
call fcn.0051d250
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x20c]
push edx
push esi
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x21c], 0x104
call fcn.00415320
test eax, eax
jne 0x4689dc
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.00464b60
push esi
push 0x56400c
lea ecx, [ebp - 0x218]
call fcn.0044efa0
mov esi, dword [ebp - 0x218]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x468a26
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4689dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
cmp edi, 2
jb 0x4688f0
mov eax, dword [ebp - 0x210]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468a08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x468a13
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
mov eax, esi
lea edx, [eax + 2]
jmp 0x468a30
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468a30
mov ecx, dword [ebp - 0x220]
sub eax, edx
sar eax, 1
push eax
push esi
call fcn.0044fc50
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468a68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x210]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468a8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x468a9b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0051d23b
mov esp, ebp
pop ebp
ret