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

Disassembly:
sub esp, 0x478
mov eax, dword [0x4832f0]
xor eax, esp
mov dword [esp + 0x474], eax
push ebx
push ebp
mov ebp, dword [esp + 0x484]
push esi
push edi
mov ecx, 5
mov esi, 0x4757d0
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0x48]
movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
xor ebx, ebx
jmp 0x41c8e0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41c8e0
lea ecx, [esp + 0x48]
sub eax, edx
push ecx
mov edx, 0x2aeb
call fcn.0041d880
push 0x103
lea edx, [esp + 0x69]
push ebx
push edx
mov byte [esp + 0x70], bl
call fcn.0044e9d0
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
add esp, 0x10
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x64]
push ecx
push ebx
push ebx
lea edx, [esp + 0x58]
push edx
mov edi, 0x104
push ebp
mov dword [esp + 0x2c], edi
call esi
test eax, eax
je 0x41c93d
xor eax, eax
jmp 0x41cb0b
mov eax, dword [0x4757e8]
mov ecx, dword [0x4757ec]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41c957
sub eax, edx
lea edx, [esp + 0x18]
push edx
mov edx, 0x2aeb
call fcn.0041d880
push 0x103
lea eax, [esp + 0x171]
push ebx
push eax
mov byte [esp + 0x178], bl
call fcn.0044e9d0
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x16c]
push edx
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x58]
push ecx
push ebp
mov dword [esp + 0x2c], edi
call esi
test eax, eax
jne 0x41cb06
mov eax, dword [0x4757f4]
mov edx, dword [0x4757f0]
mov ecx, dword [0x4757f8]
mov dword [esp + 0x24], eax
mov ax, word [0x475800]
mov dword [esp + 0x20], edx
mov edx, dword [0x4757fc]
mov word [esp + 0x30], ax
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41c9f0
lea ecx, [esp + 0x20]
sub eax, edx
push ecx
mov edx, 0x2aeb
call fcn.0041d880
push 0x103
lea edx, [esp + 0x279]
push ebx
push edx
mov byte [esp + 0x280], bl
call fcn.0044e9d0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x74]
push ecx
mov ecx, edi
push 0x475804
lea edi, [esp + 0x28c]
call fcn.00408e10
add esp, 0x1c
test eax, eax
jl 0x41cb06
mov eax, dword [0x475810]
mov edx, dword [0x47580c]
mov ecx, dword [0x475814]
mov dword [esp + 0x38], eax
mov ax, word [0x47581c]
mov dword [esp + 0x34], edx
mov edx, dword [0x475818]
mov word [esp + 0x44], ax
lea eax, [esp + 0x34]
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41ca83
lea ecx, [esp + 0x34]
sub eax, edx
push ecx
mov edx, 0x2aeb
call fcn.0041d880
push 0x103
lea edx, [esp + 0x381]
push ebx
push edx
mov byte [esp + 0x388], bl
call fcn.0044e9d0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x17c]
push ecx
lea edx, [esp + 0x78]
push edx
push 0x475820
mov ecx, 0x104
lea edi, [esp + 0x398]
call fcn.00408e10
add esp, 0x20
test eax, eax
jl 0x41cb06
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [esp + 0x270]
push eax
call esi
test eax, eax
je 0x41cb06
mov ecx, edi
push ecx
call esi
test eax, eax
mov eax, 2
jne 0x41cb0b
mov eax, 1
mov ecx, dword [esp + 0x484]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044b6ee
add esp, 0x478
ret