Function at 0x4696cc
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4be1ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x38]
push edi
push eax
mov dword [esp + 0x34], eax
mov byte [esp + 0x38], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call dword [eax + 0x60]
mov edi, dword [esp + 0xb8]
cmp dword [edi + 0x14], ebx
jne 0x46975f
mov eax, str.NonNullValueName
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x469717
sub eax, edx
push eax
push str.NonNullValueName
lea ecx, [esp + 0x1c]
call fcn.00406650
push ebx
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0xc0], 1
call fcn.00431ee0
push 0x4f0788
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x40], vtable.common::CRegistryException.0
call fcn.0049e394
cmp dword [esp + 0xbc], ebx
je 0x4697af
cmp dword [esp + 0xc0], ebx
jne 0x4697af
push str.CallerBufSizeNonZero
lea ecx, [esp + 0x18]
call fcn.00407a20
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0xc0], 2
call fcn.00431ee0
push 0x4f0788
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], vtable.common::CRegistryException.0
call fcn.0049e394
cmp dword [esp + 0xc4], ebx
jne 0x4697f6
push str.NonNullCallerBytesPtr
lea ecx, [esp + 0x18]
call fcn.00407a20
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x48]
mov byte [esp + 0xc0], 3
call fcn.00431ee0
push 0x4f0788
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], vtable.common::CRegistryException.0
call fcn.0049e394
cmp dword [edi + 0x18], 0x10
push ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
lea ebp, [edi + 4]
jb 0x46980d
mov eax, dword [ebp]
jmp 0x46980f
mov eax, ebp
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
mov eax, dword [esi + 0x20]
push eax
call ebx
test eax, eax
jne 0x4699ab
cmp dword [esp + 0x14], 3
je 0x469890
push str.unknown
lea ecx, [esp + 0x1c]
call fcn.00407a20
push str.binary
lea ecx, [esp + 0x94]
mov byte [esp + 0xb8], 4
call fcn.00407a20
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x94]
push edx
push edi
add esi, 4
push esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0xc4], 5
call fcn.00415370
push 0x4f03a4
lea eax, [esp + 0x40]
push eax
call fcn.0049e394
mov ecx, dword [esp + 0xc0]
test ecx, ecx
mov eax, dword [esp + 0x10]
je 0x469977
test eax, eax
je 0x469968
mov edx, dword [esp + 0xc4]
cmp edx, eax
jae 0x4698ba
mov dword [esp + 0x10], edx
cmp dword [edi + 0x18], 0x10
jb 0x4698c5
mov eax, dword [ebp]
jmp 0x4698c7
mov eax, ebp
lea edx, [esp + 0x10]
push edx
push ecx
push 0
push 0
push eax
mov eax, dword [esi + 0x20]
push eax
call ebx
cmp eax, 0xea
jne 0x469912
mov edi, dword [esp + 0xc4]
cmp edi, dword [esp + 0x10]
jb 0x469907
push 0x46f
push str.p4clients_rel_betaProjectsCommonMiscWin32Registry.cpp
push str.uBufSize___dwDataSize
call fcn.00421210
mov ecx, eax
call fcn.00421000
mov ecx, dword [esp + 0xc8]
mov dword [ecx], edi
jmp 0x469980
test eax, eax
je 0x469931
push 0x475
push str.p4clients_rel_betaProjectsCommonMiscWin32Registry.cpp
push str.lRet__0L
call fcn.00421210
mov ecx, eax
call fcn.00421000
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0xc4]
jbe 0x469959
push 0x476
push str.p4clients_rel_betaProjectsCommonMiscWin32Registry.cpp
push str.dwDataSize___uBufSize
call fcn.00421210
mov ecx, eax
call fcn.00421000
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
jmp 0x469980
mov edx, dword [esp + 0xc8]
mov dword [edx], 0
jmp 0x469980
mov ecx, dword [esp + 0xc8]
mov dword [ecx], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x60]
lea ecx, [esp + 0x34]
call fcn.004129c0
mov ecx, dword [esp + 0xac]
pop ebp
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret 0x10
push edi
add esi, 4
push esi
lea ecx, [esp + 0x44]
call fcn.00415230
push 0x4f0440
lea eax, [esp + 0x40]
push eax
call fcn.0049e394
int3