Function at 0x40d76e
Capabilities:
Check if file exists

Disassembly:
push 0x2a4
mov eax, 0x41d104
call fcn.0041bcbb
mov esi, dword [ebp + 8]
push ecx
lea esi, [esi + 0x3f4]
call fcn.0040f6a6
mov ebx, eax
xor ecx, ecx
cmp ebx, ecx
jne 0x40d79b
xor eax, eax
jmp 0x40dad3
mov eax, dword [ebx + 0x74]
cmp eax, ecx
jne 0x40d7b2
mov ecx, dword [ebx + 0x78]
xor eax, eax
cmp ecx, dword [ebp + 0xc]
sete al
jmp 0x40dad3
cmp eax, 1
je 0x40d7c4
cmp eax, 2
je 0x40d7c4
xor eax, eax
inc eax
jmp 0x40dad3
mov dword [ebp - 0x2a0], ecx
mov dword [ebp - 0x298], ecx
mov dword [ebp - 0x294], ecx
mov dword [ebp - 0x290], ecx
xor eax, eax
mov dword [ebp - 4], ecx
lea edi, [ebp - 0x2a4]
stosd dword es:[edi], eax
mov eax, dword [ebx + 0x7c]
mov esi, eax
and esi, 8
shl esi, 5
or esi, 0x20019
mov dword [ebp - 0x2b0], esi
test al, 1
je 0x40d80f
mov dword [ebp - 0x2a8], 0x80000002
jmp 0x40d843
test al, 2
je 0x40d81f
mov dword [ebp - 0x2a8], 0x80000000
jmp 0x40d843
test al, 4
je 0x40d839
mov dword [ebp - 0x2a8], 0x80000002
mov dword [ebp - 0x2a4], 0x80000001
jmp 0x40d843
mov dword [ebp - 0x2a8], 0x80000001
cmp dword [ebp - 0x2a8], ecx
je 0x40dacd
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x28c], eax
jmp 0x40d863
mov esi, dword [ebp - 0x2b0]
cmp dword [ebp - 0x2a0], ecx
jne 0x40dab9
mov eax, 0xfde9
push eax
lea ecx, [ebp - 0x250]
lea eax, [ebx + 0x80]
push ecx
call fcn.0040245c
pop ecx
pop ecx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x23c], 8
mov ecx, dword [ebp - 0x250]
jae 0x40d8a2
lea ecx, [ebp - 0x250]
mov eax, dword [ebp - 0x28c]
mov eax, dword [eax]
lea edx, [ebp - 0x29c]
push edx
push esi
xor edi, edi
push edi
push ecx
push eax
mov dword [ebp - 0x29c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40d8f9
xor eax, eax
cmp dword [ebp - 0x298], edi
je 0x40d8dd
push dword [ebp - 0x298]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x29c]
and esi, 0x300
mov dword [ebp - 0x298], ecx
mov dword [ebp - 0x294], esi
cmp eax, edi
je 0x40d905
add dword [ebp - 0x28c], 4
jmp 0x40da96
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.00412060
mov eax, 0xfde9
push eax
lea ecx, [ebp - 0x26c]
lea eax, [ebx + 0x9c]
push ecx
mov dword [ebp - 0x2ac], 0x104
call fcn.0040245c
add esp, 0x14
mov byte [ebp - 4], 2
cmp dword [ebp - 0x258], 8
mov eax, dword [ebp - 0x26c]
jae 0x40d95e
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x298]
push eax
lea esi, [ebp - 0x2ac]
lea edi, [ebp - 0x218]
call fcn.0040e9d7
xor esi, esi
test eax, eax
jne 0x40da60
cmp dword [ebp - 0x2ac], esi
jbe 0x40da60
cmp dword [ebp - 0x29c], esi
je 0x40d9a7
push dword [ebp - 0x29c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x298], esi
mov eax, dword [ebx + 0x74]
xor edi, edi
inc edi
mov dword [ebp - 0x294], esi
cmp eax, edi
jne 0x40d9c2
mov dword [ebp - 0x2a0], edi
jmp 0x40da60
cmp eax, 2
jne 0x40da60
lea eax, [ebp - 0x218]
push eax
lea esi, [ebp - 0x234]
call fcn.00401798
push 0x422558
mov eax, esi
push eax
mov byte [ebp - 4], 3
call fcn.0040cb5e
mov eax, 0xfde9
push eax
lea ecx, [ebp - 0x288]
lea eax, [ebx + 0xb8]
push ecx
call fcn.0040245c
pop ecx
pop ecx
push 0
push eax
or eax, 0xffffffff
mov byte [ebp - 4], 4
call fcn.0040cd30
push edi
xor edi, edi
lea esi, [ebp - 0x288]
call fcn.00401953
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x40da3a
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40da4f
mov dword [ebp - 0x2a0], 1
push 1
xor edi, edi
lea esi, [ebp - 0x234]
call fcn.00401953
xor esi, esi
cmp dword [ebp - 0x298], esi
je 0x40da7a
push dword [ebp - 0x298]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x298], esi
add dword [ebp - 0x28c], 4
mov dword [ebp - 0x294], esi
push 1
xor edi, edi
lea esi, [ebp - 0x26c]
call fcn.00401953
push 1
xor edi, edi
lea esi, [ebp - 0x250]
mov byte [ebp - 4], 0
call fcn.00401953
mov eax, dword [ebp - 0x28c]
xor ecx, ecx
cmp dword [eax], ecx
jne 0x40d85d
cmp dword [ebp - 0x298], ecx
je 0x40dacd
push dword [ebp - 0x298]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2a0]
call fcn.0041bd05
ret 8