Function at 0x10031e90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10105ce9
mov eax, dword fs:[0]
push eax
sub esp, 0x838
mov eax, dword [0x1014b520]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x820]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x825]
mov dword [ebp - 0x824], 0
call fcn.10030d30
mov edi, dword [eax]
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 1
test edi, edi
je 0x10031fa4
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.100d6e30
add esp, 0xc
mov dword [ebp - 0x818], 1
mov dword [ebp - 0x814], 0x200000
mov dword [ebp - 0x81c], 0
test esi, esi
je 0x10031f47
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031f30
sub ecx, edx
mov eax, 0
sar ecx, 1
cmove esi, eax
lea eax, [ebp - 0x81c]
push eax
push 0x20119
push 0
push edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10031fa4
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x818]
push eax
push 0
push esi
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x81c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10031fa4
lea eax, [ebp - 0x810]
push eax
jmp 0x10031fa9
push 0x1010e2b8
lea ecx, [ebp - 0x824]
call fcn.10002a70
mov edx, dword [ebp - 0x820]
or ebx, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10031fd8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x824]
mov dword [ebp - 0x81c], ecx
cmp dword [ecx - 4], 1
jle 0x10032004
push dword [ecx - 0xc]
lea ecx, [ebp - 0x824]
call fcn.10001a20
mov ecx, dword [ebp - 0x824]
mov dword [ebp - 0x81c], ecx
mov esi, ecx
mov dword [ebp - 0x830], 0
xor eax, eax
mov dword [ebp - 0x82c], 7
mov word [ebp - 0x840], ax
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10032026
sub esi, edx
sar esi, 1
cmp esi, 7
ja 0x1003205f
mov dword [ebp - 0x830], esi
lea eax, [ebp - 0x840]
add esi, esi
push esi
push ecx
push eax
call fcn.100d68b0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x840], ax
jmp 0x100320d2
cmp esi, 0x7ffffffe
ja 0x100321f2
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x1003207f
mov ebx, SysReAllocString
jmp 0x10032089
mov eax, 0xa
cmp ebx, eax
cmovb ebx, eax
xor ecx, ecx
mov eax, ebx
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
lea ecx, [ebp - 0x840]
call fcn.1000ec00
mov dword [ebp - 0x830], esi
mov edi, eax
add esi, esi
mov dword [ebp - 0x82c], ebx
push esi
push dword [ebp - 0x81c]
push edi
call fcn.100d6330
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
or ebx, 0xffffffff
mov dword [ebp - 0x840], edi
mov byte [ebp - 4], 4
call fcn.100da5a6
cmp dword [ebp - 0x82c], 8
lea esi, [ebp - 0x840]
mov edi, eax
lea eax, [ebp - 0x820]
cmovae esi, dword [ebp - 0x840]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.100dff87
add esp, 0xc
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x814], edx
cmp esi, dword [ebp - 0x820]
je 0x100321f7
cmp dword [edi], 0x22
je 0x10032201
mov edx, dword [ebp - 0x82c]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x1003216e
mov ecx, dword [ebp - 0x840]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032164
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003220b
push edx
push ecx
call fcn.100bacf4
add esp, 8
mov edx, dword [ebp - 0x824]
xor eax, eax
mov word [ebp - 0x840], ax
add edx, 0xfffffff0
mov byte [ebp - 4], al
mov eax, ebx
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x82c], 7
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100321ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100321ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x818]
mov edx, dword [ebp - 0x814]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100bb073
mov esp, ebp
pop ebp
ret
call fcn.1000ea90
push str.invalid_stoll_argument
call fcn.10032d1a
push str.stoll_argument_out_of_range
call fcn.10032d5a
call fcn.100da4dc
int3