Function at 0x10087d50
Capabilities:
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x1009c9ad
mov eax, dword fs:[0]
push eax
sub esp, 0x8fc
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x8f4], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x908]
mov dword fs:[0], eax
mov dword [esp + 0x24], ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [0x100f5084]
mov dword [esp + 0x28], eax
mov dword [esp + 0x910], 0
mov dword [esp + 0x18], eax
push 0x430
lea eax, [esp + 0xa0]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x9c], vtable.CHncRegistry.0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0x4bc], 0
mov dword [esp + 0x4c0], 0
mov dword [esp + 0x4c4], 0
mov dword [esp + 0x4c8], 0
xor eax, eax
xorps xmm0, xmm0
mov dword [esp + 0x34], eax
movsd qword [esp + 0x3c], xmm0
mov dword [esp + 0x44], eax
mov edi, dword [ebp + 0xc]
mov byte [esp + 0x910], 3
mov dword [esp + 0x20], eax
test edi, edi
jne 0x10087f43
push 0x430
lea eax, [esp + 0x4d0]
push edi
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x4cc], 0x100a527c
mov dword [esp + 0x4d0], edi
mov dword [esp + 0x4d4], edi
mov dword [esp + 0x4d8], edi
mov dword [esp + 0x8ec], edi
mov dword [esp + 0x8f0], edi
mov dword [esp + 0x8f4], edi
mov dword [esp + 0x8f8], edi
test esi, esi
mov byte [esp + 0x910], 4
mov eax, dword [0x100fdc48]
cmovne eax, esi
test eax, eax
je 0x10087ed8
push eax
lea eax, [esp + 0x4e0]
push 0x208
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
mov dword [esp + 0x4d0], 0x80000001
mov ecx, dword [esp + 0x24]
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
lea eax, [esp + 0x1c]
push str._08X
push eax
call sym.HncFoundation.dll_public:_int___cdecl_CHncStringW::Format_unsigned_short_int_const__
add esp, 0xc
lea ecx, [esp + 0x4cc]
push 0
push 0
push dword [esp + 0x20]
call sym.HncFoundation.dll_public:_int___thiscall_CHncRegistry::DeleteSubKey_unsigned_short_int_const___unsigned_short_int_const___struct_HKEY____
mov byte [esp + 0x910], 3
mov eax, dword [esp + 0x4d4]
mov dword [esp + 0x4cc], 0x100a527c
test eax, eax
je 0x10087f2e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x8f0]
test eax, eax
je 0x10087f43
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov ecx, dword [esp + 0x24]
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
mov eax, dword [0x100fdc48]
test esi, esi
mov ecx, str._s__08X
cmovne eax, esi
test edi, edi
push eax
mov eax, str._s_08X
cmovne eax, ecx
push eax
lea eax, [esp + 0x34]
push eax
call sym.HncFoundation.dll_public:_int___cdecl_CHncStringW::Format_unsigned_short_int_const__
mov edi, dword [esp + 0x38]
add esp, 0x10
test edi, edi
je 0x10087fa0
push edi
lea eax, [esp + 0xb0]
push 0x208
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
mov dword [esp + 0xa0], SysReAllocString
mov esi, dword [esp + 0x24]
push esi
mov eax, dword [esi]
call dword [eax + 0x14]
mov dword [esp + 0x50], eax
test eax, eax
je 0x100883e7
mov eax, dword [esi]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x54]
push ecx
push esi
call dword [eax + 0x18]
mov esi, eax
movzx eax, word [esp + 0x34]
push eax
push esi
lea eax, [esp + 0x20]
mov dword [esp + 0x78], esi
push str._08X__04X
push eax
call sym.HncFoundation.dll_public:_int___cdecl_CHncStringW::Format_unsigned_short_int_const__
mov dx, word [esp + 0x44]
add esp, 0x10
movzx eax, dx
cmp eax, 0x8001
jg 0x100882b6
je 0x100881bd
dec eax
je 0x10088149
sub eax, 0x7fff
jne 0x100882c1
mov eax, dword [0x100f5084]
mov dword [esp + 0x14], eax
push esi
push edi
lea eax, [esp + 0x1c]
mov byte [esp + 0x918], 5
push str._s_08X
push eax
call sym.HncFoundation.dll_public:_int___cdecl_CHncStringW::Format_unsigned_short_int_const__
mov eax, dword [esp + 0x4c]
add esp, 0x10
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x8c], eax
call sym.HncFoundation.dll_protected:_struct_HKEY______thiscall_CHncRegistry::GetRegistryKey_void_
mov dword [esp + 0x30], eax
test eax, eax
je 0x100883c1
xorps xmm0, xmm0
lea ecx, [esp + 0x5c]
push 4
movdqa xmmword [esp + 0x58], xmm0
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x90]
push ecx
push 4
push 0
push dword [esp + 0x28]
mov dword [esp + 0x68], 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esp + 0x54]
mov esi, eax
call fcn.10010900
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
test esi, esi
sete cl
test ecx, ecx
je 0x100883c1
xor ecx, ecx
mov eax, 0x8000
cmp word [esp + 0x34], ax
cmove ecx, dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x100880d7
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [esp + 0x30]
push dword [esp + 0x2c]
mov byte [esp + 0x914], 6
mov esi, dword [esp + 0x18]
mov eax, dword [ecx]
push 1
push esi
push 0
push ecx
call dword [eax + 0x70]
mov byte [esp + 0x910], 5
test eax, eax
mov ecx, dword [esp + 0x30]
push ecx
sete byte [esp + 0x23]
mov eax, dword [ecx]
call dword [eax + 8]
add esi, 0xfffffff4
cmp byte [esp + 0x1f], 0
jne 0x100883a2
mov byte [esp + 0x910], 3
cmp dword [esi], 0xfffffffe
je 0x10088392
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x10088392
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x10088392
cmp dx, 1
mov ecx, 0x100a4cdc
cmove ecx, dword [esp + 0x3c]
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10088160
sub ecx, esi
mov esi, 0x100a4cdc
sar ecx, 1
cmp dx, 1
cmove esi, dword [esp + 0x3c]
lea eax, [ecx*2 + 2]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x30], eax
call sym.HncFoundation.dll_protected:_struct_HKEY______thiscall_CHncRegistry::GetRegistryKey_void_
mov dword [esp + 0x14], eax
test eax, eax
je 0x100883ef
push dword [esp + 0x30]
xorps xmm0, xmm0
lea ecx, [esp + 0x60]
push esi
movdqa xmmword [esp + 0x5c], xmm0
mov dword [esp + 0x60], ecx
push 3
jmp 0x1008835d
mov eax, dword [esp + 0x3c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov dword [esp + 0x90], eax
xorps xmm0, xmm0
movdqa xmmword [esp + 0x54], xmm0
lea eax, [esp + 0x5c]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
push eax
push 0
push 0x2001f
push 0
push 0
push 0
lea eax, [esp + 0xc8]
mov dword [esp + 0x70], 0
push eax
push dword [esp + 0xc0]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea ecx, [esp + 0x54]
call fcn.10010900
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
test eax, eax
je 0x100883ef
xorps xmm0, xmm0
lea ecx, [esp + 0x7c]
push 4
movdqa xmmword [esp + 0x78], xmm0
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x94]
push ecx
push 4
push 0
push dword [esp + 0x28]
mov dword [esp + 0x88], 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esp + 0x74]
mov esi, eax
call fcn.10010900
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
test esi, esi
sete cl
test ecx, ecx
je 0x100883ef
push dword [esp + 0x2c]
xor ecx, ecx
mov eax, 0x8001
cmp word [esp + 0x38], ax
push edi
push dword [esp + 0x78]
cmove ecx, dword [esp + 0x48]
call sym.HncFoundation.dll_public:_int___thiscall_CHncParameterArrayImpl::_SaveRegistry_unsigned_int__unsigned_short_int_const___int_const
test eax, eax
jmp 0x10088390
cmp eax, 0x8002
je 0x10088392
mov eax, dword [esp + 0x34]
xor ecx, ecx
add eax, 0xfffffffe
mov dword [esp + 0x30], 0
cmp ax, 7
xorps xmm0, xmm0
movdqa xmmword [esp + 0x74], xmm0
lea eax, [esp + 0x7c]
cmovbe ecx, dword [esp + 0x3c]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x74], ecx
push eax
push 0
push 0x2001f
push 0
push 0
push 0
lea eax, [esp + 0xc8]
mov dword [esp + 0x90], 0
push eax
push dword [esp + 0xc0]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea ecx, [esp + 0x74]
call fcn.10010900
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
test eax, eax
je 0x100883ef
xorps xmm0, xmm0
lea ecx, [esp + 0x5c]
movdqa xmmword [esp + 0x54], xmm0
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x70]
push 4
push ecx
push 4
push 0
push dword [esp + 0x28]
mov dword [esp + 0x68], 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esp + 0x54]
mov esi, eax
call fcn.10010900
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
test esi, esi
sete cl
test ecx, ecx
je 0x100883ef
cmp dword [esp + 0x50], 0
je 0x100883e7
mov esi, dword [esp + 0x24]
jmp 0x10087fb6
cmp dword [esi], 0xfffffffe
je 0x100883ef
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x100883ef
push esi
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
call esi
add esp, 4
jmp 0x100883f5
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff4
cmp dword [ecx], 0xfffffffe
je 0x100883ef
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
test eax, eax
jg 0x100883f5
push ecx
call esi
add esp, 4
jmp 0x100883f5
mov dword [esp + 0x20], 1
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
lea ecx, [esp + 0x34]
mov byte [esp + 0x910], 2
call sym.HncFoundation.dll_public:_void___thiscall_tagHNCPARAM::ParamClear_void_
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x9c], vtable.CHncRegistry.0
test eax, eax
je 0x10088423
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x4c0]
test eax, eax
je 0x1008843f
push eax
call esi
add esp, 4
mov dword [esp + 0x4c0], 0
mov ecx, dword [esp + 0x18]
or edx, 0xffffffff
add ecx, 0xfffffff4
cmp dword [ecx], 0xfffffffe
je 0x10088462
mov eax, edx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10088462
push ecx
call esi
add esp, 4
or edx, 0xffffffff
add edi, 0xfffffff4
cmp dword [edi], 0xfffffffe
je 0x10088479
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x10088479
push edi
call esi
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x908]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x8f4]
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0xc