Function at 0x4025da
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp + 8]
push 0x3e8
push dword [eax + 4]
call dword [0x41739c]
lea edi, [ebp - 0x218]
lea esi, [ebp - 4]
call fcn.00403083
mov eax, esi
call fcn.004031af
mov ebx, esi
call fcn.0040316d
mov edi, dword [ebp - 4]
mov eax, dword [edi - 0xc]
test eax, eax
jne 0x402681
mov esi, dword [ebp + 8]
push 0x30
push ecx
mov eax, esp
mov dword [eax], 0x80
push ecx
mov eax, esp
mov dword [eax], 0x419638
push dword [esi + 4]
call fcn.00404861
lea eax, [ebp + 8]
push eax
call fcn.004024a0
add esp, 0x14
push dword [eax]
push 0x3e8
push dword [esi + 4]
call dword [0x4173b0]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00404aac
lea eax, [edi - 0x10]
call fcn.00404aac
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 4
mov ebx, dword [ebp + 8]
mov esi, dword [0x417398]
and dword [ebp - 8], 0
push 0x3ea
push dword [ebx + 4]
call esi
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x4026a2
mov dword [ebp - 8], ecx
push 0x3eb
push dword [ebx + 4]
call esi
cmp eax, 1
jne 0x4026b5
or dword [ebp - 8], 2
push 0x3ec
push dword [ebx + 4]
call esi
cmp eax, 1
jne 0x4026c8
or dword [ebp - 8], 4
cmp dword [ebp - 8], 0
jne 0x4026ef
push 0x30
push ecx
mov eax, esp
mov dword [eax], 0x80
push ecx
mov eax, esp
mov dword [eax], 0x419668
push dword [ebx + 4]
call fcn.00404861
add esp, 0x10
jmp 0x40266f
mov eax, dword [0x41dddc]
mov esi, 0x41dddc
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push 0x418ee8
push eax
call fcn.0040389f
add esp, 0xc
push 0x41e9d0
push dword [ebp - 0xc]
push str.DefHives
push str.Settings
call dword [0x417220]
mov eax, dword [0x41dddc]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push ecx
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x10], esp
call fcn.004037c8
mov ecx, esp
add eax, 0x10
push 0x41ec38
mov dword [ecx], eax
call fcn.004088d3
test eax, eax
jne 0x4027a3
push 0x30
push ecx
mov eax, esp
mov dword [eax], 0x80
push ecx
mov eax, esp
mov dword [eax], 0x419638
push dword [ebx + 4]
call fcn.00404861
mov eax, dword [ebp + 8]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00404aac
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00404aac
mov eax, edi
jmp 0x402672
lea eax, [ebp + 8]
lea edi, [ebp - 4]
call fcn.004030b7
push dword [ebp - 4]
push 0x3e8
push dword [ebx + 4]
call dword [0x4173b0]
push dword [ebp - 4]
call dword [0x417284]
test eax, eax
jne 0x40284b
mov eax, dword [0x41dddc]
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp - 4]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 0x4196c0
push eax
call fcn.0040389f
mov esi, dword [ebp - 0x10]
add esp, 0xc
push 0x24
push ecx
mov eax, esp
mov dword [eax], 0x80
push ecx
mov eax, esp
mov dword [eax], esi
push dword [ebx + 4]
call fcn.00404861
add esp, 0x10
cmp eax, 7
lea eax, [esi - 0x10]
jne 0x402846
call fcn.00404aac
or esi, 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00404aac
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00404aac
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404aac
mov eax, esi
jmp 0x40267a
call fcn.00404aac
lea eax, [ebp - 4]
mov edi, 0x41ecf4
call fcn.004030b7
mov eax, dword [ebp - 8]
mov dword [0x41ed0c], eax
xor esi, esi
jmp 0x40281e