Function at 0x472720
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ae9b
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x5522c0]
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 eax, 0x104
mov dword [ebp - 0x638], eax
mov dword [ebp - 0x640], eax
lea eax, [ebp - 0x62c]
push eax
mov ecx, 0x51d5f0
call fcn.00459600
lea ecx, [ebp - 0x630]
push ecx
push 0
push SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x4727c2
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x62c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4727b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004005
jmp 0x47298e
mov edx, dword [ebp - 0x630]
lea ecx, [ebp - 0x634]
push ecx
push 0x20019
push 0
push str.htmlfile_shellopencommand
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x472805
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x62c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4727ac
lea ecx, [ebp - 0x640]
push ecx
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x644]
push eax
mov eax, dword [ebp - 0x634]
push 0
lea ecx, [ebp - 0x638]
push ecx
lea edx, [ebp - 0x628]
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp word [ebp - 0x216], 0x22
lea ebx, [ebp - 0x216]
je 0x4728d3
lea ecx, [ecx]
mov ecx, dword [ebp - 0x62c]
mov edi, dword [ecx - 0xc]
movzx eax, word [ebx]
lea esi, [edi + 1]
mov dword [ebp - 0x63c], eax
test esi, esi
js 0x4729aa
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x4728a1
mov eax, esi
lea ecx, [ebp - 0x62c]
call fcn.00459760
mov ecx, dword [ebp - 0x62c]
mov dx, word [ebp - 0x63c]
mov word [ecx + edi*2], dx
mov eax, dword [ebp - 0x62c]
cmp esi, dword [eax - 8]
jg 0x4729aa
mov dword [eax - 0xc], esi
mov ecx, dword [ebp - 0x62c]
xor eax, eax
add ebx, 2
mov word [ecx + esi*2], ax
cmp word [ebx], 0x22
jne 0x472860
push 1
push 0x51d5f0
lea ebx, [ebp - 0x62c]
call fcn.0045b450
mov eax, dword [ebp - 0x62c]
cmp dword [eax - 4], 1
jle 0x472903
mov edx, dword [eax - 0xc]
push edx
mov eax, ebx
push eax
call fcn.004596a0
mov eax, dword [ebp - 0x62c]
push 1
push 0
push str.http:__www.baofeng.com_permit.html
push eax
push 0x51d0ac
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x62c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004e73a6
add esp, 8
test eax, eax
js 0x4729aa
mov ecx, dword [ebp - 0x62c]
cmp eax, dword [ecx - 8]
jg 0x4729aa
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x62c]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp - 0x634]
push eax
call esi
mov ecx, dword [ebp - 0x630]
push ecx
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x62c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47298c
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.004e4900
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0045a490
int3