Function at 0x4d31a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542dc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov eax, dword [0x58becc]
xor eax, dword [ebp + 4]
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x54]
push edi
xor edi, edi
cmp eax, edi
jne 0x4d31da
xor al, al
jmp 0x4d34b8
mov al, byte [esi + 0x549]
test al, al
je 0x4d323d
mov al, byte [esi + 0x54a]
test al, al
jne 0x4d31d3
push 1
mov ecx, esi
call fcn.004cb890
mov byte [esi + 0x598], 1
push edi
add esi, 0x568
push 1
mov ecx, esi
call fcn.00479660
test eax, eax
je 0x4d31d3
mov ecx, esi
call fcn.00479760
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ecx, esi
call fcn.00479760
mov edx, dword [ebp + 0x14]
push eax
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, esi
call fcn.004797a0
mov al, 1
jmp 0x4d34b8
lea ecx, [esi + 0x40]
push ecx
lea edx, [ebp - 0x6c]
push str.SOFTWARE_
push edx
call fcn.00441360
push eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 4], edi
call fcn.00481160
add esp, 0x14
cmp dword [ebp - 0x54], 0x10
jb 0x4d3271
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00527b8e
add esp, 4
push ebx
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], edi
mov byte [ebp - 0x30], 0
mov ebx, dword [ebp + 8]
push 1
push 0xffffffffffffffff
lea edx, [ebp - 0x14]
push edx
mov ecx, ebx
mov byte [ebp - 4], 3
mov byte [ebp - 0x14], 0x5c
call fcn.004775d0
mov edi, eax
cmp edi, 0xffffffff
je 0x4d335e
push edi
push 0
lea eax, [ebp - 0x88]
push eax
mov ecx, ebx
call fcn.00440930
push eax
lea ecx, [ebp - 0x6c]
push 0x55734c
push ecx
mov byte [ebp - 4], 4
call fcn.00441360
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.00416d70
cmp dword [ebp - 0x54], 0x10
jb 0x4d32ef
mov edx, dword [ebp - 0x68]
push edx
call fcn.00527b8e
add esp, 4
cmp dword [ebp - 0x70], 0x10
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
mov byte [ebp - 4], 3
jb 0x4d331a
mov eax, dword [ebp - 0x84]
push eax
call fcn.00527b8e
add esp, 4
push 0xffffffffffffffff
inc edi
push edi
lea ecx, [ebp - 0x88]
push ecx
mov ecx, ebx
call fcn.00440930
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.0041ad80
mov eax, dword [ebp - 0x70]
mov edi, 0x10
cmp eax, edi
mov byte [ebp - 4], 3
jb 0x4d3370
mov edx, dword [ebp - 0x84]
push edx
call fcn.00527b8e
add esp, 4
jmp 0x4d3370
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x34]
call fcn.0041ad80
mov edi, 0x10
cmp dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x4c]
jae 0x4d337b
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4d3449
cmp dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x30]
jae 0x4d33a5
lea eax, [ebp - 0x30]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push edi
push ebx
push edx
push 0
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d343a
mov al, byte [esi + 0x548]
test al, al
je 0x4d341c
mov ecx, esi
call fcn.004cb7f0
push 1
add esi, 0x568
push 0
mov ecx, esi
call fcn.00487b00
push 5
push 0xb
mov ecx, esi
call fcn.00487b00
push 1
push 1
mov ecx, esi
call fcn.00487b00
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov ecx, esi
call fcn.00487c40
mov eax, dword [edi]
push eax
mov ecx, esi
call fcn.00487c40
mov ecx, dword [edi]
push ecx
push ebx
mov ecx, esi
call fcn.00487cd0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x34]
call fcn.0042d770
lea ecx, [ebp - 0x50]
call fcn.0042d770
mov al, 1
jmp 0x4d34b7
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x10
mov al, byte [esi + 0x548]
test al, al
je 0x4d3481
mov ecx, esi
call fcn.004cb7f0
push 1
add esi, 0x568
push 0
mov ecx, esi
call fcn.00487b00
push 5
push 0xb
mov ecx, esi
call fcn.00487b00
push 1
push 0
mov ecx, esi
call fcn.00487b00
cmp dword [ebp - 0x1c], edi
jb 0x4d3492
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00527b8e
add esp, 4
cmp dword [ebp - 0x38], edi
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
jb 0x4d34b5
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00527b8e
add esp, 4
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.00528d83
mov esp, ebp
pop ebp
ret 0x10