Function at 0x403380
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x411297
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x4187e4]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push edi
mov eax, dword [0x4187e4]
xor eax, esp
push eax
lea eax, [esp + 0x284]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x294]
mov dword [esp + 0x10], 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], 0x208
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov ebx, 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x28c], ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [esp + 0x28c], 2
test ebp, ebp
jne 0x403417
push str.SOFTWARESangforSecurityDesktop
lea ecx, [esp + 0x28]
call dword [0x412168]
push str.AppHome
jmp 0x403433
cmp ebp, ebx
jne 0x403532
push str.SOFTWARESangforSSLSangforSDUI
lea ecx, [esp + 0x28]
call dword [0x412168]
push str.SangforSDPath
lea ecx, [esp + 0x44]
call dword [0x412168]
mov eax, dword [esp + 0x28]
mov edi, 8
cmp dword [esp + 0x3c], edi
jae 0x403450
lea eax, [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40352f
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40352f
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], edi
jae 0x40348a
lea eax, [esp + 0x44]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x7c]
push edx
lea edx, [esp + 0x24]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4034ca
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x412cec
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
jmp 0x403547
mov ecx, dword [esp + 0x18]
shr ecx, 1
xor edx, edx
lea eax, [esp + 0x78]
mov word [esp + ecx*2 + 0x76], dx
push eax
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x28c], 3
test ebp, ebp
jne 0x40350a
lea ecx, [esp + 0x5c]
call fcn.00403910
push str.SangforSD.dll
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x28c], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x40354b
push eax
jmp 0x4034b5
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x412cec
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0x28c], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x24]
mov byte [esp + 0x28c], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0040f466
add esp, 0x280
ret