Function at 0x41c230
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x318]
sub esp, 0x398
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp + 0x314], eax
mov eax, dword [ebp + 0x328]
push ebx
push esi
mov esi, dword [ebp + 0x320]
push edi
mov edi, dword [ebp + 0x324]
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], eax
mov ebx, 0xffffffec
test eax, eax
je 0x41c275
mov dword [eax], 0
call fcn.0041ffc0
test eax, eax
jne 0x41c28b
call fcn.0041fea0
test eax, eax
jne 0x41c478
test edi, edi
je 0x41c471
cmp word [edi], 0
je 0x41c471
mov eax, dword [ebp + 0x32c]
push eax
push edi
push esi
call fcn.0041b230
lea ecx, [ebp + 0x194]
push ecx
push str.VPh_sCF
push esi
call fcn.0041b8a0
add esp, 0x18
test eax, eax
jne 0x41c47a
lea edx, [ebp + 0x194]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x41c2e4
xor eax, eax
jmp 0x41c2fe
lea eax, [esi + esi]
call fcn.00470be0
mov eax, esp
push 0
push esi
lea ecx, [ebp + 0x194]
push ecx
push eax
call fcn.00431390
push eax
push str.090746F9_9F39_42C0_920A_4852C2EDE704
push str.SOFTWAREClassesCLSID_
lea edx, [ebp - 0x6c]
push 0x4a894c
push edx
call fcn.0046f27b
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x70]
push ecx
push 0x20006
push 0
lea edx, [ebp - 0x6c]
push edx
push closesocket
call fcn.00420520
add esp, 0x2c
test eax, eax
jne 0x41c47a
push eax
push str.090746F9_9F39_42C0_920A_4852C2EDE704
push closesocket
push str.WriteAPSerial
call fcn.0041e080
mov eax, edi
add esp, 0x10
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c360
sub eax, edx
sar eax, 1
inc eax
push eax
mov dword [ebp - 0x7c], eax
call fcn.00424f70
mov edi, eax
lea eax, [edi + 8]
add esp, 4
cmp eax, 0x400
ja 0x41c39b
call fcn.00470be0
mov eax, esp
test eax, eax
je 0x41c3b1
mov dword [eax], 0xcccc
jmp 0x41c3ae
push eax
call fcn.00470748
add esp, 4
test eax, eax
je 0x41c3b1
mov dword [eax], 0xdddd
add eax, 8
mov ebx, eax
test ebx, ebx
je 0x41c455
mov eax, dword [ebp - 0x78]
lea edx, [ebp + 0x294]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41c3c6
lea eax, [ebp + 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x41c3ee
xor esi, esi
jmp 0x41c40c
lea esi, [eax + eax]
mov eax, esi
call fcn.00470be0
mov eax, esp
push 0
push esi
lea ecx, [ebp + 0x294]
push ecx
push eax
call fcn.0045c170
mov esi, eax
mov edx, dword [ebp - 0x7c]
push edx
push edi
push 0
push ebx
call fcn.0046fe20
add esp, 0xc
push eax
push esi
call fcn.00425310
mov esi, eax
add esp, 0xc
test esi, esi
jbe 0x41c44e
mov eax, dword [ebp - 0x70]
push edi
push ebx
push 1
push 0
push str.GlobalS
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x41c45a
mov dword [eax], esi
jmp 0x41c45a
mov edi, 0x1770
jmp 0x41c45a
mov edi, 8
push ebx
call fcn.0042dc80
mov ecx, dword [ebp - 0x70]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x41c47a
mov eax, 0x57
jmp 0x41c47a
mov eax, ebx
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x314]
xor ecx, ebp
call fcn.0046f33a
add ebp, 0x318
mov esp, ebp
pop ebp
ret