Function at 0x414fd0
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x449b0c
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x4611f4]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push esi
push edi
mov eax, dword [0x4611f4]
xor eax, esp
push eax
lea eax, [esp + 0x648]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x451c88
lea ecx, [esp + 0x18]
call fcn.00402410
xor eax, eax
mov dword [esp + 0x650], 0
xorps xmm0, xmm0
or edi, 0xffffffff
push 0x206
movlpd qword [esp + 0x20], xmm0
push eax
cmp dword [esi + 0x28], eax
je 0x41515a
mov word [esp + 0x43c], ax
lea eax, [esp + 0x43e]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x438]
push eax
lea eax, [esp + 0x20]
push eax
push 0x451c88
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsBFVKanDianYing.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0x206
mov dword [esp + 0x30], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4151de
lea eax, [esp + 0x434]
push eax
lea ecx, [esp + 0x14]
call fcn.00402410
mov byte [esp + 0x650], 1
push 0x5c
push dword [esp + 0x14]
call fcn.00432fb2
add esp, 8
test eax, eax
jne 0x4150d1
or eax, edi
jmp 0x4150d7
sub eax, dword [esp + 0x10]
sar eax, 1
inc eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.004027b0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x654], 2
call fcn.00401a10
mov byte [esp + 0x650], 1
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41511e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call fcn.00401a10
mov byte [esp + 0x650], 0
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4151de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4151de
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2e]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
push eax
push 0x451c88
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsStormPlayer.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], 0x206
mov dword [esp + 0x28], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4151de
push str.....BFVKanDianYing_
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 0x24]
lea edx, [ecx + 2]
jmp 0x4151c0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4151c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402300
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x41528d
xor eax, eax
push 0x206
push eax
mov word [esp + 0x234], ax
lea eax, [esp + 0x236]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [esp + 0x22c]
push 1
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x22c]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415230
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402300
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004153e0
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41527d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x17
push 0x4552ac
lea ecx, [esp + 0x1c]
call fcn.0040ca60
lea ecx, [esp + 0x14]
call fcn.0040ce30
mov ecx, eax
call fcn.0040ceb0
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.00401e50
add eax, 0x10
mov dword [esi], eax
call fcn.00415710
test eax, eax
je 0x41536e
cmp dword [esp + 0x20], 0
ja 0x4153be
jb 0x4152db
cmp dword [esp + 0x1c], 0x32
jae 0x4153be
push 0x451c88
lea ecx, [esp + 0x14]
call fcn.00402410
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x654], 3
call fcn.00415460
test eax, eax
je 0x415349
push 0x4552ac
lea ecx, [esp + 0x14]
call fcn.0040ca10
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
call fcn.00401a10
mov byte [esp + 0x650], 0
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4153ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x415370
mov byte [esp + 0x650], 0
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41536e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov dword [esp + 0x650], 0xffffffff
mov ebx, dword [esp + 0x14]
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x415396
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [esp + 0x648]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.00431c68
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.00401a10
mov esi, 1
jmp 0x415370