Function at 0x40bd90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
sub esp, 0x774
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x70]
mov edx, dword [ebp + 0x74]
push ebx
mov ebx, dword [ebp + 0x6c]
mov dword [ebp - 0x6f4], eax
mov eax, dword [ebp + 0x68]
mov dword [ebp - 0x6fc], ecx
mov ecx, dword [ebp + 0x78]
push esi
push edi
mov dword [ebp - 0x710], eax
mov dword [ebp - 0x6f8], edx
mov dword [ebp - 0x718], ecx
mov dword [ebp - 0x6ec], 0
test eax, eax
je 0x40c1e6
test ebx, ebx
je 0x40c1e6
push eax
lea edx, [ebp + 0x30]
push 0x27
push edx
call fcn.0046a482
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
lea eax, [ebp + 0x30]
push eax
call edi
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x40be1c
xor eax, eax
jmp 0x40be33
lea eax, [esi + esi]
call fcn.0046db50
mov eax, esp
push 0
push esi
lea ecx, [ebp + 0x30]
push ecx
push eax
call fcn.00434c30
push 0
push eax
push closesocket
push str.GetConfig
call fcn.0040cbe0
add esp, 0x10
lea edx, [ebp + 0x30]
push edx
call edi
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x40be5d
xor eax, eax
jmp 0x40be74
lea eax, [esi + esi]
call fcn.0046db50
mov eax, esp
push 0
push esi
lea ecx, [ebp + 0x30]
push ecx
push eax
call fcn.00434c30
xor ecx, ecx
jmp 0x40be80
movzx edx, word [ecx + str.SOFTWAREClassesCLSID_]
mov word [ebp + ecx - 0x250], dx
add ecx, 2
test dx, dx
jne 0x40be80
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bea0
sub eax, edx
lea edi, [ebp - 0x250]
add edi, 0xfffffffe
mov esi, edx
lea edx, [edi + 2]
jmp 0x40bec0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40bec0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x714]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x708]
push ecx
push edx
call fcn.0040ccf0
add esp, 0xc
test eax, eax
jne 0x40c1ad
push 0x140
call fcn.00413ab0
mov dword [ebp - 0x700], eax
add eax, 8
add esp, 4
cmp eax, 0x400
ja 0x40bf34
call fcn.0046db50
mov eax, esp
test eax, eax
je 0x40bf2a
mov dword [eax], 0xcccc
add eax, 8
mov edi, eax
mov dword [ebp - 0x6f0], edi
jmp 0x40bf52
push eax
call fcn.0046a57b
add esp, 4
test eax, eax
je 0x40bf4a
mov dword [eax], 0xdddd
add eax, 8
mov dword [ebp - 0x6f0], eax
mov edi, eax
test edi, edi
je 0x40c1df
mov eax, dword [ebp - 0x700]
lea edx, [ebp - 0x700]
push edx
push eax
push 0
push edi
call fcn.0046a330
mov ecx, dword [ebp - 0x708]
add esp, 0xc
push eax
push 0
push 0
push 0x48ce40
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x40c182
cmp dword [ebp - 0x700], eax
jbe 0x40c182
push 0x140
push ebx
push edi
call fcn.00414060
add esp, 0xc
mov dword [ebp - 0x6ec], eax
test eax, eax
jbe 0x40c1d8
lea ecx, [ebp - 0x6e8]
call fcn.00409360
mov edx, dword [ebp + 0x7c]
mov ecx, dword [ebp - 0x6f4]
push edx
push esi
push esi
lea eax, [ebp - 0x6e8]
push eax
push ecx
call fcn.00409910
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x40c00c
mov edx, dword [ebp + 0x7c]
mov ecx, dword [ebp - 0x6f8]
push edx
mov edx, dword [ebp - 0x6fc]
lea eax, [ebp - 0x6e8]
push eax
push ecx
push edx
push ebx
call fcn.00409ad0
add esp, 0x14
cmp dword [ebp - 0x714], 0x80000001
jne 0x40c182
mov eax, dword [ebp + 0x7c]
push eax
mov eax, dword [ebp - 0x6f4]
lea ecx, [ebp - 0x70c]
push ecx
push 0x80
lea edx, [ebp - 0x50]
push edx
push eax
call fcn.0040b000
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x704], esi
cmp esi, 2
jne 0x40c054
xor esi, esi
mov dword [ebp - 0x704], esi
cmp dword [ebp - 0x70c], 0
jbe 0x40c182
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x40c077
xor eax, eax
jmp 0x40c090
lea edi, [eax + eax]
mov eax, edi
call fcn.0046db50
mov eax, esp
push 0
push edi
lea edx, [ebp - 0x50]
push edx
push eax
call fcn.0044f9b0
push eax
lea edi, [ebx + 0xc0]
push edi
call fcn.0046f039
add esp, 8
test eax, eax
je 0x40c17c
xor eax, eax
xor esi, esi
mov dword [ebx + 0x14], esi
mov dword [ebx + 0xbc], esi
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], eax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov dword [ebx + 0xb0], eax
mov dword [ebx + 0xb4], eax
mov word [ebx + 0xb8], ax
push 0x80
mov byte [ebx + 0xba], al
lea eax, [ebx + 0x20]
push esi
push eax
call fcn.0046a330
add esp, 0xc
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x40c10e
xor eax, eax
jmp 0x40c129
lea esi, [eax + eax]
mov eax, esi
call fcn.0046db50
mov eax, esp
push 0
push esi
lea edx, [ebp - 0x50]
push edx
push eax
call fcn.0044f9b0
xor esi, esi
mov edx, edi
jmp 0x40c130
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x40c130
mov eax, dword [ebp - 0x6fc]
mov dword [ebx + 0x134], esi
cmp eax, esi
je 0x40c14c
mov dword [eax], esi
mov ecx, dword [ebp + 0x7c]
push ecx
mov ecx, dword [ebp - 0x6f8]
lea edx, [ebp - 0x704]
push edx
mov edx, dword [ebp - 0x710]
push ecx
push eax
mov eax, dword [ebp - 0x6f4]
push ebx
push edx
push eax
call fcn.0040baf0
mov esi, dword [ebp - 0x704]
add esp, 0x1c
mov edi, dword [ebp - 0x6f0]
cmp dword [edi - 8], 0xdddd
lea eax, [edi - 8]
jne 0x40c197
push eax
call fcn.00469753
add esp, 4
mov ecx, dword [ebp - 0x708]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x6ec], 0
jne 0x40c1eb
mov edx, dword [ebp + 0x7c]
mov eax, dword [ebp - 0x6f8]
mov ecx, dword [ebp - 0x6fc]
push edx
mov edx, dword [ebp - 0x6f4]
push eax
push ecx
push edx
push 0
push ebx
call fcn.00409bd0
add esp, 0x18
mov esi, 2
jmp 0x40c1eb
mov esi, 0xffffffed
jmp 0x40c182
mov esi, 8
jmp 0x40c197
mov esi, 0xfffffffa
mov eax, dword [ebp - 0x718]
test eax, eax
je 0x40c1f7
mov dword [eax], esi
mov eax, dword [ebp - 0x6ec]
lea esp, [ebp - 0x724]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x58]
xor ecx, ebp
call fcn.0046984a
add ebp, 0x5c
mov esp, ebp
pop ebp
ret