Function at 0x46ae80
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x314]
sub esp, 0x394
mov eax, dword [0x4b1120]
xor eax, ebp
mov dword [ebp + 0x310], eax
push ebx
mov ebx, dword [ebp + 0x320]
push esi
mov esi, dword [ebp + 0x31c]
lea edx, [ebp + 0x190]
push edi
mov dword [ebp - 0x78], esi
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x46aeb7
cmp dword [ebp + 0x324], 0
mov dword [ebp - 0x74], 0
je 0x46af2b
test ebx, ebx
je 0x46af0c
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0044a220
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
xor ecx, ecx
lea edx, [ebp + 0x190]
push edx
push ecx
push ecx
mov word [edi], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp - 0x78]
jmp 0x46af11
mov edi, str.NULL
mov eax, esi
test esi, esi
jne 0x46af1c
mov eax, str.NULL
push edi
push eax
push str._WriteAPKeyName__d
call fcn.00469110
add esp, 0xc
test ebx, ebx
je 0x46b22f
lea eax, [ebp + 0x190]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46af40
sub eax, edx
cmp eax, 0x26
je 0x46afa7
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp + 0x190]
push ecx
call fcn.0046fbf0
add esp, 8
cmp dword [ebp + 0x324], 0
je 0x46afa7
lea edx, [ebp + 0x190]
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 + 0x190]
push ecx
push eax
call fcn.0040a2d0
mov edx, dword [ebp - 0x74]
push edx
push eax
push str._WriteAPKeyName____Cr
call fcn.00469110
mov esi, dword [ebp - 0x78]
add esp, 0xc
cmp dword [ebp - 0x74], 0
jne 0x46b236
push 0x180
call fcn.004710a0
add eax, 8
add esp, 4
cmp eax, 0x400
ja 0x46afe3
call fcn.0044a220
mov eax, esp
test eax, eax
je 0x46afdc
mov dword [eax], 0xcccc
add eax, 8
mov ebx, eax
mov dword [ebp - 0x78], ebx
jmp 0x46affe
push eax
call fcn.00448217
add esp, 4
test eax, eax
je 0x46aff9
mov dword [eax], 0xdddd
add eax, 8
mov dword [ebp - 0x78], eax
mov ebx, eax
test ebx, ebx
je 0x46b226
push ebx
push 0
push esi
call fcn.0046ad00
add esp, 0xc
mov dword [ebp - 0x74], eax
test eax, eax
jne 0x46b20f
push ebx
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 ebx
push eax
call fcn.0040a2d0
xor ecx, ecx
jmp 0x46b040
movzx edx, word [ecx + str.SOFTWAREClassesCLSID_]
mov word [ebp + ecx - 0x70], dx
add ecx, 2
test dx, dx
jne 0x46b040
lea edi, [ebp - 0x70]
add edi, 0xfffffffe
lea edx, [edi + 2]
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x46b060
mov ecx, 0x13
mov esi, 0x4a2220
rep movsd dword es:[edi], dword [esi]
add edx, 0xfffffffe
movsw word es:[edi], word [esi]
mov edi, edx
lea ecx, [edi + 2]
mov dx, word [edi + 2]
add edi, 2
test dx, dx
jne 0x46b082
mov edx, dword [0x4a221c]
mov dword [edi], edx
mov esi, eax
jmp 0x46b0a0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x46b0a0
sub eax, esi
add ecx, 0xfffffffe
mov edi, ecx
lea edx, [edi + 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x46b0b5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x80]
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x7c]
push ecx
push 0x20006
push 0
push edx
push closesocket
call fcn.00470220
add esp, 0x18
mov dword [ebp - 0x74], eax
test eax, eax
jne 0x46b20f
cmp dword [ebp + 0x324], eax
je 0x46b110
lea edx, [ebp - 0x70]
push edx
push 0x4a21a0
call fcn.00469110
add esp, 8
lea eax, [ebp + 0x190]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46b120
sub eax, edx
mov ebx, eax
push ebx
call fcn.004710a0
mov esi, eax
lea eax, [esi + 8]
add esp, 4
cmp eax, 0x400
ja 0x46b15a
call fcn.0044a220
mov edi, esp
test edi, edi
je 0x46b1f2
mov dword [edi], 0xcccc
add edi, 8
jmp 0x46b172
push eax
call fcn.00448217
add esp, 4
test eax, eax
je 0x46b170
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
test edi, edi
je 0x46b1f2
inc ebx
push ebx
push esi
push 0
push edi
call fcn.00447660
add esp, 0xc
push eax
lea eax, [ebp + 0x190]
push eax
call fcn.00471440
add esp, 0xc
test eax, eax
jbe 0x46b1e9
mov ecx, dword [ebp - 0x7c]
push esi
push edi
push 1
push 0
push str.Data
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp + 0x324], 0
mov dword [ebp - 0x74], eax
je 0x46b1f9
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
mov edx, dword [ebp - 0x74]
push edx
push eax
push 0x4a20a8
call fcn.00469110
add esp, 0xc
jmp 0x46b1f9
mov dword [ebp - 0x74], 0xffffffee
jmp 0x46b1f9
mov dword [ebp - 0x74], 8
push edi
call fcn.0042ef80
mov eax, dword [ebp - 0x7c]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x78]
cmp dword [ebx - 8], 0xdddd
lea eax, [ebx - 8]
jne 0x46b236
push eax
call fcn.004482e1
add esp, 4
jmp 0x46b236
mov dword [ebp - 0x74], 8
jmp 0x46b236
mov dword [ebp - 0x74], 0xfffffffa
cmp dword [ebp + 0x324], 0
je 0x46b250
mov ecx, dword [ebp - 0x74]
push ecx
push str._WriteAPKeyName__fin___dwError___d
call fcn.00469110
add esp, 8
mov eax, dword [ebp - 0x74]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x310]
xor ecx, ebp
call fcn.00447645
add ebp, 0x314
mov esp, ebp
pop ebp
ret