Function at 0x43ca80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d454
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x55746c]
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 edx, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x818], edx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x824], edx
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x830], edi
cmp dword [ebp + 0x14], edi
mov edx, 0x100
mov esi, 0x200
mov dword [ebp - 4], edi
cmovne esi, edx
mov dword [ebp - 0x814], edi
lea edx, [ebp - 0x814]
or esi, 0x20019
push edx
push esi
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43cd76
mov ebx, dword [ebp - 0x814]
and esi, 0x300
push 0x800
push eax
lea eax, [ebp - 0x810]
mov dword [ebp - 0x838], ebx
push eax
mov dword [ebp - 0x834], esi
call fcn.00495040
add esp, 0xc
mov dword [ebp - 0x814], 0x800
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x820]
push eax
push edi
push dword [ebp - 0x818]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43cd6b
mov eax, dword [ebp - 0x820]
cmp eax, 1
je 0x43cb92
cmp eax, 2
jne 0x43cd6b
mov ecx, dword [ebp - 0x814]
test ecx, ecx
je 0x43cbb9
test cl, 1
jne 0x43cd6b
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x43cbc2
jmp 0x43cd6b
xor eax, eax
mov word [ebp - 0x810], ax
shr ecx, 1
je 0x43cd6b
call fcn.0041a3c0
mov ecx, eax
test ecx, ecx
je 0x43cd96
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
mov eax, dword [ebp - 0x824]
mov byte [ebp - 4], 1
test eax, eax
je 0x43ccee
cmp eax, 0x518b80
je 0x43ccee
push eax
lea ecx, [ebp - 0x81c]
call fcn.00403e60
mov dword [ebp - 0x824], eax
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x82c]
call fcn.00403e60
push 0x518d4c
push eax
lea eax, [ebp - 0x820]
mov byte [ebp - 4], 3
push eax
call fcn.00424b80
add esp, 0xc
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 5
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x43cc5f
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x43cc75
call fcn.0041a3c0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x43cda0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi]
add eax, 0x10
mov dword [ebp - 0x818], eax
mov eax, dword [ebp - 0x824]
mov dword [ebp - 0x828], 1
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
push dword [ecx - 0xc]
lea eax, [ebp - 0x818]
push ecx
push eax
call fcn.00439210
add esp, 0x14
lea eax, [ebp - 0x818]
lea ecx, [ebp - 0x814]
push eax
call fcn.0040aae0
lea ecx, [ebp - 0x818]
call fcn.00403f60
lea ecx, [ebp - 0x820]
call fcn.00403f60
lea ecx, [ebp - 0x82c]
call fcn.00403f60
lea ecx, [ebp - 0x81c]
call fcn.00403f60
jmp 0x43cd32
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x81c]
call fcn.00403e60
push eax
lea ecx, [ebp - 0x814]
mov byte [ebp - 4], 6
call fcn.0040aae0
mov edx, dword [ebp - 0x81c]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43cd32
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x814]
lea eax, [ebp - 0x83c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov byte [ebp - 4], 0
mov ecx, 1
cmovne edi, ecx
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x43cd6b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x43cd76
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
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.00468598
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.00404170
push 0x80004005
call fcn.00404170
int3