Function at 0x687cda50
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
test byte [0x687da03c], 8
jne 0x687cdb98
test edi, edi
jne 0x687cde38
test esi, esi
je 0x687cde48
test ebx, ebx
je 0x687cde48
mov dword [esp + 4], esi
mov dword [esp], 0x687e2690
call fcn.687cd570
test eax, eax
jne 0x687cde52
mov eax, dword [ebx]
cmp dword [0x687e8c20], eax
je 0x687cdc48
test byte [0x687da03c], 8
jne 0x687cdce0
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x687e2650
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
mov esi, eax
test eax, eax
js 0x687cdc80
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
mov edx, dword [eax]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0x687caf10
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x8c]
sub esp, 0x14
test eax, eax
js 0x687cde5c
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x687cde5c
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [ecx + 0x98]
sub esp, 0xc
mov esi, eax
test eax, eax
js 0x687cdd80
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov edx, dword [ebp - 0x20]
sub esp, 4
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
sub esp, 0xc
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
test ebx, ebx
je 0x687cddd0
mov eax, ebx
shr eax, 0x10
je 0x687cdcc8
movzx eax, byte [ebx + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [ebx + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [ebx + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [ebx + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [ebx + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebx + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [ebx + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [ebx + 8]
mov dword [esp + 0x10], eax
movzx eax, word [ebx + 6]
mov dword [esp + 0xc], eax
movzx eax, word [ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], 0x687dc2fc
mov dword [esp + 4], eax
call fcn.687c3460
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.lpGUID_s_lplpDP_p_pUnk_p_n
mov dword [esp + 8], str.DirectPlayCreate
mov dword [esp + 4], 0x687da03c
mov dword [esp], 3
call fcn.687c3970
jmp 0x687cda6f
mov eax, dword [ebx + 4]
cmp dword [0x687e8c24], eax
jne 0x687cdaad
mov eax, dword [ebx + 8]
cmp dword [0x687e8c28], eax
jne 0x687cdaad
mov eax, dword [ebx + 0xc]
cmp dword [0x687e8c2c], eax
jne 0x687cdaad
jmp 0x687cdb87
test byte [0x687da03c], 2
je 0x687cdb89
mov dword [esp], eax
call fcn.687d14e0
mov dword [esp + 0xc], str.Failed_to_get_DP3_interface:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.DirectPlayCreate
mov dword [esp + 4], 0x687da03c
mov dword [esp], 1
call fcn.687c3970
jmp 0x687cdb89
movzx eax, bx
mov dword [esp], 0x687dc2ec
mov dword [esp + 4], eax
call fcn.687c3460
jmp 0x687cdc0d
mov eax, ebx
shr eax, 0x10
je 0x687cdde0
movzx eax, byte [ebx + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [ebx + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [ebx + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [ebx + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [ebx + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebx + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [ebx + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [ebx + 8]
mov dword [esp + 0x10], eax
movzx eax, word [ebx + 6]
mov dword [esp + 0xc], eax
movzx eax, word [ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], 0x687dc2fc
mov dword [esp + 4], eax
call fcn.687c3460
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Service_Provider_binding_for__s_n
mov dword [esp + 8], str.DirectPlayCreate
mov dword [esp + 4], 0x687da03c
mov dword [esp], 3
call fcn.687c3970
jmp 0x687cdaba
test byte [0x687da03c], 2
jne 0x687cde00
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 0x24]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, 0x687dc1a0
jmp 0x687cdc0d
movzx eax, bx
mov dword [esp], 0x687dc2ec
mov dword [esp + 4], eax
call fcn.687c3460
jmp 0x687cdd4d
mov dword [esp], eax
call fcn.687d14e0
mov dword [esp + 0xc], str.Failed_to_Initialize_SP:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.DirectPlayCreate
mov dword [esp + 4], 0x687da03c
mov dword [esp], 1
call fcn.687c3970
jmp 0x687cdd89
mov esi, 0x80040110
jmp 0x687cdb89
mov esi, 0x80070057
jmp 0x687cdb89
mov esi, 0x887700fa
jmp 0x687cdb89
test byte [0x687da03c], 2
jne 0x687cde7d
mov eax, dword [ebp - 0x24]
mov esi, 0x887700fa
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x687cdb89
mov dword [esp], eax
call fcn.687d14e0
mov dword [esp + 0xc], str.Failed_to_get_Enum_for_SP:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.DirectPlayCreate
mov dword [esp + 4], 0x687da03c
mov dword [esp], 1
call fcn.687c3970
jmp 0x687cde65