Function at 0x100055e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
test byte [0x10017040], 8
mov edx, dword [ebp + 8]
je 0x10005655
call dbg.debugstr_w
mov ebx, eax
mov ecx, esi
call dbg.debugstr_w
sub esp, 0x28
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x24], edi
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.iface__p__id__s__type__s__target_uri__p__target_mode__d__relationship__p._n
mov dword [esp + 8], str.opc_relationship_set_CreateRelationship
mov dword [esp], 3
call sym._wine_dbg_log_2
mov edx, dword [ebp + 8]
add esp, 0x28
mov eax, 0x80004003
test edi, edi
je 0x100056d3
mov dword [edi], 0
test esi, esi
je 0x100056d3
test ebx, ebx
je 0x100056d3
cmp dword [ebp + 0xc], 0
je 0x100056af
cmp dword [edx + 0x10], 0
je 0x100056af
xor ebx, ebx
mov esi, dword [sym.imp.ucrtbase.dll_wcscmp]
mov eax, dword [edx + 8]
mov eax, dword [eax + ebx*4]
push dword [eax + 8]
push dword [ebp + 0xc]
mov edi, edx
call esi
add esp, 8
test eax, eax
je 0x100056a1
inc ebx
cmp ebx, dword [edi + 0x10]
mov edx, edi
jb 0x10005680
jmp 0x100056af
mov ecx, dword [edi + 8]
mov eax, 0x80510013
cmp dword [ecx + ebx*4], 0
jne 0x100056d3
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
lea ecx, [ebp - 0x14]
push 0
push ecx
push 0xc
push edx
call dword [eax + 0x10]
mov ecx, dword [ebp + 8]
or eax, dword [ebp + 0x18]
jne 0x100056dd
mov eax, 0x80510012
cmp dword [ebp - 0x14], 0
je 0x100056dd
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
inc ecx
cmp edx, ecx
jae 0x10005744
mov eax, 0x8007000e
cmp ecx, 0x3fffffff
ja 0x100056d3
cmp edx, 5
mov edi, 4
cmovae edi, edx
mov eax, edi
cmp edi, ecx
jae 0x10005710
lea edi, [eax + eax]
cmp eax, 0x20000000
jb 0x10005700
cmp eax, ecx
mov edi, 0x3fffffff
cmovae edi, eax
lea eax, [edi*4]
push eax
mov esi, dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.ucrtbase.dll_realloc]
add esp, 8
mov ecx, eax
test eax, eax
mov eax, 0x8007000e
je 0x100056d3
mov edx, esi
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edi
push 0x1c
push 1
call dword [sym.imp.ucrtbase.dll_calloc]
add esp, 8
mov ebx, eax
mov eax, 0x8007000e
test ebx, ebx
je 0x100056d3
mov dword [ebx], dbg._opc_relationship_QueryInterface_12
mov dword [ebx + 4], 1
mov ecx, dword [ebp + 0x14]
mov dword [ebx + 0x10], ecx
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebx + 0x18], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100057ce
mov esi, ebx
xor edi, edi
nop word cs:[eax + eax]
cmp word [eax + edi], 0
lea edi, [edi + 2]
jne 0x100057a0
push edi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ebx, eax
test eax, eax
je 0x100057c4
push edi
push dword [ebp + 0xc]
push ebx
call sym._memcpy
add esp, 0xc
mov dword [esi + 8], ebx
mov ebx, esi
jmp 0x10005892
push 0x14
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebx + 8], eax
test eax, eax
je 0x10005892
lea eax, [ebp - 0x18]
push 4
push eax
call dword [sym.imp.advapi32.dll_SystemFunction036]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x18]
sub esp, 0x10
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call dbg.swprintf
add esp, 0x10
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10], 0
je 0x1000588f
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + 8]
xor edi, edi
mov eax, dword [ecx + 8]
mov eax, dword [eax + edi*4]
push dword [eax + 8]
push ebx
mov esi, ecx
call dword [sym.imp.ucrtbase.dll_wcscmp]
add esp, 8
test eax, eax
je 0x1000583c
inc edi
cmp edi, dword [esi + 0x10]
mov ecx, esi
jb 0x10005819
jmp 0x1000588f
mov eax, dword [esi + 8]
cmp dword [eax + edi*4], 0
je 0x1000588f
test byte [0x10017040], 4
mov esi, dword [ebp - 0x10]
je 0x1000587f
mov ecx, dword [esi + 8]
call dbg.debugstr_w
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Newly_generated_id__s_already_exists._n
mov dword [esp + 8], str.opc_relationship_create
mov dword [esp], 2
call sym._wine_dbg_log_2
add esp, 0x14
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, 0x80004005
jmp 0x100056d3
mov ebx, dword [ebp - 0x10]
xor edi, edi
mov esi, dword [ebp + 0x10]
nop word [eax + eax]
cmp word [esi + edi], 0
lea edi, [edi + 2]
jne 0x100058a0
push edi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
test eax, eax
je 0x1000592e
push edi
push esi
push eax
mov edi, eax
call sym._memcpy
add esp, 0xc
mov dword [ebx + 0xc], edi
cmp dword [ebx + 8], 0
je 0x10005935
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
lea edx, [ecx + 1]
mov dword [esi + 0x10], edx
mov dword [eax + ecx*4], ebx
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
add esi, 0x18
push esi
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov eax, dword [ebp + 0x1c]
mov dword [eax], ebx
xor eax, eax
test byte [0x10017040], 8
je 0x100056d3
sub esp, 0x14
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.Created_relationship__p._n
mov dword [esp + 8], str.opc_relationship_create
mov dword [esp], 3
call sym._wine_dbg_log_2
xor eax, eax
add esp, 0x14
jmp 0x100056d3
mov dword [ebx + 0xc], 0
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov eax, 0x8007000e
jmp 0x100056d3