Function at 0x438940
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x48]
sub esp, 0x48
push 0xffffffffffffffff
push 0x4812e8
mov eax, dword fs:[0]
push eax
sub esp, 0x234
push ebx
push esi
push edi
mov eax, dword [0x4bb27c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x50]
xor edi, edi
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 2
call fcn.004031f0
mov ecx, dword [ebp + 0x60]
mov ebx, dword [ebp + 0x5c]
push edi
push ecx
push edi
push ebx
lea edx, [ebp + 0x30]
push edx
lea eax, [ebp + 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.00436ed0
add esp, 0x18
mov eax, dword [ebp + 0x30]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4389c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x28]
cmp eax, edi
je 0x438a1b
lea ecx, [ebp + 0x44]
push ecx
lea edx, [ebp + 0x34]
push edx
mov edx, dword [ebp + 0x54]
lea ecx, [ebp + 0x40]
push ecx
push edi
push edx
mov esi, 4
push eax
mov dword [ebp + 0x34], edi
mov dword [ebp + 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
je 0x4389fb
mov esi, eax
jmp 0x438a09
cmp dword [ebp + 0x40], esi
je 0x438ce5
mov esi, 0xd
test bl, bl
jne 0x438a33
mov eax, dword [ebp + 0x28]
cmp eax, edi
je 0x438a1b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x48
mov esp, ebp
pop ebp
ret
push str.CNRegistry::GetDWORDValue
lea ecx, [ebp + 0x24]
call fcn.004031f0
push str..NRegistry.cpp
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 6
call fcn.004031f0
cmp esi, edi
mov byte [ebp - 4], 7
mov edi, esi
jle 0x438a67
and edi, 0xffff
or edi, 0x80070000
push 0
lea eax, [ebp + 0x2c]
push esi
push eax
call fcn.00435510
add esp, 0xc
lea ecx, [ebp + 0x24]
push ecx
push 0x11e
lea edx, [ebp + 0x20]
push edx
push edi
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 8
call fcn.0041fce0
mov eax, dword [ebp + 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438ab4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438ad7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438afa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.CNRegistry::GetDWORDValue
lea ecx, [ebp + 0x44]
call fcn.004031f0
push str..NRegistry.cpp
lea ecx, [ebp + 0x40]
mov byte [ebp - 4], 0xd
call fcn.004031f0
mov bl, 0xe
push str.Failed_to_read_registry_value.
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], bl
call fcn.004031f0
lea ecx, [ebp + 0x44]
push ecx
push 0x11f
lea edx, [ebp + 0x40]
push edx
push 0x7de
lea eax, [ebp + 0x30]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xf
call fcn.0041fbe0
mov eax, dword [ebp + 0x30]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438b6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x40]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438b91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x44]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438bb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Registry_key
lea ecx, [ebp + 0x44]
call fcn.004031f0
mov ecx, dword [ebp + 0x54]
push ecx
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 0x10
call fcn.004031f0
mov esi, eax
mov edx, dword [ebp + 0x50]
push edx
lea ecx, [ebp + 0x3c]
mov byte [ebp - 4], 0x11
call fcn.004031f0
push 0x497728
push eax
lea eax, [ebp + 0x30]
push eax
mov byte [ebp - 4], 0x12
call fcn.0041d550
add esp, 0xc
push esi
push eax
lea ecx, [ebp + 0x40]
mov bl, 0x13
push ecx
mov byte [ebp - 4], bl
call fcn.00421d70
add esp, 0xc
push eax
lea edx, [ebp + 0x44]
push edx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x14
call fcn.0041e440
mov eax, dword [ebp + 0x40]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438c3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x30]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x12
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438c62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x3c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x11
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438c85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x38]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438ca8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x44]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438ccb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x80]
call fcn.0041f780
push 0x4b1c2c
lea edx, [ebp - 0x80]
push edx
call fcn.00466ffb
mov eax, dword [ebp + 0x28]
cmp eax, edi
mov esi, dword [ebp + 0x34]
je 0x438cf6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x438a1e