Function at 0x431710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c849c
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x51eee0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x374], eax
mov dword [ebp - 0x354], 0
mov ecx, dword [0x520340]
mov eax, ecx
imul eax, ecx
cdq
mov esi, 0x14
idiv esi
mov dword [ebp - 4], 1
lea eax, [esi - 0x13]
cmp edx, 6
jne 0x43177e
test ecx, ecx
cmove ecx, eax
mov dword [0x520340], ecx
mov eax, dword [0x51eab0]
xor ebx, ebx
cmp byte [0x520a34], bl
mov ecx, 0x51eab0
sete bl
add ebx, 0x80000001
mov dword [ebp - 0x358], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x35c], eax
or edi, 0xffffffff
cmp byte [ebp + 0x14], 0
mov byte [ebp - 4], 2
je 0x431826
cmp byte [0x51a24c], 0
jne 0x431826
mov eax, dword [0x520b74]
cmp dword [eax - 0xc], 0
jne 0x4317d3
mov esi, SysReAllocStringLen
jmp 0x43182c
push 0x4d95f8
lea eax, [ebp - 0x350]
push 0x520b74
push eax
mov esi, VariantInit
call fcn.0040b720
add esp, 0xc
push eax
lea ecx, [ebp - 0x35c]
mov byte [ebp - 4], 3
call fcn.00402af0
mov edx, dword [ebp - 0x350]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43182c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x43182c
mov esi, dword [ebp - 0x358]
mov dword [ebp - 0x368], 0
mov dword [ebp - 0x364], 0
mov dword [ebp - 0x360], 0
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 4
cmp dword [eax - 0xc], 0
je 0x431880
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x37c]
push 0x4d95f8
push eax
call fcn.0040b800
add esp, 0xc
mov dword [ebp - 0x350], eax
mov byte [ebp - 4], 5
mov ebx, 1
jmp 0x4318a2
push 0x4d8e30
lea ecx, [ebp - 0x380]
call fcn.00401ff0
mov dword [ebp - 0x350], eax
mov dword [ebp - 4], 6
mov ebx, 2
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
mov dword [ebp - 0x354], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x358], eax
mov eax, str.Software_
mov dword [ebp - 4], 7
test eax, 0xffff0000
jne 0x431bca
movzx edi, ax
push 0
push edi
call fcn.00403b80
add esp, 8
test eax, eax
je 0x4318f4
push edi
push eax
lea ecx, [ebp - 0x358]
call fcn.00407650
or edi, 0xffffffff
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x378]
push eax
mov dword [ebp - 4], 8
call fcn.0040b660
push 0x520b78
push eax
lea eax, [ebp - 0x370]
push eax
mov byte [ebp - 4], 9
call fcn.0040b660
push dword [ebp - 0x350]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.0040b660
add esp, 0x24
mov edx, dword [ebp - 0x370]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xc
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43196b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x378]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43198e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x358]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4319b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
test bl, 2
je 0x4319e2
mov edx, dword [ebp - 0x380]
add edx, 0xfffffff0
and ebx, 0xfffffffd
mov dword [ebp - 0x354], ebx
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4319e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x10
test bl, 1
je 0x431a0a
mov edx, dword [ebp - 0x37c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431a0a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x20019
push dword [ebp - 0x36c]
lea ecx, [ebp - 0x368]
push esi
call fcn.0040bf10
test eax, eax
jne 0x431c5e
call fcn.00432ba0
test al, al
jne 0x431a98
mov edi, dword [0x520340]
mov eax, edi
cdq
sub eax, edx
xor ecx, ecx
mov ebx, eax
sar ebx, 1
mov esi, 0x6f
mov dword [ebp - 0x350], ecx
mov dword [ebp - 0x354], ebx
test ebx, ebx
jle 0x431a8d
mov eax, edi
cdq
and edx, 3
lea edi, [edx + eax]
sar edi, 2
xor edx, edx
test edi, edi
jle 0x431a7c
mov eax, edx
mov ecx, edi
mov edi, edi
add esi, eax
dec eax
dec ecx
jne 0x431a70
mov ecx, dword [ebp - 0x350]
add edx, ecx
dec ebx
jne 0x431a66
mov ebx, dword [ebp - 0x354]
mov edi, dword [0x520340]
inc ecx
mov dword [ebp - 0x350], ecx
cmp ecx, esi
jl 0x431a54
xor ecx, ecx
mov eax, 0x400
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a5340
mov edi, eax
add esp, 4
mov dword [ebp - 0x350], edi
call fcn.00432b50
test al, al
jne 0x431ad7
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
push 0x800
push 0
push edi
call fcn.004a7560
mov edx, dword [0x520340]
add esp, 0xc
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0x18
idiv ecx
cmp edx, 7
jne 0x431b20
mov edi, dword [0x520340]
xor esi, esi
mov ebx, edi
inc esi
dec ebx
cmp esi, 0xcf
jb 0x431b10
mov edi, dword [ebp - 0x350]
mov esi, dword [ebp - 0x368]
lea eax, [ebp - 0x350]
push eax
push edi
lea eax, [ebp - 0x354]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x350], 0x800
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x431b7e
mov eax, dword [ebp - 0x354]
cmp eax, 1
je 0x431b5f
cmp eax, 2
jne 0x431b7e
mov ebx, dword [ebp - 0x350]
test edi, edi
je 0x431be4
test ebx, ebx
je 0x431bdf
test bl, 1
jne 0x431b7e
mov eax, ebx
shr eax, 1
cmp word [edi + eax*2 - 2], 0
je 0x431be4
test esi, esi
je 0x431b91
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x368], esi
push edi
mov dword [ebp - 0x364], 0
call fcn.004a7190
add esp, 4
call fcn.00432a40
test al, al
jne 0x431c64
mov eax, dword [0x520340]
test eax, eax
mov ecx, 1
cmove eax, ecx
mov dword [0x520340], eax
jmp 0x431c64
push str.Software_
lea ecx, [ebp - 0x358]
call fcn.0040b410
jmp 0x4318f7
xor eax, eax
mov word [edi], ax
shr ebx, 1
test esi, esi
je 0x431bf9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x368], esi
xor eax, eax
mov dword [ebp - 0x364], 0
mov word [edi + ebx*2], ax
call fcn.00432b00
test al, al
jne 0x431c28
call fcn.004a6f99
mov ecx, dword [0x520340]
cmp ecx, eax
jne 0x431c28
dec ecx
mov dword [0x520340], ecx
test edi, edi
jne 0x431c30
xor ecx, ecx
jmp 0x431c44
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431c35
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x374]
push edi
call fcn.00409950
push edi
call fcn.004a7190
add esp, 4
mov bl, 1
jmp 0x431c66
mov esi, dword [ebp - 0x368]
xor bl, bl
mov edx, dword [ebp - 0x36c]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431c8c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x431c97
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x35c]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431cba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431cda
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x431cfb
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a63c4
mov esp, ebp
pop ebp
ret