Function at 0x50d260
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568a83
mov eax, dword fs:[0]
push eax
sub esp, 0x3b4
mov eax, dword [0x5d21e8]
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
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xb4]
push 0xa4
mov dword [ebp - 0x3c0], ebx
push 0
mov dword [ebp - 0x3bc], 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x3a0], ebx
mov dword [ebp - 0x3b8], 3
call fcn.00534a40
add esp, 0xc
mov dword [ebp - 0x3b4], 0xa4
lea eax, [ebp - 0x3b0]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion_
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x3ac], eax
test eax, eax
jne 0x50d69f
lea eax, [ebp - 0x3b4]
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x3b8]
push eax
push 0
push str.DigitalProductId
push dword [ebp - 0x3b0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x3b0]
mov esi, eax
mov dword [ebp - 0x3ac], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x50d7ab
push 0
lea ecx, [ebp - 0x28c]
call fcn.00502d30
mov edi, eax
mov ebx, dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
push ecx
mov esi, esp
mov dword [ebp - 4], 1
push 0xffffffffffffffff
push str.initialReadOfProductIdRegistryFailed
call ebx
add esp, 8
mov dword [esi], eax
mov ecx, edi
call fcn.00505810
sub esp, 0x10
mov edi, eax
mov ecx, esp
mov dword [ebp - 0x39c], esp
push dword [ebp - 0x3ac]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_int_]
push ecx
mov esi, esp
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push str.errorCode
call ebx
add esp, 8
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00504e80
push 3
mov ecx, eax
call fcn.00504e60
push ecx
mov esi, esp
mov edi, eax
push 0xffffffffffffffff
push str.SystemInfoWin
call ebx
add esp, 8
mov dword [esi], eax
mov ecx, edi
call fcn.00505760
push 0x1de
mov ecx, eax
call fcn.00504e70
sub esp, 0x68
mov edi, eax
mov ebx, esp
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x39c], esp
push str.Amazon::SystemInfo::getWindowsLicense
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_char_const__]
push ecx
mov esi, esp
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push 0x56e5f8
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00504e80
push eax
mov ecx, ebx
call fcn.00425d30
lea ecx, [ebp - 0x394]
call fcn.00425bf0
lea ecx, [ebp - 0x394]
call fcn.005066c0
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 0
call fcn.00502f90
lea eax, [ebp - 0x3b0]
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion_
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x3ac], eax
test eax, eax
jne 0x50d586
lea eax, [ebp - 0x3b4]
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x3b8]
push eax
push 0
push str.DigitalProductId
push dword [ebp - 0x3b0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test ebx, ebx
je 0x50d68e
push 0
lea ecx, [ebp - 0x11c]
call fcn.00502d30
mov edi, eax
push ecx
mov esi, esp
mov dword [ebp - 4], 4
push 0xffffffffffffffff
push str.readProductIdRegistryFailed
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
call fcn.00505810
sub esp, 0x10
mov edi, eax
mov eax, dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_int_]
mov ecx, esp
mov dword [ebp - 0x39c], esp
push ebx
call eax
mov ebx, dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
push ecx
mov esi, esp
mov byte [ebp - 4], 5
push 0xffffffffffffffff
push str.errorCode
call ebx
add esp, 8
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00504e80
push 4
mov ecx, eax
call fcn.00504e60
push ecx
mov esi, esp
mov edi, eax
push 0xffffffffffffffff
push str.SystemInfoWin
call ebx
add esp, 8
mov dword [esi], eax
mov ecx, edi
call fcn.00505760
push 0x1e8
mov ecx, eax
call fcn.00504e70
sub esp, 0x68
mov edi, eax
mov eax, dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_char_const__]
mov ebx, esp
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x39c], esp
push str.Amazon::SystemInfo::getWindowsLicense
call eax
push ecx
mov esi, esp
mov byte [ebp - 4], 6
push 0xffffffffffffffff
push 0x56e5f8
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
mov dword [esi], eax
mov byte [ebp - 4], 4
jmp 0x50d65b
push 0
lea ecx, [ebp - 0x11c]
call fcn.00502d30
mov edi, eax
mov ebx, dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
push ecx
mov esi, esp
mov dword [ebp - 4], 7
push 0xffffffffffffffff
push str.openProductIdRegistryFailed
call ebx
add esp, 8
mov dword [esi], eax
mov ecx, edi
call fcn.00505810
sub esp, 0x10
mov edi, eax
mov eax, dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_int_]
mov ecx, esp
mov dword [ebp - 0x39c], esp
push dword [ebp - 0x3ac]
call eax
push ecx
mov esi, esp
mov byte [ebp - 4], 8
push 0xffffffffffffffff
push str.errorCode
call ebx
add esp, 8
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.00504e80
push 4
mov ecx, eax
call fcn.00504e60
push ecx
mov esi, esp
mov edi, eax
push 0xffffffffffffffff
push str.SystemInfoWin
call ebx
add esp, 8
mov dword [esi], eax
mov ecx, edi
call fcn.00505760
push 0x1ee
mov ecx, eax
call fcn.00504e70
sub esp, 0x68
mov edi, eax
mov eax, dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_char_const__]
mov ebx, esp
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x39c], esp
push str.Amazon::SystemInfo::getWindowsLicense
call eax
push ecx
mov esi, esp
mov byte [ebp - 4], 9
push 0xffffffffffffffff
push 0x56e5f8
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
mov dword [esi], eax
mov byte [ebp - 4], 7
add esp, 8
mov ecx, edi
call fcn.00504e80
push eax
mov ecx, ebx
call fcn.00425d30
lea ecx, [ebp - 0x224]
call fcn.00425bf0
lea ecx, [ebp - 0x224]
call fcn.005066c0
lea ecx, [ebp - 0x11c]
call fcn.00502f90
push dword [ebp - 0x3b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x50d7a5
push 0
lea ecx, [ebp - 0x11c]
call fcn.00502d30
mov edi, eax
mov ebx, dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
push ecx
mov esi, esp
mov dword [ebp - 4], 0xa
push 0xffffffffffffffff
push str.initialOpenOfProductIdRegistryFailed
call ebx
add esp, 8
mov dword [esi], eax
mov ecx, edi
call fcn.00505810
sub esp, 0x10
mov edi, eax
mov ecx, esp
mov dword [ebp - 0x39c], esp
push dword [ebp - 0x3ac]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_int_]
push ecx
mov esi, esp
mov byte [ebp - 4], 0xb
push 0xffffffffffffffff
push str.errorCode
call ebx
add esp, 8
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 0xa
call fcn.00504e80
push 3
mov ecx, eax
call fcn.00504e60
push ecx
mov esi, esp
mov edi, eax
push 0xffffffffffffffff
push str.SystemInfoWin
call ebx
add esp, 8
mov dword [esi], eax
mov ecx, edi
call fcn.00505760
push 0x1f7
mov ecx, eax
call fcn.00504e70
sub esp, 0x68
mov edi, eax
mov ebx, esp
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x39c], esp
push str.Amazon::SystemInfo::getWindowsLicense
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_char_const__]
push ecx
mov esi, esp
mov byte [ebp - 4], 0xc
push 0xffffffffffffffff
push 0x56e5f8
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 0xa
call fcn.00504e80
push eax
mov ecx, ebx
call fcn.00425d30
lea ecx, [ebp - 0x224]
call fcn.00425bf0
lea ecx, [ebp - 0x224]
call fcn.005066c0
lea ecx, [ebp - 0x11c]
call fcn.00502f90
mov ebx, dword [ebp - 0x3a0]
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x3bc], 1
mov dword [ebp - 0x3ac], eax
nop dword [eax + eax]
lea eax, [ebp + eax - 0xb4]
mov dword [ebp - 0x39c], eax
movzx eax, byte [eax]
shr eax, 4
and eax, 0x8000000f
jns 0x50d7ff
dec eax
or eax, 0xfffffff0
inc eax
mov ecx, dword [ebx + 0x14]
mov dl, byte [eax + 0x571144]
mov edi, dword [ebx + 0x10]
mov byte [ebp - 0x395], dl
mov dword [ebp - 0x3a0], ecx
cmp edi, ecx
jae 0x50d837
lea eax, [edi + 1]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp ecx, 0x10
jb 0x50d82a
mov eax, dword [ebx]
mov byte [eax + edi], dl
mov byte [eax + edi + 1], 0
jmp 0x50d95f
mov eax, bind
sub eax, edi
cmp eax, 1
jb 0x50dafd
lea esi, [edi + 1]
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x50d870
mov eax, bind
mov esi, bind
push eax
call fcn.00421a60
mov ecx, dword [ebp - 0x3a0]
add esp, 4
jmp 0x50d8d4
mov edx, ecx
mov eax, bind
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x50d89a
mov eax, bind
mov esi, bind
push eax
call fcn.00421a60
mov ecx, dword [ebp - 0x3a0]
add esp, 4
jmp 0x50d8d4
lea eax, [ecx + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x50d8bd
push eax
call fcn.00421a60
mov ecx, dword [ebp - 0x3a0]
add esp, 4
jmp 0x50d8d4
test eax, eax
je 0x50d8d2
push eax
call fcn.0053274c
mov ecx, dword [ebp - 0x3a0]
add esp, 4
jmp 0x50d8d4
xor eax, eax
mov dword [ebx + 0x14], esi
lea edx, [edi + 1]
mov dword [ebp - 0x3a4], eax
lea esi, [eax + edi]
mov dword [ebx + 0x10], edx
mov dword [ebp - 0x3a8], esi
push edi
cmp ecx, 0x10
jb 0x50d941
mov esi, dword [ebx]
push esi
push eax
call fcn.005344c0
mov eax, dword [ebp - 0x3a8]
add esp, 0xc
mov cl, byte [ebp - 0x395]
mov byte [eax], cl
mov ecx, dword [ebp - 0x3a0]
inc ecx
mov byte [eax + 1], 0
cmp ecx, 0x1000
jb 0x50d935
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x50db02
mov esi, edx
push ecx
push esi
call fcn.0053277c
add esp, 8
jmp 0x50d957
push ebx
push eax
call fcn.005344c0
mov cl, byte [ebp - 0x395]
add esp, 0xc
mov byte [esi], cl
mov byte [esi + 1], 0
mov eax, dword [ebp - 0x3a4]
mov dword [ebx], eax
mov eax, dword [ebp - 0x39c]
mov ecx, dword [ebx + 0x14]
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x3a0], ecx
movzx eax, byte [eax]
and eax, 0xf
mov dl, byte [eax + 0x571144]
mov byte [ebp - 0x395], dl
cmp edi, ecx
jae 0x50d9a3
lea eax, [edi + 1]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp ecx, 0x10
jb 0x50d996
mov eax, dword [ebx]
mov byte [eax + edi], dl
mov byte [eax + edi + 1], 0
jmp 0x50dac7
mov eax, bind
sub eax, edi
cmp eax, 1
jb 0x50dafd
lea esi, [edi + 1]
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x50d9dc
mov eax, bind
mov esi, bind
push eax
call fcn.00421a60
mov ecx, dword [ebp - 0x3a0]
add esp, 4
jmp 0x50da40
mov edx, ecx
mov eax, bind
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x50da06
mov eax, bind
mov esi, bind
push eax
call fcn.00421a60
mov ecx, dword [ebp - 0x3a0]
add esp, 4
jmp 0x50da40
lea eax, [ecx + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x50da29
push eax
call fcn.00421a60
mov ecx, dword [ebp - 0x3a0]
add esp, 4
jmp 0x50da40
test eax, eax
je 0x50da3e
push eax
call fcn.0053274c
mov ecx, dword [ebp - 0x3a0]
add esp, 4
jmp 0x50da40
xor eax, eax
mov dword [ebx + 0x14], esi
lea edx, [edi + 1]
mov dword [ebp - 0x3a4], eax
lea esi, [eax + edi]
mov dword [ebx + 0x10], edx
mov dword [ebp - 0x39c], esi
push edi
cmp ecx, 0x10
jb 0x50daa9
mov esi, dword [ebx]
push esi
push eax
call fcn.005344c0
mov eax, dword [ebp - 0x39c]
add esp, 0xc
mov cl, byte [ebp - 0x395]
mov byte [eax], cl
mov ecx, dword [ebp - 0x3a0]
inc ecx
mov byte [eax + 1], 0
cmp ecx, 0x1000
jb 0x50da9d
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x50db02
mov esi, edx
push ecx
push esi
call fcn.0053277c
add esp, 8
jmp 0x50dabf
push ebx
push eax
call fcn.005344c0
mov cl, byte [ebp - 0x395]
add esp, 0xc
mov byte [esi], cl
mov byte [esi + 1], 0
mov eax, dword [ebp - 0x3a4]
mov dword [ebx], eax
mov eax, dword [ebp - 0x3ac]
inc eax
mov dword [ebp - 0x3ac], eax
cmp eax, 0xa4
jb 0x50d7e0
mov eax, ebx
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.005329db
mov esp, ebp
pop ebp
ret
call fcn.00423480
call fcn.005379bf
int3