Function at 0x46b680
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x31c]
sub esp, 0x39c
mov eax, dword [0x4b1120]
xor eax, ebp
mov dword [ebp + 0x318], eax
cmp dword [ebp + 0x330], 0
push ebx
mov ebx, dword [ebp + 0x328]
push esi
mov esi, dword [ebp + 0x324]
push edi
mov edi, dword [ebp + 0x32c]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], edi
je 0x46b6cd
push esi
push str._WriteAPSerial__d
call fcn.00469110
add esp, 8
mov dword [ebp - 0x6c], 0xffffffec
test edi, edi
je 0x46b6de
mov dword [edi], 0
call fcn.0046fca0
test eax, eax
je 0x46b922
test ebx, ebx
je 0x46b91b
cmp word [ebx], 0
je 0x46b91b
mov eax, dword [ebp + 0x330]
push eax
push ebx
push esi
call fcn.00469a20
lea ecx, [ebp + 0x198]
push ecx
push str.VPh_sCF
push esi
xor edi, edi
call fcn.0046ad00
add esp, 0x18
test eax, eax
jne 0x46b72b
mov edi, 1
mov dword [ebp - 0x6c], eax
test edi, edi
je 0x46b922
lea edx, [ebp + 0x198]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0044a220
mov eax, esp
push esi
lea ecx, [ebp + 0x198]
push ecx
push eax
call fcn.0040a2d0
push eax
push 0x4a2220
push str.SOFTWAREClassesCLSID_
lea edx, [ebp - 0x68]
push 0x4a2c18
push edx
call fcn.00447b9e
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x70]
push ecx
push 0x20006
push 0
lea edx, [ebp - 0x68]
push edx
push closesocket
call fcn.00470220
add esp, 0x2c
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x46b8fe
cmp dword [ebp + 0x330], eax
je 0x46b7bc
push eax
lea eax, [ebp - 0x68]
push eax
push str._WriteAPSerial____CreateAllRegKeys_HKEY_LOCAL_MACHINE____s__...______dwError___ld
call fcn.00469110
add esp, 0xc
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46b7c1
sub eax, edx
sar eax, 1
inc eax
push eax
mov dword [ebp - 0x7c], eax
call fcn.004710a0
mov ebx, eax
lea eax, [ebx + 8]
add esp, 4
cmp eax, 0x400
ja 0x46b803
call fcn.0044a220
mov edi, esp
test edi, edi
je 0x46b8e2
mov dword [edi], 0xcccc
add edi, 8
jmp 0x46b81b
push eax
call fcn.00448217
add esp, 4
test eax, eax
je 0x46b819
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
test edi, edi
je 0x46b8e2
mov eax, dword [ebp - 0x78]
lea edx, [ebp + 0x298]
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x46b830
lea ecx, [ebp + 0x298]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
call fcn.0044a220
mov eax, esp
push esi
lea edx, [ebp + 0x298]
push edx
push eax
call fcn.00416bf0
mov esi, eax
mov eax, dword [ebp - 0x7c]
push eax
push ebx
push 0
push edi
call fcn.00447660
add esp, 0xc
push eax
push esi
call fcn.00471440
mov esi, eax
add esp, 0xc
test esi, esi
jbe 0x46b8e9
mov ecx, dword [ebp - 0x70]
push ebx
push edi
push 1
push 0
push str.GlobalS
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x6c], ebx
test eax, eax
je 0x46b8ac
mov dword [eax], esi
cmp dword [ebp + 0x330], 0
je 0x46b8e9
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0044a220
mov eax, esp
push esi
push edi
push eax
call fcn.0040a2d0
push ebx
push eax
push str._WriteAPSerial____RegSetValueEx_hSubKey___GlobalS_____s_...______dwError___d
call fcn.00469110
add esp, 0xc
jmp 0x46b8e9
mov dword [ebp - 0x6c], 8
push edi
call fcn.0042ef80
mov edx, dword [ebp - 0x70]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46b922
cmp dword [ebp + 0x330], 0
je 0x46b943
push eax
lea eax, [ebp - 0x68]
push eax
push str._WriteAPSerial____CreateAllRegKeys_HKEY_LOCAL_MACHINE____s__...______dwError___ld
call fcn.00469110
add esp, 0xc
jmp 0x46b922
mov dword [ebp - 0x6c], 0x57
cmp dword [ebp + 0x330], 0
je 0x46b940
mov esi, dword [ebp - 0x6c]
push esi
push str._WriteAPSerial__fin___dwError___ld
call fcn.00469110
add esp, 8
mov eax, esi
jmp 0x46b943
mov eax, dword [ebp - 0x6c]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x318]
xor ecx, ebp
call fcn.00447645
add ebp, 0x31c
mov esp, ebp
pop ebp
ret