Function at 0x41d240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
sub esp, 0x774
mov eax, dword [0x4af6f0]
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 0x41d696
test ebx, ebx
je 0x41d696
push eax
lea edx, [ebp + 0x30]
push 0x27
push edx
call fcn.0046fcbd
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 0x41d2cc
xor eax, eax
jmp 0x41d2e3
lea eax, [esi + esi]
call fcn.004704a0
mov eax, esp
push 0
push esi
lea ecx, [ebp + 0x30]
push ecx
push eax
call fcn.00431390
push 0
push eax
push closesocket
push str.GetConfig
call fcn.0041e0b0
add esp, 0x10
lea edx, [ebp + 0x30]
push edx
call edi
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x41d30d
xor eax, eax
jmp 0x41d324
lea eax, [esi + esi]
call fcn.004704a0
mov eax, esp
push 0
push esi
lea ecx, [ebp + 0x30]
push ecx
push eax
call fcn.00431390
xor ecx, ecx
jmp 0x41d330
movzx edx, word [ecx + str.SOFTWAREClassesCLSID_]
mov word [ebp + ecx - 0x250], dx
add ecx, 2
test dx, dx
jne 0x41d330
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d350
sub eax, edx
lea edi, [ebp - 0x250]
add edi, 0xfffffffe
mov esi, edx
lea edx, [edi + 2]
jmp 0x41d370
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x41d370
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.0041e1c0
add esp, 0xc
test eax, eax
jne 0x41d65d
push 0x140
call fcn.00424f80
mov dword [ebp - 0x700], eax
add eax, 8
add esp, 4
cmp eax, 0x400
ja 0x41d3e4
call fcn.004704a0
mov eax, esp
test eax, eax
je 0x41d3da
mov dword [eax], 0xcccc
add eax, 8
mov edi, eax
mov dword [ebp - 0x6f0], edi
jmp 0x41d402
push eax
call fcn.00470008
add esp, 4
test eax, eax
je 0x41d3fa
mov dword [eax], 0xdddd
add eax, 8
mov dword [ebp - 0x6f0], eax
mov edi, eax
test edi, edi
je 0x41d68f
mov eax, dword [ebp - 0x700]
lea edx, [ebp - 0x700]
push edx
push eax
push 0
push edi
call fcn.0046f6e0
mov ecx, dword [ebp - 0x708]
add esp, 0xc
push eax
push 0
push 0
push 0x491585
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x41d632
cmp dword [ebp - 0x700], eax
jbe 0x41d632
push 0x140
push ebx
push edi
call fcn.00425530
add esp, 0xc
mov dword [ebp - 0x6ec], eax
test eax, eax
jbe 0x41d688
lea ecx, [ebp - 0x6e8]
call fcn.0041a810
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.0041adc0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x41d4bc
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.0041af80
add esp, 0x14
cmp dword [ebp - 0x714], 0x80000001
jne 0x41d632
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.0041c4b0
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x704], esi
cmp esi, 2
jne 0x41d504
xor esi, esi
mov dword [ebp - 0x704], esi
cmp dword [ebp - 0x70c], 0
jbe 0x41d632
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x41d527
xor eax, eax
jmp 0x41d540
lea edi, [eax + eax]
mov eax, edi
call fcn.004704a0
mov eax, esp
push 0
push edi
lea edx, [ebp - 0x50]
push edx
push eax
call fcn.0045bcd0
push eax
lea edi, [ebx + 0xc0]
push edi
call fcn.00470854
add esp, 8
test eax, eax
je 0x41d62c
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.0046f6e0
add esp, 0xc
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x41d5be
xor eax, eax
jmp 0x41d5d9
lea esi, [eax + eax]
mov eax, esi
call fcn.004704a0
mov eax, esp
push 0
push esi
lea edx, [ebp - 0x50]
push edx
push eax
call fcn.0045bcd0
xor esi, esi
mov edx, edi
jmp 0x41d5e0
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x41d5e0
mov eax, dword [ebp - 0x6fc]
mov dword [ebx + 0x134], esi
cmp eax, esi
je 0x41d5fc
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.0041cfa0
mov esi, dword [ebp - 0x704]
add esp, 0x1c
mov edi, dword [ebp - 0x6f0]
cmp dword [edi - 8], 0xdddd
lea eax, [edi - 8]
jne 0x41d647
push eax
call fcn.0046eb03
add esp, 4
mov ecx, dword [ebp - 0x708]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x6ec], 0
jne 0x41d69b
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.0041b080
add esp, 0x18
mov esi, 2
jmp 0x41d69b
mov esi, 0xffffffed
jmp 0x41d632
mov esi, 8
jmp 0x41d647
mov esi, 0xfffffffa
mov eax, dword [ebp - 0x718]
test eax, eax
je 0x41d6a7
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.0046ebfa
add ebp, 0x5c
mov esp, ebp
pop ebp
ret