Function at 0x4378a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0x60
push 0xffffffffffffffff
push 0x481087
mov eax, dword fs:[0]
push eax
sub esp, 0x3f4
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 ecx, dword [ebp + 0x6c]
mov dword [ebp + 0x40], 0
mov esi, dword [ebp + 0x74]
test esi, esi
sete al
push ecx
mov dword [ebp - 4], 1
lea ecx, [ebp + 0x3c]
mov byte [ebp + 0x5c], al
mov byte [ebp - 4], 6
call fcn.004031f0
mov edx, dword [ebp + 0x78]
mov eax, dword [ebp + 0x5c]
push edx
push 0
push 0
push eax
lea ecx, [ebp + 0x3c]
push ecx
lea edx, [ebp + 0x44]
push edx
mov byte [ebp - 4], 7
call fcn.00436ed0
add esp, 0x18
mov eax, dword [ebp + 0x3c]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43793f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp + 0x44], 0
jne 0x437975
push esi
mov esi, dword [ebp + 0x68]
mov ecx, esi
call fcn.004031f0
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x43795e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x60
mov esp, ebp
pop ebp
ret
mov edx, dword [0x4be0cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4be0cc
call eax
lea esi, [eax + 0x10]
mov dword [ebp + 0x58], esi
mov ebx, dword [ebp + 0x70]
mov eax, dword [ebp + 0x44]
xor edi, edi
lea ecx, [ebp + 0x48]
push ecx
push edi
lea edx, [ebp + 0x54]
push edx
push edi
push ebx
push eax
mov byte [ebp - 4], 0xa
mov dword [ebp + 0x48], edi
mov dword [ebp + 0x5c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4379c8
mov eax, dword [ebp + 0x54]
cmp eax, 1
je 0x4379c0
cmp eax, 2
jne 0x4379c8
mov edi, dword [ebp + 0x48]
shr edi, 1
mov dword [ebp + 0x5c], edi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4379e5
push edi
lea ecx, [ebp + 0x58]
call fcn.00402ad0
mov esi, dword [ebp + 0x58]
lea ecx, [ebp + 0x5c]
push ecx
push esi
push ebx
lea ecx, [ebp + 0x44]
call fcn.00436830
test esi, esi
mov edi, eax
jne 0x4379fd
xor eax, eax
jmp 0x437a17
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x437a02
sub eax, edx
sar eax, 1
js 0x437b2b
cmp eax, dword [esi - 8]
jg 0x437b2b
test edi, edi
mov dword [esi - 0xc], eax
mov word [esi + eax*2], 0
je 0x437af1
mov eax, dword [ebp + 0x74]
test eax, eax
je 0x437a7f
mov edi, dword [ebp + 0x68]
push eax
mov ecx, edi
call fcn.004031f0
lea eax, [esi - 0x10]
mov dword [ebp + 0x40], 1
mov byte [ebp - 4], 9
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x437a6a
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x437a78
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x437960
push str.CNRegistry::GetStringValue
lea ecx, [ebp + 0x54]
call fcn.004031f0
push str..NRegistry.cpp
lea ecx, [ebp + 0x5c]
mov byte [ebp - 4], 0xb
call fcn.004031f0
test edi, edi
mov byte [ebp - 4], 0xc
mov esi, edi
jle 0x437ab3
and esi, 0xffff
or esi, 0x80070000
push 0
lea ecx, [ebp + 0x4c]
push edi
push ecx
call fcn.00435510
add esp, 0xc
lea edx, [ebp + 0x54]
push edx
push 0x96
lea ecx, [ebp + 0x5c]
push ecx
push esi
push eax
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0xd
call fcn.0041fce0
push 0x4b1c2c
lea edx, [ebp - 0x278]
push edx
call fcn.00466ffb
add esi, 0xfffffff0
push esi
call fcn.00403120
mov edi, dword [ebp + 0x68]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [ebp + 0x40], 1
mov byte [ebp - 4], 9
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x437a6a
mov ecx, dword [esi]
push esi
jmp 0x437a63
push 0x80070057
call fcn.004032e0
push str.CNRegistry::GetStringValue
lea ecx, [ebp + 0x54]
call fcn.004031f0
push str..NRegistry.cpp
lea ecx, [ebp + 0x5c]
mov byte [ebp - 4], 0xf
call fcn.004031f0
push 0x497188
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 0x10
call fcn.004031f0
mov ecx, dword [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x400]
mov byte [ebp - 4], 0x11
call fcn.0041f900
lea edx, [ebp + 0x54]
push edx
push 0x9b
lea ecx, [ebp + 0x5c]
push ecx
push 0x3ed
lea edx, [ebp + 0x58]
push edx
mov ecx, eax
mov byte [ebp - 4], 0x12
call fcn.0041fbe0
push eax
lea ecx, [ebp - 0xb8]
call fcn.0041f780
push 0x4b1c2c
lea eax, [ebp - 0xb8]
push eax
call fcn.00466ffb
push str.CNRegistry::GetStringValue
lea ecx, [ebp + 0x48]
call fcn.004031f0
push str..NRegistry.cpp
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 0x13
call fcn.004031f0
push str.Stacktrace.
lea ecx, [ebp + 0x5c]
mov byte [ebp - 4], 0x14
call fcn.004031f0
mov esi, dword [ebp + 0x30]
lea ecx, [ebp + 0x48]
push ecx
push 0x9b
lea edx, [ebp + 0x58]
push edx
push 0x3ed
lea eax, [ebp + 0x5c]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x15
call fcn.0041fbe0
lea ecx, [ebp + 0x5c]
call fcn.004032a0
lea ecx, [ebp + 0x58]
call fcn.004032a0
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 0xe
call fcn.004032a0
push esi
lea ecx, [ebp - 0x48]
call fcn.0041f780
push 0x4b1c2c
lea ecx, [ebp - 0x48]
push ecx
call fcn.00466ffb
push str.std_exception_caught:
lea ecx, [ebp + 0x5c]
call fcn.004031f0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov byte [ebp - 4], 0x16
call eax
push eax
lea ecx, [ebp + 0x5c]
call fcn.00401ba0
push str.CNRegistry::GetStringValue
lea ecx, [ebp + 0x54]
call fcn.004031f0
push str..NRegistry.cpp
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 0x17
call fcn.004031f0
lea ecx, [ebp + 0x54]
push ecx
push 0x9b
lea edx, [ebp + 0x58]
push edx
push 0x3ea
lea eax, [ebp + 0x5c]
push eax
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0x18
call fcn.0041fce0
push 0x4b1c2c
lea ecx, [ebp - 0x128]
push ecx
call fcn.00466ffb
push str.char_exception_caught:
lea ecx, [ebp + 0x58]
call fcn.004031f0
mov edx, dword [ebp + 0x28]
push edx
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 0x19
call fcn.00401ba0
push str.CNRegistry::GetStringValue
lea ecx, [ebp + 0x54]
call fcn.004031f0
push str..NRegistry.cpp
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 0x1a
call fcn.004031f0
lea eax, [ebp + 0x54]
push eax
push 0x9b
lea ecx, [ebp + 0x48]
push ecx
push 0x3eb
lea edx, [ebp + 0x58]
push edx
lea ecx, [ebp - 0x358]
mov byte [ebp - 4], 0x1b
call fcn.0041fce0
push 0x4b1c2c
lea eax, [ebp - 0x358]
push eax
call fcn.00466ffb
push str.wchar_t_exception_caught:
lea ecx, [ebp + 0x48]
call fcn.004031f0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 0x1c
call fcn.00401b60
push str.CNRegistry::GetStringValue
lea ecx, [ebp + 0x54]
call fcn.004031f0
push str..NRegistry.cpp
lea ecx, [ebp + 0x50]
mov byte [ebp - 4], 0x1d
call fcn.004031f0
lea edx, [ebp + 0x54]
push edx
push 0x9b
lea eax, [ebp + 0x50]
push eax
push 0x3ec
lea ecx, [ebp + 0x48]
push ecx
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], 0x1e
call fcn.0041fce0
push 0x4b1c2c
lea edx, [ebp - 0x198]
push edx
call fcn.00466ffb
push str.Unhandled_exception_caught__Possibly_caused_by_access_violation_
lea ecx, [ebp + 0x4c]
call fcn.004031f0
push str.CNRegistry::GetStringValue
lea ecx, [ebp + 0x50]
mov byte [ebp - 4], 0x1f
call fcn.004031f0
push str..NRegistry.cpp
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 0x20
call fcn.004031f0
lea eax, [ebp + 0x50]
push eax
push 0x9b
lea ecx, [ebp + 0x54]
push ecx
push 0x3e9
lea edx, [ebp + 0x4c]
push edx
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 0x21
call fcn.0041fce0
push 0x4b1c2c
lea eax, [ebp - 0x2e8]
push eax
call fcn.00466ffb
mov ecx, dword [ebp + 0x20]
push ecx
lea ecx, [ebp - 0x208]
call fcn.0041f780
push 0x4b1c2c
lea edx, [ebp - 0x208]
push edx
call fcn.00466ffb
mov eax, dword [ebp + 0x74]
test eax, eax
je 0x437e38
mov ecx, dword [ebp + 0x68]
push eax
call fcn.004031f0
mov eax, 0x437e30
ret
push str.CNRegistry::GetStringValue
lea ecx, [ebp + 0x58]
call fcn.004031f0
push str..NRegistry.cpp
lea ecx, [ebp + 0x5c]
mov byte [ebp - 4], 0x24
call fcn.004031f0
push str.Failed_to_read_registry_value.
lea ecx, [ebp + 0x74]
mov byte [ebp - 4], 0x25
call fcn.004031f0
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 0x58]
push eax
push 0xa2
lea ecx, [ebp + 0x5c]
push ecx
push 0x7de
lea edx, [ebp + 0x74]
push edx
mov ecx, edi
mov byte [ebp - 4], 0x26
call fcn.0041fbe0
lea ecx, [ebp + 0x74]
call fcn.004032a0
lea ecx, [ebp + 0x5c]
call fcn.004032a0
mov bl, 0x23
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], bl
call fcn.004032a0
push str.Registry_key
lea ecx, [ebp + 0x74]
call fcn.004031f0
mov eax, dword [ebp + 0x70]
push eax
lea ecx, [ebp + 0x5c]
mov byte [ebp - 4], 0x27
call fcn.004031f0
mov esi, eax
mov ecx, dword [ebp + 0x6c]
push ecx
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 0x28
call fcn.004031f0
push 0x497728
push eax
lea edx, [ebp + 0x50]
push edx
mov byte [ebp - 4], 0x29
call fcn.0041d550
add esp, 0xc
push esi
push eax
lea eax, [ebp + 0x4c]
push eax
mov byte [ebp - 4], 0x2a
call fcn.00421d70
add esp, 0xc
push eax
lea ecx, [ebp + 0x74]
push ecx
mov ecx, edi
mov byte [ebp - 4], 0x2b
call fcn.0041e440
lea ecx, [ebp + 0x4c]
call fcn.004032a0
lea ecx, [ebp + 0x50]
call fcn.004032a0
lea ecx, [ebp + 0x54]
call fcn.004032a0
lea ecx, [ebp + 0x5c]
call fcn.004032a0
lea ecx, [ebp + 0x74]
mov byte [ebp - 4], bl
call fcn.004032a0
push str.bUse64bitHive
lea ecx, [ebp + 0x74]
call fcn.004031f0
movzx edx, byte [ebp + 0x78]
push 0
push edx
lea eax, [ebp + 0x74]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x2c
call fcn.0041e520
lea ecx, [ebp + 0x74]
mov byte [ebp - 4], bl
call fcn.004032a0
push edi
lea ecx, [ebp - 0x3c8]
call fcn.0041f780
push 0x4b1c2c
lea ecx, [ebp - 0x3c8]
push ecx
call fcn.00466ffb
push str.CNRegistry::GetStringValue
lea ecx, [ebp + 0x74]
call fcn.004031f0
push str..NRegistry.cpp
lea ecx, [ebp + 0x4c]
mov byte [ebp - 4], 0x2e
call fcn.004031f0
push 0x497188
lea ecx, [ebp + 0x50]
mov byte [ebp - 4], 0x2f
call fcn.004031f0
mov edx, dword [ebp + 0x34]
push edx
lea ecx, [ebp - 0x400]
mov byte [ebp - 4], 0x30
call fcn.0041f900
lea ecx, [ebp + 0x74]
push ecx
push 0xa9
lea edx, [ebp + 0x4c]
push edx
push 0x3ed
lea ecx, [ebp + 0x50]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x31
call fcn.0041fbe0
push eax
lea ecx, [ebp - 0x80]
call fcn.0041f780
push 0x4b1c2c
lea edx, [ebp - 0x80]
push edx
call fcn.00466ffb
push str.CNRegistry::GetStringValue
lea ecx, [ebp + 0x58]
call fcn.004031f0
push str..NRegistry.cpp
lea ecx, [ebp + 0x5c]
mov byte [ebp - 4], 0x32
call fcn.004031f0
push str.Stacktrace.
lea ecx, [ebp + 0x74]
mov byte [ebp - 4], 0x33
call fcn.004031f0
mov esi, dword [ebp + 0x2c]
lea eax, [ebp + 0x58]
push eax
push 0xa9
lea ecx, [ebp + 0x5c]
push ecx
push 0x3ed
lea edx, [ebp + 0x74]
push edx
mov ecx, esi
mov byte [ebp - 4], 0x34
call fcn.0041fbe0
lea ecx, [ebp + 0x74]
call fcn.004032a0
lea ecx, [ebp + 0x5c]
call fcn.004032a0
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 0x2d
call fcn.004032a0
push esi
lea ecx, [ebp - 0xf0]
call fcn.0041f780
push 0x4b1c2c
lea eax, [ebp - 0xf0]
push eax
call fcn.00466ffb
push str.std_exception_caught:
lea ecx, [ebp + 0x74]
call fcn.004031f0
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov byte [ebp - 4], 0x35
call eax
push eax
lea ecx, [ebp + 0x74]
call fcn.00401ba0
push str.CNRegistry::GetStringValue
lea ecx, [ebp + 0x4c]
call fcn.004031f0
push str..NRegistry.cpp
lea ecx, [ebp + 0x50]
mov byte [ebp - 4], 0x36
call fcn.004031f0
lea ecx, [ebp + 0x4c]
push ecx
push 0xa9
lea edx, [ebp + 0x50]
push edx
push 0x3ea
lea eax, [ebp + 0x74]
push eax
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 0x37
call fcn.0041fce0
push 0x4b1c2c
lea ecx, [ebp - 0x160]
push ecx
call fcn.00466ffb
push str.char_exception_caught:
lea ecx, [ebp + 0x5c]
call fcn.004031f0
mov edx, dword [ebp + 0x1c]
push edx
lea ecx, [ebp + 0x5c]
mov byte [ebp - 4], 0x38
call fcn.00401ba0
push str.CNRegistry::GetStringValue
lea ecx, [ebp + 0x4c]
call fcn.004031f0
push str..NRegistry.cpp
lea ecx, [ebp + 0x50]
mov byte [ebp - 4], 0x39
call fcn.004031f0
lea eax, [ebp + 0x4c]
push eax
push 0xa9
lea ecx, [ebp + 0x50]
push ecx
push 0x3eb
lea edx, [ebp + 0x5c]
push edx
lea ecx, [ebp - 0x1d0]
mov byte [ebp - 4], 0x3a
call fcn.0041fce0
push 0x4b1c2c
lea eax, [ebp - 0x1d0]
push eax
call fcn.00466ffb
push str.wchar_t_exception_caught:
lea ecx, [ebp + 0x58]
call fcn.004031f0
mov ecx, dword [ebp + 0x38]
push ecx
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 0x3b
call fcn.00401b60
push str.CNRegistry::GetStringValue
lea ecx, [ebp + 0x4c]
call fcn.004031f0
push str..NRegistry.cpp
lea ecx, [ebp + 0x50]
mov byte [ebp - 4], 0x3c
call fcn.004031f0
lea edx, [ebp + 0x4c]
push edx
push 0xa9
lea eax, [ebp + 0x50]
push eax
push 0x3ec
lea ecx, [ebp + 0x58]
push ecx
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0x3d
call fcn.0041fce0
push 0x4b1c2c
lea edx, [ebp - 0x240]
push edx
call fcn.00466ffb
push str.Unhandled_exception_caught__Possibly_caused_by_access_violation_
lea ecx, [ebp + 0x54]
call fcn.004031f0
push str.CNRegistry::GetStringValue
lea ecx, [ebp + 0x4c]
mov byte [ebp - 4], 0x3e
call fcn.004031f0
push str..NRegistry.cpp
lea ecx, [ebp + 0x50]
mov byte [ebp - 4], 0x3f
call fcn.004031f0
lea eax, [ebp + 0x4c]
push eax
push 0xa9
lea ecx, [ebp + 0x50]
push ecx
push 0x3e9
lea edx, [ebp + 0x54]
push edx
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 0x40
call fcn.0041fce0
push 0x4b1c2c
lea eax, [ebp - 0x2b0]
push eax
call fcn.00466ffb
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x320]
call fcn.0041f780
push 0x4b1c2c
lea edx, [ebp - 0x320]
push edx
call fcn.00466ffb
mov eax, dword [ebp + 4]
push eax
lea ecx, [ebp - 0x390]
call fcn.0041f780
push 0x4b1c2c
lea ecx, [ebp - 0x390]
push ecx
call fcn.00466ffb
int3