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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f3fdd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
mov eax, dword [0x52bd18]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x240], eax
mov eax, 0xfe
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x30]
push esi
xor ebx, ebx
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x30], 1
call fcn.00446240
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
sub eax, 0x10
push eax
mov dword [esp + 0x260], ebx
call fcn.00401660
add eax, 0x10
add esp, 0xc
mov dword [esp + 0x14], eax
xor eax, eax
mov ecx, 0x3f
lea edi, [esp + 0x140]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov ecx, 0x3f
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x25c], 1
stosb byte es:[edi], al
mov dword [esp + 0x24], ebx
call fcn.0040d680
mov eax, dword [eax]
push 0x4fcaa0
push eax
call fcn.004ceccf
mov ebx, eax
mov eax, dword [esp + 0x18]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44651d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x446569
push 1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040d9a0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x258], 2
call fcn.004040e0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x254], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446569
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push 0x20019
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x446769
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x2c]
push 0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x154]
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x446757
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0xc]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00409450
add esp, 0xc
lea edx, [esp + 0x140]
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x258], 3
call fcn.00401fd0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x258], 4
call fcn.004461d0
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x25c], 5
call fcn.00446320
add esp, 8
mov eax, dword [edi + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, edi
mov byte [esp + 0x25c], 6
call fcn.004ddf86
mov eax, dword [ebx + 8]
lea edx, [esp + 0x38]
push edx
push eax
mov ecx, ebx
call fcn.004ddf86
mov eax, dword [esi + 8]
lea ecx, [esp + 0x34]
push ecx
push eax
mov ecx, esi
call fcn.004ddf86
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 8]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.004ddf86
mov edx, dword [esp + 0x1c]
mov eax, 0xfe
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
inc edx
add eax, 0xfffffff0
mov dword [esp + 0x1c], edx
mov byte [esp + 0x254], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4466ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x254], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4466d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x254], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4466f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x254], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44671e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x28]
push 0
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x154]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x4465c8
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x446792
push 0xe4
push str..Registry.cpp
call fcn.00407350
mov ecx, eax
call fcn.0040a680
push str.CRegistry:Open_registry_key_error.
push 4
call fcn.0047dea0
mov esi, dword [esp + 0x44]
add esp, 8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x254], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4467b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x254], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4467e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x244]
mov eax, esi
call fcn.004ce183
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret