Function at 0x41c240
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x318]
sub esp, 0x398
mov eax, dword [0x4af6f0]
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 0x41c285
mov dword [eax], 0
call fcn.0041ffe0
test eax, eax
jne 0x41c29b
call fcn.0041fed0
test eax, eax
jne 0x41c488
test edi, edi
je 0x41c481
cmp word [edi], 0
je 0x41c481
mov eax, dword [ebp + 0x32c]
push eax
push edi
push esi
call fcn.0041b240
lea ecx, [ebp + 0x194]
push ecx
push str.VPh_sCF
push esi
call fcn.0041b8b0
add esp, 0x18
test eax, eax
jne 0x41c48a
lea edx, [ebp + 0x194]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x41c2f4
xor eax, eax
jmp 0x41c30e
lea eax, [esi + esi]
call fcn.004704a0
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 0x4a764c
push edx
call fcn.0046eb3b
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.00420540
add esp, 0x2c
test eax, eax
jne 0x41c48a
push eax
push str.090746F9_9F39_42C0_920A_4852C2EDE704
push closesocket
push str.WriteAPSerial
call fcn.0041e0b0
mov eax, edi
add esp, 0x10
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c370
sub eax, edx
sar eax, 1
inc eax
push eax
mov dword [ebp - 0x7c], eax
call fcn.00424f80
mov edi, eax
lea eax, [edi + 8]
add esp, 4
cmp eax, 0x400
ja 0x41c3ab
call fcn.004704a0
mov eax, esp
test eax, eax
je 0x41c3c1
mov dword [eax], 0xcccc
jmp 0x41c3be
push eax
call fcn.00470008
add esp, 4
test eax, eax
je 0x41c3c1
mov dword [eax], 0xdddd
add eax, 8
mov ebx, eax
test ebx, ebx
je 0x41c465
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 0x41c3d6
lea eax, [ebp + 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x41c3fe
xor esi, esi
jmp 0x41c41c
lea esi, [eax + eax]
mov eax, esi
call fcn.004704a0
mov eax, esp
push 0
push esi
lea ecx, [ebp + 0x294]
push ecx
push eax
call fcn.0045bcd0
mov esi, eax
mov edx, dword [ebp - 0x7c]
push edx
push edi
push 0
push ebx
call fcn.0046f6e0
add esp, 0xc
push eax
push esi
call fcn.00425320
mov esi, eax
add esp, 0xc
test esi, esi
jbe 0x41c45e
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 0x41c46a
mov dword [eax], esi
jmp 0x41c46a
mov edi, 0x1770
jmp 0x41c46a
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 0x41c48a
mov eax, 0x57
jmp 0x41c48a
mov eax, ebx
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x314]
xor ecx, ebp
call fcn.0046ebfa
add ebp, 0x318
mov esp, ebp
pop ebp
ret