Function at 0x501e20
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x82c
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x828], eax
push ebx
push ebp
mov ebp, dword [esp + 0x838]
xor ebx, ebx
push 0x207
lea eax, [esp + 0x15]
push ebx
push eax
mov byte [esp + 0x1c], bl
call fcn.005dfd60
push 0x5c
push ebp
call fcn.005e2e42
add esp, 0x14
test eax, eax
jne 0x50224c
mov eax, dword [0x74bcc8]
push esi
push edi
cmp eax, ebx
jne 0x501e8b
push 0x74bcc8
call fcn.00501b60
mov eax, dword [0x74bcc8]
add esp, 4
cmp eax, ebx
je 0x501f49
mov edi, eax
cmp eax, ebx
je 0x501f49
mov esi, dword [edi]
push 0x208
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.005e2f3c
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x501eb0
sub eax, edx
cmp eax, 0x208
jb 0x501ec7
mov byte [esp + 0x21f], bl
cmp byte [esp + 0x18], bl
je 0x501ef3
lea eax, [esp + 0x18]
inc eax
cmp byte [eax], bl
jne 0x501ed1
lea edx, [esp + 0x18]
sub eax, edx
je 0x501ef3
cmp byte [esp + eax + 0x17], 0x5c
je 0x501ef3
push 0x66da34
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x501f00
sub eax, edx
cmp eax, 0x208
jge 0x501f25
mov edx, ebp
mov cl, byte [edx]
cmp cl, bl
je 0x501f25
mov byte [esp + eax + 0x18], cl
inc eax
inc edx
cmp eax, 0x208
jl 0x501f12
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + eax + 0x1c], bl
call fcn.005072a0
add esp, 4
test eax, eax
jne 0x50203f
mov edi, dword [edi + 0x18]
cmp edi, ebx
jne 0x501e95
push 0x103
lea edx, [esp + 0x225]
push ebx
push edx
mov byte [esp + 0x22c], bl
call fcn.005dfd60
push 0x40f
lea eax, [esp + 0x439]
push ebx
push eax
mov byte [esp + 0x440], bl
call fcn.005dfd60
push ebp
lea ecx, [esp + 0x23c]
push 0x640bbc
push ecx
mov dword [esp + 0x38], 0x410
call fcn.005dfb23
add esp, 0x24
lea edx, [esp + 0x10]
push edx
push 1
push ebx
lea eax, [esp + 0x22c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x50205f
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x42c]
push edx
push ebx
push ebx
push ebx
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call edi
cmp byte [esp + 0x428], bl
je 0x50200a
push ebx
push 1
lea edx, [esp + 0x430]
push edx
call fcn.005127a0
lea eax, [esp + 0x428]
push eax
call fcn.005072a0
add esp, 4
test eax, eax
je 0x50205f
lea eax, [esp + 0x428]
mov edx, ebp
mov ecx, eax
sub edx, ecx
jmp 0x502030
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x502030
jmp 0x50224a
lea eax, [esp + 0x18]
mov edx, ebp
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x502050
jmp 0x50224a
call fcn.004d96c0
test eax, eax
je 0x5020f4
lea edx, [esp + 0x10]
push edx
push 0x20119
push ebx
lea eax, [esp + 0x22c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004fadc0
test eax, eax
jne 0x5020f4
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x42c]
push edx
push ebx
push ebx
push ebx
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call edi
cmp byte [esp + 0x428], bl
je 0x5020c4
push ebx
push 1
lea edx, [esp + 0x430]
push edx
call fcn.005127a0
lea eax, [esp + 0x428]
push eax
call fcn.005072a0
add esp, 4
test eax, eax
je 0x5020f4
lea eax, [esp + 0x428]
mov edx, ebp
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x5020e5
jmp 0x50224a
push 0x103
lea edx, [esp + 0x329]
push ebx
push edx
mov byte [esp + 0x330], bl
call fcn.005dfd60
push 0x103
lea eax, [esp + 0x231]
push ebx
push eax
mov byte [esp + 0x238], bl
call fcn.005dfd60
lea ecx, [esp + 0x33c]
push 0x104
push ecx
call fcn.004ebf90
lea edx, [esp + 0x344]
push edx
call fcn.004e2520
add esp, 0x24
push 0x104
lea eax, [esp + 0x224]
push eax
mov byte [esp + 0x228], bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x220]
push ecx
call fcn.004e2520
push 0x208
lea edx, [esp + 0x32c]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.005e2f3c
lea eax, [esp + 0x334]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x502195
sub eax, edx
cmp eax, 0x208
jb 0x5021ac
mov byte [esp + 0x21f], bl
lea ecx, [esp + 0x18]
push ecx
call fcn.004e24e0
push 0x208
lea edx, [esp + 0x20]
push ebp
push edx
call fcn.004d9130
lea eax, [esp + 0x28]
push eax
call fcn.005072a0
add esp, 0x14
test eax, eax
jne 0x50222f
push 0x208
lea ecx, [esp + 0x224]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.004d90f0
lea eax, [esp + 0x24]
push eax
call fcn.004e24e0
push 0x208
lea ecx, [esp + 0x2c]
push ebp
push ecx
call fcn.004d9130
lea edx, [esp + 0x34]
push edx
call fcn.005072a0
add esp, 0x20
test eax, eax
je 0x50224a
lea eax, [esp + 0x18]
mov edx, ebp
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x502223
jmp 0x50224a
lea eax, [esp + 0x18]
mov edx, ebp
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x502240
pop edi
pop esi
mov ecx, dword [esp + 0x830]
pop ebp
pop ebx
xor ecx, esp
call fcn.005dfbbe
add esp, 0x82c
ret