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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba42c
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x4f52c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.0049dad0
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0xc
lea edx, [ebp - 0x434]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x430]
push ecx
push str.Start_Page
push 0x4cadc0
mov edi, 0x102
mov ebx, 1
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x430], ebx
call esi
lea edx, [ebp - 0x42c]
push edx
lea ecx, [ebp - 0x218]
call fcn.00401d40
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 4], 0
call fcn.0049dad0
add esp, 0xc
lea ecx, [ebp - 0x43c]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x438]
push eax
push str.Start_Page
push 0x4cadc0
push SysReAllocStringLen
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x438], ebx
call esi
lea ecx, [ebp - 0x424]
push ecx
lea ecx, [ebp - 0x218]
call fcn.00401d40
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x424]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4201ef
push 0x80004005
call fcn.00402be0
mov edx, dword [ebp - 0x42c]
push ecx
push edx
call fcn.0049ae11
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x424]
jne 0x42039f
cmp dword [eax - 0xc], 0
je 0x42039f
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41e]
push ecx
mov word [ebp - 0x420], ax
call fcn.0049dad0
add esp, 0xc
lea edx, [ebp - 0x420]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x420]
call fcn.00401d40
push 0x14
push str.BaoFengStartPage.xml
lea ebx, [ebp - 0x428]
mov byte [ebp - 4], 2
call fcn.00406d60
mov eax, dword [0x4fb394]
mov esi, dword [ebp - 0x428]
push str.RESOURCE_DATA
push 0x93
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
cmp eax, ebx
je 0x4202a2
push esi
mov ecx, edi
call fcn.00401270
add esp, 4
cmp al, bl
jne 0x4202d6
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4202c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x424]
jmp 0x4203a3
mov eax, dword [ebp - 0x428]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x430], esp
mov esi, esp
call fcn.00404350
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x424]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x434], esp
mov esi, esp
call fcn.00404350
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
call fcn.00420410
or edx, 0xffffffff
mov byte [ebp - 4], 1
cmp eax, ebx
mov eax, dword [ebp - 0x428]
jne 0x420331
add eax, 0xfffffff0
jmp 0x4202b2
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42034a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42036f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420398
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4203ea
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4203bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4203e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049908b
mov esp, ebp
pop ebp
ret