Function at 0x48c510
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x314]
sub esp, 0x394
mov eax, dword [0x4cd724]
xor eax, ebp
mov dword [ebp + 0x310], eax
push ebx
push esi
mov esi, dword [ebp + 0x320]
lea edx, [ebp + 0x190]
push edi
mov edi, dword [ebp + 0x31c]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x48c544
mov dword [ebp - 0x74], 0
test esi, esi
je 0x48c7e0
lea eax, [ebp + 0x190]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48c566
sub eax, edx
cmp eax, 0x26
je 0x48c592
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp + 0x190]
push ecx
call fcn.00490200
mov eax, dword [ebp - 0x74]
add esp, 8
test eax, eax
jne 0x48c7e5
push 0x180
call fcn.00495200
add eax, 8
add esp, 4
cmp eax, 0x400
ja 0x48c5c4
call fcn.0046d420
mov eax, esp
test eax, eax
je 0x48c5bd
mov dword [eax], 0xcccc
add eax, 8
mov ebx, eax
mov dword [ebp - 0x78], ebx
jmp 0x48c5df
push eax
call fcn.004683d7
add esp, 4
test eax, eax
je 0x48c5da
mov dword [eax], 0xdddd
add eax, 8
mov dword [ebp - 0x78], eax
mov ebx, eax
test ebx, ebx
je 0x48c7d9
push ebx
push 0
push edi
call fcn.0048c340
add esp, 0xc
mov dword [ebp - 0x74], eax
test eax, eax
jne 0x48c7bf
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x48c614
xor eax, eax
jmp 0x48c628
lea eax, [esi + esi]
call fcn.0046d420
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.0041f5f0
xor ecx, ecx
lea ebx, [ebx]
movzx edx, word [ecx + str.SOFTWAREClassesCLSID_]
mov word [ebp + ecx - 0x70], dx
add ecx, 2
test dx, dx
jne 0x48c630
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 0x48c650
mov ecx, 0x13
mov esi, str.090746F9_9F39_42C0_920A_4852C2EDE704
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 0x48c672
mov edx, dword [0x4c46a8]
mov dword [edi], edx
mov esi, eax
jmp 0x48c690
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x48c690
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 0x48c6a5
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.00490810
add esp, 0x18
mov dword [ebp - 0x74], eax
test eax, eax
jne 0x48c7bf
push eax
push str.090746F9_9F39_42C0_920A_4852C2EDE704
push closesocket
push str.WriteAPKeyName
call fcn.0048e3d0
lea eax, [ebp + 0x190]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48c708
sub eax, edx
mov ebx, eax
push ebx
call fcn.00495200
mov edi, eax
lea eax, [edi + 8]
add esp, 4
cmp eax, 0x400
ja 0x48c73e
call fcn.0046d420
mov esi, esp
test esi, esi
je 0x48c79f
mov dword [esi], 0xcccc
add esi, 8
jmp 0x48c756
push eax
call fcn.004683d7
add esp, 4
test eax, eax
je 0x48c754
mov dword [eax], 0xdddd
add eax, 8
mov esi, eax
test esi, esi
je 0x48c79f
inc ebx
push ebx
push edi
push 0
push esi
call fcn.004677c0
add esp, 0xc
push eax
lea edx, [ebp + 0x190]
push edx
call fcn.004955a0
add esp, 0xc
test eax, eax
jbe 0x48c796
mov eax, dword [ebp - 0x7c]
push edi
push esi
push 1
push 0
push str.Data
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x74], eax
jmp 0x48c7a6
mov dword [ebp - 0x74], 0xffffffee
jmp 0x48c7a6
mov dword [ebp - 0x74], 8
push esi
call fcn.0041a6d0
mov ecx, dword [ebp - 0x7c]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x78]
cmp dword [ebx - 8], 0xdddd
lea ecx, [ebx - 8]
jne 0x48c7e5
push ecx
call fcn.004684a1
mov eax, dword [ebp - 0x74]
add esp, 4
jmp 0x48c7e5
mov eax, 8
jmp 0x48c7e5
mov eax, 0xfffffffa
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x310]
xor ecx, ebp
call fcn.004677af
add ebp, 0x314
mov esp, ebp
pop ebp
ret