Function at 0x47e469
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a1b86
mov eax, dword fs:[0]
push eax
sub esp, 0x3f8
mov eax, dword [0x631350]
xor eax, esp
mov dword [esp + 0x3f0], eax
push ebx
push esi
push edi
mov eax, dword [0x631350]
xor eax, esp
push eax
lea eax, [esp + 0x408]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
cmp dword [esi], ebx
mov dword [esp + 0x18], eax
setne al
movzx eax, al
push 0x278
push eax
mov edi, str.srcwindows_registry.cpp
mov dword [esp + 0x2c], esi
call fcn.0047f69c
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
jb 0x47e4f1
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push ecx
push ebx
lea ecx, [esp + 0x24]
push ecx
push ebx
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, ebx
je 0x47e595
lea eax, [esp + 0x2c]
push eax
call fcn.00403aba
mov dword [esp + 0x18], eax
push str.RegQueryValueExW_failed_with
push eax
mov dword [esp + 0x418], ebx
call fcn.0040635f
pop ecx
pop ecx
push esi
push dword [esp + 0x1c]
call fcn.004108f3
lea eax, [esp + 0x290]
push eax
mov eax, dword [esp + 0x1c]
call fcn.00403b24
mov byte [esp + 0x410], 1
cmp esi, ebx
jle 0x47e565
and esi, 0xffff
or esi, 0x80070000
push 1
push 0x28b
push edi
push esi
lea eax, [esp + 0x2a0]
push eax
lea eax, [esp + 0x380]
push eax
call fcn.0047d385
push 0x60763c
lea eax, [esp + 0x370]
push eax
call fcn.00566ed2
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x290]
mov dword [esp + 0x290], ebx
mov dword [esp + 0x294], ebx
mov dword [esp + 0x298], ebx
call fcn.00404170
mov dword [esp + 0x410], 2
cmp dword [esp + 0x20], ebx
je 0x47e689
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x14], 8
jb 0x47e5db
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push ecx
push dword [esp + 0x294]
lea ecx, [esp + 0x24]
push ecx
push ebx
push eax
mov eax, dword [esp + 0x38]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, ebx
je 0x47e689
lea eax, [esp + 0x2c]
push eax
call fcn.00403aba
mov dword [esp + 0x18], eax
push str.RegQueryValueExW_failed_with
push eax
mov byte [esp + 0x418], 3
call fcn.0040635f
pop ecx
pop ecx
push esi
push dword [esp + 0x1c]
call fcn.004108f3
lea eax, [esp + 0x2fc]
push eax
mov eax, dword [esp + 0x1c]
call fcn.00403b24
mov byte [esp + 0x410], 4
cmp esi, ebx
jle 0x47e65a
and esi, 0xffff
or esi, 0x80070000
push 1
push 0x29f
push edi
push esi
lea eax, [esp + 0x30c]
push eax
lea eax, [esp + 0x380]
push eax
call fcn.0047d385
push 0x60763c
lea eax, [esp + 0x370]
jmp 0x47e58f
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x290]
call fcn.00404170
xor eax, eax
mov dword [esp + 0x2d0], 7
mov dword [esp + 0x2cc], ebx
mov word [esp + 0x2bc], ax
mov dword [esp + 0x2d8], ebx
mov dword [esp + 0x2dc], ebx
mov dword [esp + 0x2e0], ebx
mov dword [esp + 0x2e8], ebx
mov dword [esp + 0x2ec], ebx
mov dword [esp + 0x2f0], ebx
mov byte [esp + 0x410], 5
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2ac], eax
cmp eax, 0xb
ja case.default.0x47e702
movzx eax, byte [eax + 0x47eb25]
jmp dword [eax*4 + 0x47eb0d]
mov esi, dword [esp + 0x294]
mov edi, dword [esp + 0x290]
mov eax, esi
sub eax, edi
and eax, 1
je 0x47e737
sub esi, eax
sub esi, edi
lea eax, [esp + 0x290]
call fcn.00404170
mov edi, dword [esp + 0x290]
cmp edi, dword [esp + 0x294]
je case.0x47e702.0
mov eax, dword [esp + 0x294]
sub eax, edi
lea ecx, [eax - 1]
cmp eax, ecx
ja 0x47e75e
push str.invalid_vector_T__subscript
call fcn.0057d537
cmp byte [ecx + edi], bl
jne 0x47e788
lea ecx, [eax - 2]
cmp eax, ecx
jbe 0x47e754
lea eax, [ecx + edi]
cmp byte [eax], bl
jne 0x47e788
dec dword [esp + 0x294]
cmp edi, dword [esp + 0x294]
je 0x47e788
dec dword [esp + 0x294]
mov esi, dword [esp + 0x294]
sub esi, edi
mov eax, esi
shr eax, 1
lea ecx, [esp + 0x2bc]
call fcn.0040dd03
cmp dword [esp + 0x2d0], 8
mov eax, dword [esp + 0x2bc]
jae 0x47e7b9
lea eax, [esp + 0x2bc]
push esi
push edi
jmp 0x47e9f7
mov esi, dword [esp + 0x294]
mov eax, esi
sub eax, dword [esp + 0x290]
and eax, 1
je 0x47e7ea
sub esi, eax
sub esi, dword [esp + 0x290]
lea eax, [esp + 0x290]
call fcn.00404170
mov eax, dword [esp + 0x294]
cmp dword [esp + 0x290], eax
je case.0x47e702.0
lea eax, [esp + 0x17]
lea esi, [esp + 0x290]
mov byte [esp + 0x17], bl
call fcn.0047edd8
lea eax, [esp + 0x17]
mov byte [esp + 0x17], bl
call fcn.0047edd8
lea eax, [esp + 0x17]
mov byte [esp + 0x17], bl
call fcn.0047edd8
lea eax, [esp + 0x17]
mov byte [esp + 0x17], bl
call fcn.0047edd8
mov eax, dword [esp + 0x290]
jmp 0x47e888
push dword [esp + 0x18]
lea esi, [esp + 0x300]
call fcn.004037ae
mov ecx, esi
lea edi, [esp + 0x2d8]
mov byte [esp + 0x410], 6
call fcn.0040e182
push 1
xor edi, edi
mov byte [esp + 0x414], 5
call fcn.00404589
mov esi, dword [esp + 0x18]
push esi
call fcn.0056039b
pop ecx
lea eax, [esi + eax*2 + 2]
mov dword [esp + 0x18], eax
cmp word [eax], bx
jne 0x47e842
jmp case.0x47e702.0
mov eax, dword [esp + 0x290]
mov dword [esp + 0x2e8], eax
mov eax, dword [esp + 0x294]
mov dword [esp + 0x2ec], eax
mov eax, dword [esp + 0x298]
mov dword [esp + 0x290], ebx
mov dword [esp + 0x294], ebx
mov dword [esp + 0x2f0], eax
mov dword [esp + 0x298], ebx
jmp case.0x47e702.0
mov esi, dword [esp + 0x294]
sub esi, dword [esp + 0x290]
cmp esi, 4
je 0x47e942
lea eax, [esp + 0x1f4]
push eax
call fcn.00403aba
mov ebx, eax
push str.Invalid_DWORD_size:
push ebx
mov byte [esp + 0x418], 8
call fcn.0040635f
pop ecx
pop ecx
push esi
push ebx
call fcn.004109e7
lea eax, [esp + 0x318]
push eax
mov eax, ebx
call fcn.00403b24
mov byte [esp + 0x410], 9
push 0x302
mov ecx, edi
lea eax, [esp + 0x31c]
call fcn.0040277f
push 4
push dword [esp + 0x294]
lea eax, [esp + 0x2b8]
push eax
call fcn.0055fe20
add esp, 0xc
cmp dword [esp + 0x1c], 5
jne case.0x47e702.0
push dword [esp + 0x2b0]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp + 0x2b0], eax
jmp case.0x47e702.0
mov esi, dword [esp + 0x294]
sub esi, dword [esp + 0x290]
cmp esi, 8
je 0x47e9e7
lea eax, [esp + 0xc4]
push eax
call fcn.00403aba
mov ebx, eax
push str.Invalid_QWORD_size:
push ebx
mov byte [esp + 0x418], 0xa
call fcn.0040635f
pop ecx
pop ecx
push esi
push ebx
call fcn.004109e7
lea eax, [esp + 0x350]
push eax
mov eax, ebx
call fcn.00403b24
mov byte [esp + 0x410], 0xb
push 0x30e
mov ecx, edi
lea eax, [esp + 0x354]
jmp 0x47e93d
push 8
push dword [esp + 0x294]
lea eax, [esp + 0x2bc]
push eax
call fcn.0055fe20
add esp, 0xc
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x2ac]
mov dword [edi], eax
mov eax, dword [esp + 0x2b0]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x2b4]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x2b8]
mov dword [edi + 0xc], eax
lea eax, [esp + 0x2bc]
push eax
lea esi, [edi + 0x10]
call fcn.0040dc52
lea eax, [edi + 0x2c]
push eax
lea ecx, [esp + 0x2dc]
mov byte [esp + 0x414], 0xe
call fcn.0040dfee
lea eax, [edi + 0x3c]
push eax
lea ecx, [esp + 0x2ec]
mov byte [esp + 0x414], 0xf
call fcn.0047ed78
lea eax, [esp + 0x2ac]
call fcn.00409e7a
cmp dword [esp + 0x290], ebx
je 0x47ea8d
push dword [esp + 0x290]
call fcn.0055da69
pop ecx
mov eax, edi
mov ecx, dword [esp + 0x408]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3f0]
xor ecx, esp
call fcn.0055c9d4
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x15c]
push eax
call fcn.00403aba
mov esi, eax
push str.Invalid_registry_value_type
push esi
mov byte [esp + 0x418], 0xc
call fcn.0040635f
pop ecx
pop ecx
push dword [esp + 0x1c]
push esi
call fcn.004109e7
lea eax, [esp + 0x334]
push eax
mov eax, esi
call fcn.00403b24
mov byte [esp + 0x410], 0xd
push 0x313
mov ecx, edi
lea eax, [esp + 0x338]
jmp 0x47e93d