Function at 0x4019d0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x328
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx]
push edi
test eax, eax
mov dword [esp + 0x18], edx
je 0x401bd9
mov ecx, dword [ebx + 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
xor esi, esi
push eax
push 0x20019
push esi
push ecx
push 0x80000001
mov dword [esp + 0x28], 0x105
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401a8c
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push ecx
push esi
push edx
push eax
call ebp
test eax, eax
jne 0x401a79
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x401a65
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x401a5e
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x401a74
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x401a79
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x401a79
mov esi, 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401b1e
mov eax, dword [ebx + 4]
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
push eax
push 0x80000002
call edi
test eax, eax
jne 0x401d36
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
push eax
push 0
push ecx
push edx
call ebp
test eax, eax
jne 0x401b0b
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x401af7
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x401af0
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x401b06
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x401b0b
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x401b0b
mov esi, 1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x401d36
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x230]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x128]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx + 0xc]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x401ca7
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea ecx, [esp + 0x230]
push ecx
call ebp
mov edi, dword [ebx + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x230]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x128]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov edi, dword [ebx + 0x14]
lea edx, [esp + 0x128]
test edi, edi
jne 0x401c82
jmp 0x401c7f
mov edx, dword [ebx + 0x10]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x230]
mov eax, ecx
mov esi, edi
mov edi, ebp
lea ebp, [esp + 0x128]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x230]
mov edx, ecx
mov esi, edi
mov edi, ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
mov edi, dword [ebx + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x230]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x128]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov edi, dword [ebx + 0x14]
lea edx, [esp + 0x128]
test edi, edi
jne 0x401c82
mov edi, dword [ebx + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [esp + 0x128]
push eax
call esi
test eax, eax
je 0x401d36
lea ecx, [esp + 0x230]
push ecx
call esi
test eax, eax
je 0x401d36
mov edx, dword [esp + 0x18]
test edx, edx
je 0x401cf5
lea edi, [esp + 0x230]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x33c]
test edx, edx
je 0x401d24
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x328
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x328
ret 4