Function at 0x1001f8f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1015ab6d
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x101b0cd0]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push esi
push edi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x188]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ecx + 4]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x20], eax
movzx eax, byte [ebp + 0x14]
xor edi, edi
neg eax
sbb eax, eax
mov dword [esp + 0x24], edx
and eax, 0x100
lea edx, [esp + 0x1c]
push edx
add eax, 0x20119
push eax
push edi
push ecx
push closesocket
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
je 0x1001f9b8
push str.CRegHelper::GetValue
lea eax, [esp + 0x38]
call fcn.10018050
mov dword [esp + 0x190], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegOpenKeyEx_GetLastError:_d_
lea eax, [esp + 0x3c]
push 0xc8
push eax
call fcn.1001d2e0
add esp, 0x10
lea ecx, [esp + 0x34]
call fcn.10018140
jmp 0x1001fdda
mov eax, dword [esi + 4]
lea ecx, [esp + 0x28]
push ecx
push edi
lea edx, [esp + 0x20]
push edx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
mov eax, dword [esp + 0x30]
push eax
call edi
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x1001fa90
push 0xff
lea ecx, [esp + 0x81]
push 0
push ecx
mov byte [esp + 0x88], 0
call fcn.10057070
mov eax, dword [esi + 4]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push eax
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x2c], 0x100
call edi
lea ecx, [esp + 0x7c]
push ecx
mov ebx, eax
mov eax, dword [esp + 0x24]
push 0x1019e138
call fcn.10018690
add esp, 8
cmp ebx, 0xea
jne 0x1001fdcf
mov edx, dword [esp + 0x14]
push edx
call fcn.10046982
mov edx, dword [esi + 4]
add esp, 4
mov ebx, eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0
push edx
push eax
call edi
mov eax, dword [esp + 0x20]
push ebx
push 0x1019e138
call fcn.10018690
push ebx
call fcn.1004698d
add esp, 0xc
jmp 0x1001fdcf
cmp eax, 7
jne 0x1001fc6a
push 0xff
lea ecx, [esp + 0x81]
push 0
push ecx
mov byte [esp + 0x88], 0
call fcn.10057070
mov eax, dword [esi + 4]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push eax
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x2c], 0x100
call edi
cmp eax, 0xea
jne 0x1001fbca
mov ecx, dword [esp + 0x14]
push ecx
call fcn.10046982
mov esi, dword [esi + 4]
mov ecx, dword [esp + 0x20]
add esp, 4
mov ebx, eax
lea edx, [esp + 0x14]
push edx
push ebx
lea eax, [esp + 0x20]
push eax
push 0
push esi
push ecx
mov dword [esp + 0x44], ebx
call edi
mov edi, dword [esp + 0x14]
push ebx
lea esi, [esp + 0x54]
call fcn.1001ff10
mov eax, dword [esp + 0x20]
mov ebx, 0x1019bc42
mov dword [esp + 0x190], 1
call fcn.100181a0
lea esi, [esp + 0x34]
call fcn.10017ef0
mov byte [esp + 0x190], 2
lea ecx, [ecx]
cmp byte [esp + 0x6c], 0
jne 0x1001fba6
lea edi, [esp + 0x50]
call fcn.10020030
test eax, eax
je 0x1001fba6
mov ebx, dword [esp + 0x54]
lea eax, [esp + 0x34]
call fcn.100181a0
mov eax, dword [esp + 0x3c]
cdq
idiv dword [esp + 0x44]
test eax, eax
setne al
test al, al
je 0x1001fba6
mov eax, dword [esp + 0x20]
sub esp, 0x1c
mov edi, esp
mov ecx, 7
lea esi, [esp + 0x50]
push 0x1019f35c
rep movsd dword es:[edi], dword [esi]
call fcn.10018680
add esp, 0x20
jmp 0x1001fb50
mov edx, dword [esp + 0x2c]
push edx
call fcn.1004698d
add esp, 4
lea ecx, [esp + 0x34]
call fcn.10018140
lea esi, [esp + 0x50]
call fcn.1001ff60
jmp 0x1001fdcf
test eax, eax
jne 0x1001fdcf
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x7c]
push eax
lea esi, [esp + 0x54]
call fcn.1001ff10
mov eax, dword [esp + 0x20]
mov ebx, 0x1019bc42
mov dword [esp + 0x190], 3
call fcn.100181a0
lea esi, [esp + 0x34]
call fcn.10017ef0
mov byte [esp + 0x190], 4
mov edi, edi
cmp byte [esp + 0x6c], 0
jne 0x1001fbb3
lea edi, [esp + 0x50]
call fcn.10020030
test eax, eax
je 0x1001fbb3
mov ebx, dword [esp + 0x54]
lea eax, [esp + 0x34]
call fcn.100181a0
mov eax, dword [esp + 0x3c]
cdq
idiv dword [esp + 0x44]
test eax, eax
setne al
test al, al
je 0x1001fbb3
mov eax, dword [esp + 0x20]
sub esp, 0x1c
mov edi, esp
mov ecx, 7
lea esi, [esp + 0x50]
push 0x1019f35c
rep movsd dword es:[edi], dword [esi]
call fcn.10018680
add esp, 0x20
jmp 0x1001fc10
cmp eax, 4
jne 0x1001fcf9
mov esi, dword [esi + 4]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push esi
push ecx
call edi
cmp eax, 0xea
jne 0x1001fcd4
push str.CRegHelper::GetValue
lea eax, [esp + 0x38]
call fcn.10018050
mov dword [esp + 0x190], 5
mov edx, dword [esp + 0x28]
push edx
push str.REG_DWORD_ERROR_MORE_DATA__size:_d_n
lea eax, [esp + 0x3c]
push 0x101
push eax
call fcn.1001d2e0
add esp, 0x10
lea ecx, [esp + 0x34]
call fcn.10018140
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push ecx
push 0x1019f384
call fcn.10018690
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
add esp, 8
mov dword [eax], edx
jmp 0x1001fdcf
cmp eax, 0xb
jne 0x1001fd8a
mov esi, dword [esi + 4]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push esi
push ecx
call edi
cmp eax, 0xea
jne 0x1001fd63
push str.CRegHelper::GetValue
lea eax, [esp + 0x38]
call fcn.10018050
mov dword [esp + 0x190], 6
mov edx, dword [esp + 0x28]
push edx
push str.REG_QWORD_ERROR_MORE_DATA__size:_d_n
lea eax, [esp + 0x3c]
push 0x10a
push eax
call fcn.1001d2e0
add esp, 0x10
lea ecx, [esp + 0x34]
call fcn.10018140
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
push ecx
push edx
push 0x1019f384
call fcn.10018690
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov dword [ecx], eax
jmp 0x1001fdcf
cmp eax, 3
jne 0x1001fdcf
mov esi, dword [esi + 4]
xor eax, eax
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov byte [esp + 0x7d], al
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push esi
push edx
mov byte [esp + 0x88], 0
mov dword [esp + 0x3c], 0xa
call edi
mov eax, dword [esp + 0x24]
mov dword [ebx], eax
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.1005392f
mov esp, ebp
pop ebp
ret