Function at 0x10055ab0
Capabilities:
Access peb ldr_data
Get thread local storage value
Query or enumerate registry value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10086300
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov dword [esp + 0x10], edx
mov esi, ecx
mov dword [esp + 0x14], esi
push esi
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], 0
push str.ClassesCLSID_sLocalServer32
push eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
call fcn.1003a800
add esp, 0xc
push esi
lea eax, [esp + 0x20]
mov dword [esp + 0x64], 0
push str.COM_IsClassToVirtualize:_checking_if_CLSID__s_exists_in_HKLM_or_HKCU
push eax
call fcn.1003a800
add esp, 0xc
mov byte [esp + 0x60], 1
mov edx, dword [esp + 0x1c]
call fcn.100394f0
mov byte [esp + 0x60], 0
or edi, 0xffffffff
mov edx, dword [esp + 0x1c]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10055b5e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.Registry_CurrentUser_Software
lea ecx, [esp + 0x34]
call fcn.10022bb0
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 2
push ecx
mov edx, eax
lea ecx, [esp + 0x38]
call fcn.1003ee20
add esp, 4
mov byte [esp + 0x60], 2
mov ecx, edi
mov edx, dword [esp + 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10055ba6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x60], 0
mov ecx, edi
mov edx, dword [esp + 0x30]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10055bc8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x1009c728
lea ecx, [esp + 0x34]
call fcn.10022bb0
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 4
push ecx
mov edx, eax
lea ecx, [esp + 0x38]
call fcn.1003ee20
add esp, 4
mov byte [esp + 0x60], 4
mov ecx, edi
mov edx, dword [esp + 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10055c10
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x60], 0
mov ecx, edi
mov edx, dword [esp + 0x30]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10055c32
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x100b2d24]
cmp dword [eax - 0xc], 0
je 0x10056363
mov dword [esp + 0x1c], 0
lea esp, [esp]
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x10090c5c
call fcn.10022bb0
mov byte [esp + 0x64], 6
mov esi, dword [0x100b2d24]
push ecx
mov dword [esp + 0x3c], esp
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x10055c99
cmp ecx, dword [esi - 0x10]
jne 0x10055c99
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x10055cd4
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
mov eax, dword [eax]
call eax
mov edi, eax
test edi, edi
je 0x1005635b
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [edi + 0x10]
push eax
call fcn.1006b19c
add esp, 0x10
mov ecx, dword [esp + 0x3c]
lea eax, [edi + 0x10]
lea edx, [esp + 0x24]
mov dword [ecx], eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 0
call fcn.1003c9a0
add esp, 8
mov ecx, eax
mov byte [esp + 0x60], 7
call fcn.100231c0
mov ecx, eax
call fcn.10023240
mov esi, dword [eax]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x10055d2f
cmp ecx, dword [esi - 0x10]
jne 0x10055d2f
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x10055d6a
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
mov eax, dword [eax]
call eax
mov edi, eax
test edi, edi
je 0x1005635b
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [edi + 0x10]
push eax
call fcn.1006b19c
add esp, 0x10
lea esi, [edi + 0x10]
mov dword [esp + 0x38], esi
mov byte [esp + 0x60], 9
or edi, 0xffffffff
mov edx, dword [esp + 0x30]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10055d96
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esp + 0x1c], 0xffffffff
je 0x1005633b
cmp dword [esi - 0xc], 0
je 0x1005633b
mov ecx, 0x10093ad0
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10055dd8
test dx, dx
je 0x10055dd4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10055dd8
add eax, 4
add ecx, 4
test dx, dx
jne 0x10055db2
xor eax, eax
jmp 0x10055ddd
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x10055eda
mov ecx, 0x1009c75c
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10055e17
test dx, dx
je 0x10055e13
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10055e17
add eax, 4
add ecx, 4
test dx, dx
jne 0x10055df1
xor eax, eax
jmp 0x10055e1c
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x10055eda
mov ecx, 0x1009c760
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10055e56
test dx, dx
je 0x10055e52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10055e56
add eax, 4
add ecx, 4
test dx, dx
jne 0x10055e30
xor eax, eax
jmp 0x10055e5b
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x10055eda
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x10055ff1
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10055ea6
test dx, dx
je 0x10055ea2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10055ea6
add eax, 4
add ecx, 4
test dx, dx
jne 0x10055e80
xor eax, eax
jmp 0x10055eab
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x10055eda
add esi, 0xfffffff0
mov byte [esp + 0x60], al
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10055c50
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10055c50
push ecx
mov eax, esp
push esi
push dword [esp + 0x1c]
push str.COM_IsClassToVirtualize:_RealComInject_defined_for_this_class:___s____s_
push eax
call fcn.1003a800
add esp, 0x10
call fcn.10021810
add esp, 4
lea ecx, [esp + 0x28]
push str.RegistryMachineSoftware
call fcn.10022bb0
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 0xa
push ecx
mov edx, eax
lea ecx, [esp + 0x38]
call fcn.1003ee20
add esp, 4
mov byte [esp + 0x60], 0xb
lea ecx, [esp + 0x3c]
xorps xmm0, xmm0
mov dword [esp + 0x3c], 0
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x28]
movdqu xmmword [esp + 0x44], xmm0
mov dword [esp + 0x54], 0
call fcn.1006aa30
mov byte [esp + 0x64], 0xa
mov edi, eax
mov edx, dword [esp + 0x38]
add esp, 4
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10055f74
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x60], 9
or ecx, 0xffffffff
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10055f97
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
js 0x10055fb8
push ecx
mov ecx, esp
push str.COM_IsClassToVirtualize:_RealComInject_found____performing
call fcn.10022bb0
call fcn.10021810
add esp, 4
mov dword [esp + 0x2c], 1
add esi, 0xfffffff0
mov byte [esp + 0x60], 0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10055fd7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
js 0x10056360
call fcn.10021470
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x10055ffb
push 0x80004005
call fcn.10021340
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x30], esi
mov byte [esp + 0x60], 0xc
push 0xa28
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0xa28
call fcn.1006bba0
add esp, 4
mov edi, eax
lea eax, [esp + 0x28]
mov dword [esp + 0x1c], edi
push str.COM_IsClassToVirtualize:_checking_if_CLSID_has_a_LocalServer32_executable_server
push eax
call fcn.1003a800
add esp, 8
mov byte [esp + 0x60], 0xd
mov edx, dword [esp + 0x28]
call fcn.100394f0
mov byte [esp + 0x60], 0xc
or ecx, 0xffffffff
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10056074
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x38]
push eax
push edi
push 0
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x10056320
push edi
lea eax, [esp + 0x2c]
push str.COM_IsClassToVirtualize:_RegValue_s
push eax
call fcn.1003a800
add esp, 0xc
mov byte [esp + 0x60], 0xe
mov edx, dword [esp + 0x28]
call fcn.100394f0
mov byte [esp + 0x60], 0xc
or ecx, 0xffffffff
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100560d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 0x14]
lea eax, [esp + 0x34]
push str.CLSID_s
push eax
call fcn.1003f740
add esp, 0xc
push dword [0x100af300]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x20], eax
or eax, 1
push eax
push dword [0x100af300]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [esp + 0x2c], 0
mov esi, dword [esp + 0x30]
jne 0x1005614f
lea eax, [esp + 0x34]
push eax
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1005614f
push ecx
mov eax, esp
push dword [esp + 0x18]
push str._COM_conflict:_class_exists_in_both_virtual_and_real_registry:__s
push eax
call fcn.1003a800
add esp, 0xc
call fcn.10021810
add esp, 4
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x20]
push dword [0x100af300]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
push 0xa
push str._Embedding
call fcn.10023530
test edi, edi
jne 0x10056176
xor ecx, ecx
jmp 0x1005618f
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x10056180
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10056180
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [esp + 0x14]
push edi
call fcn.10023530
mov ecx, dword [esp + 0x10]
push 0x1009ca58
push 0x1009ca58
call fcn.1003f240
mov ecx, eax
call fcn.1003ecb0
mov ecx, dword [esp + 0x10]
push eax
call fcn.100232f0
mov eax, dword [esp + 0x20]
and eax, 0xfffffffe
push eax
push dword [0x100af300]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x1008fa88
lea ecx, [esp + 0x18]
call fcn.10022bb0
push 1
push ecx
mov ecx, esp
mov byte [esp + 0x68], 0xf
push edi
call fcn.10022bb0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
call fcn.10028630
add esp, 8
lea ecx, [esp + 0x14]
call fcn.100231c0
mov ecx, eax
call fcn.10023240
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
mov eax, dword [esp + 0x14]
je 0x1005627e
mov ecx, dword [ebp + 8]
lea edx, [eax - 0x10]
mov dword [esp + 0x2c], edx
mov edi, dword [ecx]
sub edi, 0x10
cmp edx, edi
je 0x1005627a
cmp dword [edi + 0xc], 0
jl 0x1005626d
mov edx, dword [edx]
cmp edx, dword [edi]
jne 0x1005626d
mov ecx, dword [esp + 0x2c]
call fcn.100236e0
mov dword [esp + 0x2c], eax
lea ecx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1005625f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x2c]
add eax, 0x10
mov dword [ecx], eax
jmp 0x10056276
push dword [eax - 0xc]
push eax
call fcn.10023530
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
lea edx, [eax - 0x10]
mov byte [esp + 0x60], 0xc
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1005629d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 0x20]
push dword [0x100af300]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jle 0x10056318
push 0x7e
push eax
call fcn.1006ade1
add esp, 8
test eax, eax
je 0x10056318
mov ecx, dword [esp + 0x10]
sub eax, dword [ecx]
sar eax, 1
cmp eax, 0xffffffff
je 0x10056318
push ecx
mov eax, esp
push dword [ecx]
push str.COM_IsClassToVirtualize:_SFN_s
push eax
call fcn.1003a800
add esp, 0xc
call fcn.10021810
mov ecx, dword [esp + 0x14]
add esp, 4
call fcn.1003bd80
push ecx
mov ecx, dword [esp + 0x14]
mov eax, esp
push dword [ecx]
push str.COM_IsClassToVirtualize:_LFN_s
push eax
call fcn.1003a800
add esp, 0xc
call fcn.10021810
add esp, 4
mov dword [esp + 0x20], 1
push edi
call fcn.1006ac0c
add esp, 4
push dword [esp + 0x24]
call dword [0x100b191c]
add esi, 0xfffffff0
or edi, 0xffffffff
jmp 0x1005633e
add esi, 0xfffffff0
lea eax, [esi + 0xc]
mov byte [esp + 0x60], 0
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10056363
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10056363
call fcn.10023990
or edi, 0xffffffff
push dword [esp + 0x20]
lea eax, [esp + 0x38]
push str.COM_IsClassToVirtualize:_result_d
push eax
call fcn.1003a800
add esp, 0xc
mov byte [esp + 0x60], 0x10
mov edx, dword [esp + 0x34]
call fcn.100394f0
mov byte [esp + 0x60], 0
mov ecx, edi
mov edx, dword [esp + 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100563a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x60], 0xffffffff
mov esi, dword [esp + 0x18]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x100563cc
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret