Function at 0x47983e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x270
mov eax, 0x5a1db6
call fcn.0056ce95
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
mov esi, edx
mov dword [ebp - 0x148], eax
cmp dword [esi], eax
push 0x278
setne al
movzx eax, al
push eax
mov edi, str.srcwindows_registry.cpp
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x134], ecx
call fcn.0047a47f
mov eax, dword [ebp - 0x134]
xor edi, edi
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x138], edi
jb 0x4798a5
mov eax, dword [eax]
lea ecx, [ebp - 0x138]
push ecx
push edi
lea ecx, [ebp - 0x13c]
push ecx
push edi
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 0xea
je 0x479942
cmp esi, edi
je 0x479942
lea eax, [ebp - 0x1e4]
push eax
call fcn.00409ac6
mov ebx, eax
push str.RegQueryValueExW_failed_with
push ebx
mov dword [ebp - 4], 1
call fcn.0040fa1f
pop ecx
pop ecx
push esi
push ebx
call fcn.0040d526
lea eax, [ebp - 0x30]
push eax
mov eax, ebx
call fcn.00409b30
mov byte [ebp - 4], 2
cmp esi, edi
jle 0x479914
and esi, 0xffff
or esi, 0x80070000
push 1
push 0x28b
push str.srcwindows_registry.cpp
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00482fec
push 0x5ffba8
lea eax, [ebp - 0x114]
push eax
call fcn.005676bc
mov esi, dword [ebp - 0x138]
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x128], edi
call fcn.00431e99
mov dword [ebp - 4], 3
cmp dword [ebp - 0x138], 0
je 0x479a03
mov eax, dword [ebp - 0x134]
cmp dword [eax + 0x14], 8
jb 0x479987
mov eax, dword [eax]
lea ecx, [ebp - 0x138]
push ecx
push dword [ebp - 0x130]
lea ecx, [ebp - 0x13c]
push ecx
push 0
push eax
mov eax, dword [ebp - 0x144]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x479a03
lea eax, [ebp - 0x1e4]
push eax
call fcn.00409ac6
mov edi, eax
push str.RegQueryValueExW_failed_with
push edi
mov byte [ebp - 4], 4
call fcn.0040fa1f
pop ecx
pop ecx
push esi
push edi
call fcn.0040d526
lea eax, [ebp - 0x30]
push eax
mov eax, edi
call fcn.00409b30
mov byte [ebp - 4], 5
test esi, esi
jle 0x4799f7
and esi, 0xffff
or esi, 0x80070000
push 1
push 0x29f
jmp 0x47991b
mov esi, dword [ebp - 0x138]
lea eax, [ebp - 0x130]
call fcn.00431e99
mov esi, dword [ebp - 0x140]
lea edi, [ebx + 0x10]
and dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
xor ecx, ecx
xor eax, eax
mov word [edi], ax
lea eax, [esi + 0x3c]
mov dword [ebx + 0x2c], ecx
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x34], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x13c]
xor edx, edx
inc edx
mov dword [ebp - 0x148], edx
mov dword [esi], ecx
cmp ecx, 0xb
ja case.default.0x479a64
movzx ecx, byte [ecx + 0x479d9e]
jmp dword [ecx*4 + 0x479d86]
mov esi, dword [ebp - 0x12c]
mov eax, esi
sub eax, dword [ebp - 0x130]
and eax, edx
je 0x479a90
sub esi, eax
sub esi, dword [ebp - 0x130]
lea eax, [ebp - 0x130]
call fcn.00431e99
mov ebx, dword [ebp - 0x130]
cmp ebx, dword [ebp - 0x12c]
je case.0x479a64.0
mov eax, dword [ebp - 0x12c]
sub eax, ebx
lea ecx, [eax - 1]
cmp eax, ecx
ja 0x479abb
push str.invalid_vector_T__subscript
call fcn.0057d7d8
cmp byte [ecx + ebx], 0
jne 0x479ae4
lea ecx, [eax - 2]
cmp eax, ecx
jbe 0x479ab1
lea eax, [ecx + ebx]
cmp byte [eax], 0
jne 0x479ae4
dec dword [ebp - 0x12c]
cmp ebx, dword [ebp - 0x12c]
je 0x479ae4
dec dword [ebp - 0x12c]
mov esi, dword [ebp - 0x12c]
sub esi, ebx
mov eax, esi
shr eax, 1
mov ecx, edi
call fcn.0040916d
cmp dword [edi + 0x14], 8
jb 0x479aff
mov edi, dword [edi]
push esi
push ebx
push edi
jmp 0x479d08
mov esi, dword [ebp - 0x12c]
mov eax, esi
sub eax, dword [ebp - 0x130]
and eax, edx
je 0x479b2c
sub esi, eax
sub esi, dword [ebp - 0x130]
lea eax, [ebp - 0x130]
call fcn.00431e99
mov eax, dword [ebp - 0x12c]
cmp dword [ebp - 0x130], eax
je case.0x479a64.0
lea eax, [ebp - 0x11d]
lea esi, [ebp - 0x130]
mov byte [ebp - 0x11d], 0
call fcn.00479ff1
lea eax, [ebp - 0x11d]
mov byte [ebp - 0x11d], 0
call fcn.00479ff1
lea eax, [ebp - 0x11d]
mov byte [ebp - 0x11d], 0
call fcn.00479ff1
lea eax, [ebp - 0x11d]
mov byte [ebp - 0x11d], 0
call fcn.00479ff1
mov eax, dword [ebp - 0x130]
cmp word [eax], 0
jmp 0x479bd5
push dword [ebp - 0x134]
lea esi, [ebp - 0x30]
call fcn.00409096
mov ecx, esi
lea edi, [ebx + 0x2c]
mov byte [ebp - 4], 6
call fcn.004098b1
push 1
xor edi, edi
mov byte [ebp - 4], 3
call fcn.0040b028
mov esi, dword [ebp - 0x134]
push esi
call fcn.00560d1b
lea eax, [esi + eax*2 + 2]
cmp word [eax], di
pop ecx
mov dword [ebp - 0x134], eax
jne 0x479b98
jmp case.0x479a64.0
lea ecx, [ebp - 0x130]
cmp eax, ecx
je case.0x479a64.0
mov ecx, dword [eax]
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x130], ecx
mov ecx, dword [ebp - 0x12c]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x128]
mov dword [eax + 8], ecx
jmp case.0x479a64.0
mov esi, dword [ebp - 0x12c]
sub esi, dword [ebp - 0x130]
cmp esi, 4
je 0x479c6f
lea eax, [ebp - 0x1e4]
push eax
call fcn.00409ac6
mov edi, eax
push str.Invalid_DWORD_size:
push edi
mov byte [ebp - 4], 8
call fcn.0040fa1f
pop ecx
pop ecx
push esi
push edi
call fcn.0040d432
lea eax, [ebp - 0x4c]
push eax
mov eax, edi
call fcn.00409b30
mov byte [ebp - 4], 9
push 0x302
mov ecx, str.srcwindows_registry.cpp
lea eax, [ebp - 0x4c]
call fcn.00401f44
mov esi, dword [ebp - 0x140]
push 4
push dword [ebp - 0x130]
add esi, 4
push esi
call fcn.00560920
add esp, 0xc
cmp dword [ebp - 0x13c], 5
jne case.0x479a64.0
push dword [esi]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esi], eax
jmp case.0x479a64.0
mov esi, dword [ebp - 0x12c]
sub esi, dword [ebp - 0x130]
cmp esi, 8
je 0x479cf6
lea eax, [ebp - 0x11c]
push eax
call fcn.00409ac6
mov edi, eax
push str.Invalid_QWORD_size:
push edi
mov byte [ebp - 4], 0xa
call fcn.0040fa1f
pop ecx
pop ecx
push esi
push edi
call fcn.0040d432
lea eax, [ebp - 0x68]
push eax
mov eax, edi
call fcn.00409b30
mov byte [ebp - 4], 0xb
push 0x30e
mov ecx, str.srcwindows_registry.cpp
lea eax, [ebp - 0x68]
jmp 0x479c6a
mov eax, dword [ebp - 0x140]
push 8
push dword [ebp - 0x130]
add eax, 8
push eax
call fcn.00560920
add esp, 0xc
cmp dword [ebp - 0x130], 0
je 0x479d25
push dword [ebp - 0x130]
call fcn.0055e74f
pop ecx
mov eax, dword [ebp - 0x140]
call fcn.0056cf18
ret 4
lea eax, [ebp - 0x27c]
push eax
call fcn.00409ac6
mov esi, eax
push str.Invalid_registry_value_type
push esi
mov byte [ebp - 4], 0xc
call fcn.0040fa1f
pop ecx
pop ecx
push dword [ebp - 0x13c]
push esi
call fcn.0040d432
lea eax, [ebp - 0x84]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 0xd
push 0x313
mov ecx, str.srcwindows_registry.cpp
lea eax, [ebp - 0x84]
jmp 0x479c6a