Function at 0x414540
Capabilities:
Check if file exists
Query or enumerate registry value
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a1ab
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4611f4]
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
mov ebx, ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402410
push 0xb
push str.Config.ini
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.0040ca60
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 4], 1
jle 0x4145b8
push dword [eax - 0xc]
lea ecx, [ebp - 0x21c]
call fcn.004021a0
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4145dd
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 4], 1
jle 0x4145dd
push dword [eax - 0xc]
lea ecx, [ebp - 0x21c]
call fcn.004021a0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x224]
push eax
push 0x456aa4
push str.SoftwareBaofengBFVKanDianYing
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x220], 0x206
mov dword [ebp - 0x224], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [ebp - 0x218]
lea esi, [ebx + 0x26c]
lea edx, [ecx + 2]
jmp 0x414650
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414650
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00402300
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x41473f
mov edi, dword [ebp - 0x21c]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x4146a0
push 0x104
mov ecx, esi
call fcn.00402270
push edi
push 0x104
push dword [esi]
push 0x451c88
push 0x456aa4
push str.BFVCenter
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
test eax, eax
jne 0x4146c7
xor ecx, ecx
jmp 0x4146dd
push dword [eax - 8]
push eax
call fcn.004336a3
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x41479c
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x41479c
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, dword [esi]
cmp dword [eax - 0xc], edx
jne 0x414701
mov ecx, ebx
call fcn.004148f0
mov edx, dword [esi]
mov ecx, edx
lea edi, [ecx + 2]
jmp 0x414710
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414710
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0x456aa4
push str.SoftwareBaofengBFVKanDianYing
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [ebp - 0x21c]
push dword [esi]
push 0x456aa4
push str.BFVCenter
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41477e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.00431c68
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004022e0
int3