Function at 0x687c7c50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
mov ebx, eax
sub esp, 0x7c
mov dword [ebp - 0x4c], ecx
mov esi, dword [ebp + 0x14]
test byte [0x687da03c], 8
jne 0x687c7ea0
mov eax, dword [ebx + 0x54]
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x687c7f90
cmp dword [edi], 0xffffffff
je 0x687c7e78
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x4c]
mov dword [esp + 4], esi
mov eax, edi
mov dword [esp], 0
call fcn.687c5c10
mov esi, eax
test eax, eax
je 0x687c7f9a
mov eax, dword [edi]
test eax, eax
jne 0x687c7f00
mov eax, dword [ebx + 0x54]
mov dword [eax + 0x18], esi
test byte [0x687da03c], 8
jne 0x687c7e48
mov eax, dword [ebp + 0xc]
add dword [esi + 4], 1
xor edx, edx
mov ecx, dword [ebp + 8]
mov dword [esp], eax
mov eax, esi
call fcn.687c3240
mov edx, dword [ebx + 0x54]
mov eax, dword [edx + 0x30]
mov esi, dword [eax + 0x1c]
test esi, esi
je 0x687c7d3c
test byte [0x687da03c], 8
jne 0x687c7e10
cmp dword [edi], 1
mov dword [ebp - 0x40], 0
sbb eax, eax
and eax, 0x20
add eax, 8
cmp dword [edi], 1
sbb ecx, ecx
and ecx, 0x20
or ecx, 0x408
test dword [ebp + 0x10], 0x1000
cmovne eax, ecx
mov ecx, dword [edi]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
mov dword [esp], eax
call esi
mov edx, dword [ebx + 0x54]
sub esp, 4
mov eax, dword [edx + 0x1c]
xor esi, esi
test eax, eax
je 0x687c7dfd
test byte [eax + 5], 8
je 0x687c7dfd
mov eax, dword [edi]
mov edi, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
add ebx, 0x18
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], eax
mov eax, dword [edi]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
and eax, 0x1000
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x30
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [eax + 0xc4]
sub esp, 0x28
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.Calling_SP_CreateGroup_n
mov dword [esp + 8], str.DP_IF_CreateGroup
mov dword [esp + 4], 0x687da03c
mov dword [esp], 3
call fcn.687c3970
mov edx, dword [ebx + 0x54]
mov eax, dword [edx + 0x30]
mov esi, dword [eax + 0x1c]
jmp 0x687c7cf6
mov dword [esp + 0xc], str.Inserting_system_group_n
mov dword [esp + 8], str.DP_IF_CreateGroup
mov dword [esp + 4], 0x687da03c
mov dword [esp], 3
call fcn.687c3970
jmp 0x687c7cc6
mov edx, dword [eax + 0x14]
test edx, edx
je 0x687c7f58
mov eax, 1
mov edx, 0x687da038
lock xadd dword [edx], eax
add eax, 1
mov dword [edi], eax
jmp 0x687c7c87
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p_____p__p__p__p_0x_08x_0x_08x__u__n
mov dword [esp + 8], str.DP_IF_CreateGroup
mov dword [esp + 4], 0x687da03c
mov dword [esp], 3
call fcn.687c3970
jmp 0x687c7c70
mov dword [esp + 8], 0xc
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
mov dword [eax + 8], esi
sub esp, 0xc
mov dword [eax], 0
mov edx, dword [ebx + 0x54]
mov edx, dword [edx + 0x18]
mov edx, dword [edx + 0xc]
mov dword [eax + 4], edx
mov edx, dword [ebx + 0x54]
mov edx, dword [edx + 0x18]
mov edx, dword [edx + 0xc]
mov dword [edx], eax
mov edx, dword [ebx + 0x54]
mov edx, dword [edx + 0x18]
mov dword [edx + 0xc], eax
jmp 0x687c7cc6
test byte [0x687da03c], 1
je 0x687c7e83
mov dword [esp + 0xc], 0x687dcc50
mov dword [esp + 8], str.DP_GetRemoteNextObjectId
mov dword [esp + 4], 0x687da03c
mov dword [esp], 0
call fcn.687c3970
jmp 0x687c7e83
mov esi, 0x88770140
jmp 0x687c7dfd
mov esi, 0x88770028
jmp 0x687c7dfd