Function at 0x4157a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4ed018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0x32
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x38]
push 0
push eax
mov dword [ebp - 0x44], ecx
call fcn.00411960
mov eax, dword [ebp - 0x40]
add esp, 0xc
test esi, esi
je 0x4159f4
test edi, edi
je 0x4159f4
test ebx, ebx
je 0x4159f4
test eax, eax
je 0x4159f4
lea eax, [ebp - 0x3c]
push eax
push 1
push 0
push 0x49f010
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x415870
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [ebp - 0x48]
push ecx
cmp eax, 2
jne 0x41584d
push 0x49f068
push 4
call fcn.00446b80
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push eax
push 0x49f09c
push 1
call fcn.00446b80
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4158bb
push eax
push esi
push 0x49f0d4
lea eax, [ebp - 0x38]
push 0x32
push eax
call fcn.00457af0
add esp, 0x14
test eax, eax
jns 0x4158bb
push 0x49f0dc
push 1
call fcn.00446b80
add esp, 8
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x44], 0
lea ecx, [ebp - 0x4c]
push ecx
push 1
lea eax, [ebp - 0x38]
cmove eax, esi
push 0
push eax
push dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
call fcn.0045d1e0
add esp, 0x14
mov dword [ebp - 0x48], eax
test eax, eax
je 0x415945
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x3c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
push esi
cmp eax, 2
jne 0x415922
push 0x49f108
push 4
call fcn.00446b80
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push eax
push 0x49f148
push 1
call fcn.00446b80
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x40]
lea eax, [ebp - 0x50]
push ebx
push eax
push 0
push edi
push dword [ebp - 0x4c]
call fcn.0045d220
add esp, 0x18
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4159bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [ebp - 0x48]
push edi
cmp eax, 2
jne 0x415985
push esi
push 0x49f184
push 4
call fcn.00446b80
add esp, 0x10
jmp 0x415997
push ecx
push eax
push esi
push 0x49f1b0
push 1
call fcn.00446b80
add esp, 0x18
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push ebx
push 0x49f1ec
push 0x10
call fcn.00446b80
add esp, 0xc
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push eax
push ebx
push edi
push esi
push 0x49efd4
push 1
call fcn.00446b80
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00401bd5
mov esp, ebp
pop ebp
ret