Function at 0x435480
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x458439
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x477b9c]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov edi, dword [esp + 0x74]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov ebp, 1
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x17], bl
mov dword [esp + 0x2c], esi
call fcn.0044d970
mov dword [esp + 0x30], ebp
push ebx
push 0xffffffffffffffff
push 0x461698
lea ecx, [esp + 0x58]
mov dword [esp + 0x78], ebp
call fcn.0044b840
mov eax, dword [esp + 0x78]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x78], 2
call fcn.00406100
mov eax, dword [esp + 0x68]
push eax
mov byte [esp + 0x7c], 4
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x64]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
lea edx, [esp + 0x8c]
push edx
mov dword [esp + 0x90], ebx
call fcn.00434f60
add esp, 0x18
test eax, eax
jne 0x4356a0
cmp dword [esp + 0x78], ebp
jne 0x4356a0
lea ecx, [esp + 0x34]
call fcn.0044b2e0
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 8]
mov ebp, eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push ebx
push ebp
push edx
push eax
mov eax, dword [ecx + 0x84]
mov dword [esp + 0x3c], ebp
call eax
test eax, eax
jne 0x43564b
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [esi + 8]
push ebp
mov dword [esp + 0x84], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0x84]
push ecx
push eax
call edx
test eax, eax
jne 0x43564b
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x43564b
cmp word [eax], 1
jne 0x43564b
cmp dword [eax + 4], 1
jne 0x43564b
cmp dword [eax + 0x14], ebx
jne 0x43564b
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x10]
ja 0x43564b
cmp ecx, dword [esp + 0x20]
ja 0x43564b
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x43564b
mov ecx, dword [esp + 0x24]
mov ebp, ecx
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x18]
shr eax, 1
mov dword [esp + 0x18], eax
cmp word [ecx + eax*2 - 2], bx
mov byte [esp + 0x6c], 5
jne 0x435620
sub eax, 1
mov dword [esp + 0x18], eax
push eax
push ecx
mov ecx, edi
call fcn.0044b520
mov edx, dword [esp + 0x78]
push edx
mov byte [esp + 0x1b], 1
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
push ebp
mov byte [esp + 0x70], 4
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ebp, dword [esp + 0x2c]
add esp, 4
push ebp
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp byte [esp + 0x17], bl
jne 0x435666
mov eax, dword [esp + 0x7c]
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.0044b3f0
mov ecx, dword [esp + 0x44]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x40]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 8
mov ecx, esi
mov byte [esp + 0x6c], bl
call fcn.0044d9a0
mov eax, edi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0xc
lea ecx, [esp + 0x34]
call fcn.0044b2e0
mov edx, dword [esi + 8]
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x435658
mov eax, dword [esp + 0x18]
push eax
call fcn.00450ef4
mov ebp, eax
add esp, 4
mov dword [esp + 0x78], ebp
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 6
call fcn.0044b2e0
mov edx, dword [esi + 8]
lea ecx, [esp + 0x18]
push ecx
push ebp
push ebx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebp
mov eax, dword [esp + 0x18]
shr eax, 1
mov dword [esp + 0x18], eax
cmp word [ebp + eax*2 - 2], bx
mov byte [esp + 0x6c], 7
jne 0x435719
sub eax, 1
mov dword [esp + 0x18], eax
push eax
push ebp
mov ecx, edi
call fcn.0044b520
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 8
jmp 0x435666