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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x1009caa2
mov eax, dword fs:[0]
push eax
sub esp, 0x4ac
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x4a4], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x4b8]
mov dword fs:[0], eax
mov dword [esp + 0x24], ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [0x100f5084]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
mov edi, esi
mov dword [esp + 0x4c0], 0
mov dword [esp + 0x20], edi
push 0x430
lea eax, [esp + 0x80]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x7c], vtable.CHncRegistry.0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x49c], 0
mov dword [esp + 0x4a0], 0
mov dword [esp + 0x4a4], 0
mov dword [esp + 0x4a8], 0
xor eax, eax
xorps xmm0, xmm0
mov dword [esp + 0x44], eax
movsd qword [esp + 0x3c], xmm0
movsd qword [esp + 0x4c], xmm0
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x4c0], 3
mov dword [esp + 0x2c], eax
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
jne 0x10088c94
mov dword [esp + 0x2c], eax
jmp 0x10088fe6
mov ecx, dword [esp + 0x24]
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esp + 0x60]
test ecx, ecx
push eax
push dword [ebp + 8]
mov eax, dword [0x100fdc48]
cmovne eax, ecx
push eax
lea eax, [esp + 0x44]
push str._s_08X_04X
push eax
call sym.HncFoundation.dll_public:_int___cdecl_CHncStringW::Format_unsigned_short_int_const__
mov esi, dword [esp + 0x4c]
add esp, 0x14
mov dword [esp + 0x30], esi
test esi, esi
je 0x10088cf1
push esi
lea eax, [esp + 0x90]
push 0x208
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
mov dword [esp + 0x80], SysReAllocString
mov ecx, dword [esp + 0x24]
push ecx
mov dword [esp + 0x20], 0
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
jle 0x10088fda
jmp 0x10088d10
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x20]
push edx
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
test eax, eax
je 0x10088fc2
movzx eax, word [esp + 0x44]
mov edi, dword [esp + 0x1c]
push eax
push edi
lea eax, [esp + 0x28]
push str._08x_04x
push eax
call sym.HncFoundation.dll_public:_int___cdecl_CHncStringW::Format_unsigned_short_int_const__
mov dx, word [esp + 0x54]
add esp, 0x10
movzx eax, dx
dec eax
je 0x1008902a
sub eax, 0x7fff
je 0x10088e9a
dec eax
je 0x10088df2
mov eax, dword [esp + 0x44]
xor ecx, ecx
add eax, 0xfffffffe
cmp ax, 7
cmovbe ecx, dword [esp + 0x4c]
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x7c]
call sym.HncFoundation.dll_protected:_struct_HKEY______thiscall_CHncRegistry::GetRegistryKey_void_
mov dword [esp + 0x28], eax
test eax, eax
je 0x1008911b
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x6c]
xorps xmm0, xmm0
push 4
movdqa xmmword [esp + 0x68], xmm0
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x64]
push ecx
push 4
push 0
push edi
push eax
mov dword [esp + 0x7c], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esp + 0x64]
mov dword [esp + 0x14], eax
call fcn.10010900
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [esp + 0x14], eax
sete al
test eax, eax
je 0x10088fe2
jmp 0x10088fc2
mov eax, dword [esp + 0x4c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x78], eax
call sym.HncFoundation.dll_protected:_struct_HKEY______thiscall_CHncRegistry::GetRegistryKey_void_
mov dword [esp + 0x14], eax
test eax, eax
je 0x1008911b
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x6c]
xorps xmm0, xmm0
push 4
movdqa xmmword [esp + 0x68], xmm0
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x7c]
push ecx
push 4
push 0
push edi
push eax
mov dword [esp + 0x7c], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esp + 0x64]
mov dword [esp + 0x60], eax
call fcn.10010900
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [esp + 0x60], eax
sete al
test eax, eax
je 0x10088fe2
push dword [esp + 0x34]
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov eax, 0x8001
cmp word [esp + 0x48], ax
push esi
cmove ecx, dword [esp + 0x54]
push edx
call sym.HncFoundation.dll_public:_int___thiscall_CHncParameterArrayImpl::_SaveRegistry_unsigned_int__unsigned_short_int_const___int_const
test eax, eax
je 0x10088fe2
jmp 0x10088fc2
mov eax, dword [0x100f5084]
mov dword [esp + 0x28], eax
push edi
push esi
lea eax, [esp + 0x30]
mov byte [esp + 0x4c8], 4
push str._s_08X
push eax
call sym.HncFoundation.dll_public:_int___cdecl_CHncStringW::Format_unsigned_short_int_const__
mov eax, dword [esp + 0x5c]
add esp, 0x10
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], eax
call sym.HncFoundation.dll_protected:_struct_HKEY______thiscall_CHncRegistry::GetRegistryKey_void_
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], eax
test eax, eax
je 0x100890ec
xorps xmm0, xmm0
lea ecx, [esp + 0x6c]
push 4
movdqa xmmword [esp + 0x68], xmm0
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x78]
push ecx
push 4
push 0
push edi
push eax
mov dword [esp + 0x7c], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esp + 0x64]
mov esi, eax
call fcn.10010900
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
test eax, eax
je 0x100890ec
xor ecx, ecx
mov eax, 0x8000
cmp word [esp + 0x44], ax
cmove ecx, dword [esp + 0x4c]
mov dword [esp + 0x60], ecx
test ecx, ecx
je 0x10088f59
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [esp + 0x60]
push dword [esp + 0x34]
mov byte [esp + 0x4c4], 5
mov esi, dword [esp + 0x2c]
mov eax, dword [ecx]
push 1
push esi
push 0
push ecx
call dword [eax + 0x70]
mov byte [esp + 0x4c0], 4
test eax, eax
mov ecx, dword [esp + 0x60]
push ecx
sete byte [esp + 0x1f]
mov eax, dword [ecx]
call dword [eax + 8]
add esi, 0xfffffff4
cmp byte [esp + 0x1b], 0
jne 0x100890c4
mov byte [esp + 0x4c0], 3
cmp dword [esi], 0xfffffffe
je 0x10088fbe
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x10088fbe
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
inc dword [esp + 0x1c]
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp dword [esp + 0x1c], eax
jl 0x10088d10
mov dword [esp + 0x2c], 1
mov esi, dword [esp + 0x30]
mov byte [esp + 0x4c0], 2
test byte [esp + 0x46], 1
jne 0x1008914e
movzx eax, word [esp + 0x44]
cmp eax, 0x8001
jg 0x10089130
cmp eax, 0x8000
jge 0x10089124
dec eax
jne 0x1008914e
push dword [esp + 0x4c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x1008914e
cmp dx, 1
mov ecx, 0x100a4cdc
cmove ecx, dword [esp + 0x4c]
lea edi, [ecx + 2]
jmp 0x10089040
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10089040
sub ecx, edi
mov edi, 0x100a4cdc
sar ecx, 1
cmp dx, 1
cmove edi, dword [esp + 0x4c]
lea eax, [ecx*2 + 2]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x14], eax
call sym.HncFoundation.dll_protected:_struct_HKEY______thiscall_CHncRegistry::GetRegistryKey_void_
mov dword [esp + 0x60], eax
test eax, eax
je 0x1008911b
push dword [esp + 0x14]
xorps xmm0, xmm0
lea ecx, [esp + 0x70]
push edi
mov edi, dword [esp + 0x28]
push 3
push 0
push edi
movdqa xmmword [esp + 0x78], xmm0
push eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x7c], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esp + 0x64]
mov dword [esp + 0x14], eax
call fcn.10010900
push dword [esp + 0x60]
jmp 0x10088dd6
cmp dword [esi], 0xfffffffe
je 0x10088fe2
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x10088fe2
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x10088fe2
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff4
cmp dword [ecx], 0xfffffffe
je 0x10088fe2
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10088fe2
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x10088fe2
mov edi, dword [esp + 0x20]
jmp 0x10088fe2
mov eax, dword [esp + 0x4c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x1008914e
cmp eax, 0x8002
jne 0x1008914e
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x1008914e
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x1008914e
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x14]
movsd xmm0, qword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x84]
movsd qword [esp + 0x4c], xmm0
mov dword [esp + 0x7c], vtable.CHncRegistry.0
test eax, eax
je 0x1008917e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x4a0]
test eax, eax
je 0x1008919e
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [esp + 0x4a0], 0
add edi, 0xfffffff4
or ecx, 0xffffffff
cmp dword [edi], 0xfffffffe
je 0x100891c5
mov eax, ecx
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x100891c5
push edi
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
call edi
add esp, 4
or ecx, 0xffffffff
jmp 0x100891cb
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esi, 0xfffffff4
cmp dword [esi], 0xfffffffe
je 0x100891e2
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x100891e2
push esi
call edi
add esp, 4
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x4b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x4a4]
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0xc