Function at 0x4912e5
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x26c
mov eax, 0x559d30
call fcn.00523c97
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 0x134], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x144], ebx
cmp dword [esi], ebx
mov dword [ebp - 0x130], eax
setne al
movzx eax, al
push 0x278
push eax
mov edi, str.srcwindows_registry.cpp
mov dword [ebp - 0x140], esi
call fcn.0049231b
mov eax, dword [ebp - 0x130]
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x13c], ebx
jb 0x49134d
mov eax, dword [eax]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x13c]
push ecx
push ebx
lea ecx, [ebp - 0x138]
push ecx
push ebx
push eax
push dword [esi]
call edi
mov esi, eax
cmp esi, ebx
je 0x4913e4
lea eax, [ebp - 0x1e0]
push eax
call fcn.004036c8
mov edi, eax
push str.RegQueryValueExW_failed_with
push edi
mov dword [ebp - 4], 1
call fcn.00405d7d
pop ecx
pop ecx
push esi
push edi
call fcn.00410478
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00403732
mov byte [ebp - 4], 2
cmp esi, ebx
jle 0x4913b6
and esi, 0xffff
or esi, 0x80070000
push 1
push 0x28b
push str.srcwindows_registry.cpp
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0049844a
push 0x5c983c
lea eax, [ebp - 0x110]
push eax
call fcn.0051ed55
mov esi, dword [ebp - 0x13c]
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
call fcn.0043df7a
mov dword [ebp - 4], 3
cmp dword [ebp - 0x13c], ebx
je 0x49149f
mov eax, dword [ebp - 0x130]
cmp dword [eax + 0x14], 8
jb 0x491428
mov eax, dword [eax]
lea ecx, [ebp - 0x13c]
push ecx
push dword [ebp - 0x12c]
lea ecx, [ebp - 0x138]
push ecx
push ebx
push eax
mov eax, dword [ebp - 0x140]
push dword [eax]
call edi
mov esi, eax
cmp esi, ebx
je 0x49149f
lea eax, [ebp - 0x1e0]
push eax
call fcn.004036c8
mov edi, eax
push str.RegQueryValueExW_failed_with
push edi
mov byte [ebp - 4], 4
call fcn.00405d7d
pop ecx
pop ecx
push esi
push edi
call fcn.00410478
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00403732
mov byte [ebp - 4], 5
cmp esi, ebx
jle 0x491493
and esi, 0xffff
or esi, 0x80070000
push 1
push 0x29f
jmp 0x4913bd
mov esi, dword [ebp - 0x13c]
lea eax, [ebp - 0x12c]
call fcn.0043df7a
mov esi, dword [ebp - 0x134]
mov eax, dword [ebp - 0x138]
mov dword [esi], eax
mov dword [esi + 4], ebx
lea ecx, [esi + 8]
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
lea edi, [esi + 0x10]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
xor eax, eax
mov word [edi], ax
lea eax, [esi + 0x3c]
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x144], 1
cmp edx, 0xb
ja case.default.0x49150f
movzx edx, byte [edx + 0x491855]
jmp dword [edx*4 + 0x49183d]
mov eax, dword [ebp - 0x128]
sub eax, dword [ebp - 0x12c]
and eax, 1
je 0x491546
mov esi, dword [ebp - 0x128]
sub esi, eax
sub esi, dword [ebp - 0x12c]
lea eax, [ebp - 0x12c]
call fcn.0043df7a
mov esi, dword [ebp - 0x134]
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x128]
cmp edx, eax
je case.0x49150f.0
sub eax, edx
lea ecx, [eax - 1]
cmp eax, ecx
ja 0x49156d
push str.invalid_vector_T__subscript
call fcn.00535262
cmp byte [ecx + edx], bl
jne 0x491594
lea ecx, [eax - 2]
cmp eax, ecx
jbe 0x491563
lea eax, [ecx + edx]
cmp byte [eax], bl
jne 0x491594
dec dword [ebp - 0x128]
cmp edx, dword [ebp - 0x128]
je 0x491594
dec dword [ebp - 0x128]
mov eax, dword [ebp - 0x128]
sub eax, edx
mov dword [ebp - 0x140], eax
shr eax, 1
mov ecx, edi
call fcn.0040d9ef
cmp dword [edi + 0x14], 8
jb 0x4915b3
mov edi, dword [edi]
push dword [ebp - 0x140]
push dword [ebp - 0x12c]
push edi
call fcn.00517f10
add esp, 0xc
jmp case.0x49150f.0
mov eax, dword [ebp - 0x128]
sub eax, dword [ebp - 0x12c]
and eax, 1
je 0x4915fd
mov esi, dword [ebp - 0x128]
sub esi, eax
sub esi, dword [ebp - 0x12c]
lea eax, [ebp - 0x12c]
call fcn.0043df7a
mov esi, dword [ebp - 0x134]
mov eax, dword [ebp - 0x128]
cmp dword [ebp - 0x12c], eax
je case.0x49150f.0
lea eax, [ebp - 0x119]
lea esi, [ebp - 0x12c]
mov byte [ebp - 0x119], bl
call fcn.00491aa8
lea eax, [ebp - 0x119]
mov byte [ebp - 0x119], bl
call fcn.00491aa8
lea eax, [ebp - 0x119]
mov byte [ebp - 0x119], bl
call fcn.00491aa8
lea eax, [ebp - 0x119]
mov byte [ebp - 0x119], bl
call fcn.00491aa8
mov eax, dword [ebp - 0x12c]
jmp 0x4916a1
push dword [ebp - 0x130]
lea esi, [ebp - 0x2c]
call fcn.0040338f
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x134]
mov ecx, esi
add edi, 0x2c
call fcn.0040de6b
push 1
xor edi, edi
mov byte [ebp - 4], 3
call fcn.00404145
mov esi, dword [ebp - 0x130]
push esi
call fcn.0051848b
pop ecx
lea eax, [esi + eax*2 + 2]
mov dword [ebp - 0x130], eax
cmp word [eax], bx
jne 0x491661
mov esi, dword [ebp - 0x134]
cmp dword [ebp - 0x12c], ebx
je 0x4916c6
push dword [ebp - 0x12c]
call fcn.00515a19
pop ecx
mov eax, esi
call fcn.00523d1a
ret 8
lea ecx, [ebp - 0x12c]
cmp eax, ecx
je case.0x49150f.0
mov edx, dword [ebp - 0x12c]
mov ecx, ebx
mov dword [ebp - 0x12c], ecx
mov ecx, dword [ebp - 0x128]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x124]
mov dword [eax + 8], ecx
jmp case.0x49150f.0
mov edi, dword [ebp - 0x128]
sub edi, dword [ebp - 0x12c]
cmp edi, 4
je 0x491756
lea eax, [ebp - 0x1e0]
push eax
call fcn.004036c8
mov esi, eax
push str.Invalid_DWORD_size:
push esi
mov byte [ebp - 4], 8
call fcn.00405d7d
pop ecx
pop ecx
push edi
push esi
call fcn.0041056c
lea eax, [ebp - 0x48]
push eax
mov eax, esi
call fcn.00403732
mov byte [ebp - 4], 9
push 0x301
mov ecx, str.srcwindows_registry.cpp
lea eax, [ebp - 0x48]
call fcn.004025fb
push 4
push dword [ebp - 0x12c]
lea eax, [esi + 4]
push eax
call fcn.00517f10
add esp, 0xc
cmp dword [ebp - 0x138], 5
jne case.0x49150f.0
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esi + 4], eax
jmp case.0x49150f.0
mov edi, dword [ebp - 0x128]
sub edi, dword [ebp - 0x12c]
cmp edi, 8
je 0x4917e0
lea eax, [ebp - 0x118]
push eax
call fcn.004036c8
mov esi, eax
push str.Invalid_QWORD_size:
push esi
mov byte [ebp - 4], 0xa
call fcn.00405d7d
pop ecx
pop ecx
push edi
push esi
call fcn.0041056c
lea eax, [ebp - 0x64]
push eax
mov eax, esi
call fcn.00403732
mov byte [ebp - 4], 0xb
push 0x30d
mov ecx, str.srcwindows_registry.cpp
lea eax, [ebp - 0x64]
jmp 0x491751
push 8
push dword [ebp - 0x12c]
push ecx
jmp 0x4915c0
lea eax, [ebp - 0x278]
push eax
call fcn.004036c8
mov esi, eax
push str.Invalid_registry_value_type
push esi
mov byte [ebp - 4], 0xc
call fcn.00405d7d
pop ecx
pop ecx
push dword [ebp - 0x138]
push esi
call fcn.0041056c
lea eax, [ebp - 0x80]
push eax
mov eax, esi
call fcn.00403732
mov byte [ebp - 4], 0xd
push 0x312
mov ecx, str.srcwindows_registry.cpp
lea eax, [ebp - 0x80]
jmp 0x491751