Function at 0x41c4a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2e0]
sub esp, 0x360
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp + 0x2dc], eax
mov eax, dword [ebp + 0x2e8]
push ebx
mov ebx, dword [ebp + 0x2ec]
push esi
mov esi, dword [ebp + 0x2f4]
push edi
push 0
push str.090746F9_9F39_42C0_920A_4852C2EDE704
push closesocket
push str.ReadAPSerial
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x68], esi
call fcn.0041e080
add esp, 0x10
test ebx, ebx
je 0x41c786
mov edi, dword [ebp + 0x2f0]
test edi, edi
je 0x41c781
push edi
push 0
push ebx
call fcn.0046fe20
add esp, 0xc
test esi, esi
je 0x41c51e
mov dword [esi], 0
mov edx, dword [ebp - 0x6c]
lea ecx, [ebp + 0x19c]
push ecx
push str.VPh_sCF
push edx
mov dword [ebp - 0x74], 0
call fcn.0041b8a0
add esp, 0xc
test eax, eax
jne 0x41c719
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x41c561
xor eax, eax
jmp 0x41c57b
lea eax, [esi + esi]
call fcn.00470be0
mov eax, esp
push 0
push esi
lea ecx, [ebp + 0x19c]
push ecx
push eax
call fcn.00431390
push eax
push str.090746F9_9F39_42C0_920A_4852C2EDE704
push str.SOFTWAREClassesCLSID_
lea edx, [ebp - 0x64]
push 0x4a894c
push edx
call fcn.0046f27b
add esp, 0x14
lea eax, [ebp - 0x78]
push eax
push 1
push 0
lea ecx, [ebp - 0x64]
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41c719
push 0x40
call fcn.00424f70
mov dword [ebp - 0x80], eax
add eax, 8
add esp, 4
cmp eax, 0x400
ja 0x41c5e0
call fcn.00470be0
mov eax, esp
test eax, eax
je 0x41c5f6
mov dword [eax], 0xcccc
jmp 0x41c5f3
push eax
call fcn.00470748
add esp, 4
test eax, eax
je 0x41c5f6
mov dword [eax], 0xdddd
add eax, 8
mov ebx, eax
test ebx, ebx
je 0x41c6f2
lea edx, [ebp - 0x80]
push edx
push ebx
push 0
push 0
mov byte [ebx], 0
mov eax, dword [ebp - 0x78]
push str.GlobalS
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x41c6f7
push 0x3f
push eax
lea ecx, [ebp + 0x29d]
push ecx
mov byte [ebp + 0x29c], al
call fcn.0046fe20
push 0x40
lea edx, [ebp + 0x29c]
push edx
push ebx
call fcn.00425520
add esp, 0x18
test eax, eax
jbe 0x41c6e0
lea eax, [ebp + 0x29c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c660
sub eax, edx
mov dword [ebp - 0x7c], eax
je 0x41c6e0
add eax, eax
cmp dword [ebp + 0x2f0], eax
jbe 0x41c6d9
lea ecx, [ebp + 0x29c]
push ecx
mov dword [ebp - 0x74], 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x41c69b
xor eax, eax
jmp 0x41c6b5
lea eax, [esi + esi]
call fcn.00470be0
mov eax, esp
push 0
push esi
lea edx, [ebp + 0x29c]
push edx
push eax
call fcn.00431390
mov ecx, dword [ebp - 0x70]
push eax
mov eax, dword [ebp + 0x2f0]
shr eax, 1
push eax
push ecx
call fcn.00470452
mov eax, dword [ebp - 0x68]
add esp, 0xc
test eax, eax
je 0x41c6f7
mov edx, dword [ebp - 0x7c]
mov dword [eax], edx
jmp 0x41c6f7
mov edi, 0x7a
jmp 0x41c6f7
movsx edi, byte [ebx]
neg edi
sbb edi, edi
and edi, 0x176f
add edi, 2
jmp 0x41c6f7
mov edi, 8
push ebx
call fcn.0042dc80
mov eax, dword [ebp - 0x78]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x74], 0
jne 0x41c77d
mov edi, dword [ebp + 0x2f0]
mov ebx, dword [ebp - 0x70]
mov esi, dword [ebp + 0x2f8]
push esi
push edi
push edi
push 0
push ebx
call fcn.0046fe20
mov ecx, dword [ebp - 0x6c]
add esp, 0xc
push eax
push ecx
call fcn.0041b2e0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x41c77d
cmp word [ebx], ax
je 0x41c77d
cmp dword [ebp - 0x68], eax
je 0x41c764
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c750
sub eax, edx
mov edx, dword [ebp - 0x68]
sar eax, 1
mov dword [edx], eax
call fcn.0041ffc0
test eax, eax
je 0x41c77d
mov eax, dword [ebp - 0x6c]
push esi
push 0
push ebx
push eax
call fcn.0041c230
add esp, 0x10
mov eax, edi
jmp 0x41c78b
xor ecx, ecx
mov word [ebx], cx
mov eax, 0x57
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2dc]
xor ecx, ebp
call fcn.0046f33a
add ebp, 0x2e0
mov esp, ebp
pop ebp
ret