Function at 0x687d81e0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
test byte [0x687da0ac], 8
jne 0x687d8490
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edi
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0x20]
mov ebx, ecx
lea edx, [eax + 0x10]
jmp 0x687d8231
mov esi, 1
mov eax, dword [ebx]
test esi, esi
je 0x687d8268
cmp eax, ecx
je 0x687d82a0
mov ebx, eax
test ebx, ebx
je 0x687d82a0
mov eax, dword [ebx + 0xc]
mov edi, dword [edx]
lea esi, [eax + 8]
cmp dword [eax + 8], edi
jne 0x687d8220
mov eax, dword [edx + 4]
cmp dword [esi + 4], eax
jne 0x687d8220
mov eax, dword [edx + 8]
cmp dword [esi + 8], eax
jne 0x687d8220
mov eax, dword [edx + 0xc]
cmp dword [esi + 0xc], eax
jne 0x687d8220
xor esi, esi
mov eax, dword [ebx]
test esi, esi
jne 0x687d822b
lea esi, [esi]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebx + 4]
test eax, eax
je 0x687d8480
mov dword [eax + 4], edx
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov dword [eax], edx
test byte [0x687da0ac], 8
jne 0x687d8508
mov eax, ebx
call fcn.687d7c30
jmp 0x687d82a3
mov edi, dword [ebp - 0x24]
mov edx, dword fs:[0x18]
mov dword [esp + 8], 0x14
mov dword [esp + 4], 8
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x24], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
mov edx, dword [ebp - 0x24]
sub esp, 0xc
test eax, eax
mov ebx, eax
je 0x687d84d0
mov dword [esp + 8], edi
mov dword [esp + 4], 8
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x24], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
mov ecx, dword [ebp - 0x28]
sub esp, 0xc
mov dword [ebx + 0x10], eax
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
mov edx, dword [ebp - 0x24]
mov dword [esp + 8], 0x50
mov dword [esp + 4], 8
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
mov edx, dword [ebp - 0x24]
sub esp, 0xc
test eax, eax
mov dword [ebx + 0xc], eax
je 0x687d8440
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x20]
mov edi, eax
mov ecx, 0x14
lea esi, [edx + 8]
rep movsd dword es:[edi], dword [esi]
lea edi, [edx + 0x5c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.kernel32.dll_WideCharToMultiByte
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebx + 0xc]
sub esp, 0x20
mov esi, eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
mov ecx, dword [ebp - 0x20]
sub esp, 0xc
mov dword [ecx + 0x30], eax
test eax, eax
je 0x687d840e
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x30]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.kernel32.dll_WideCharToMultiByte
sub esp, 0x20
call sub.winmm.dll_timeGetTime
mov ecx, dword [ebp - 0x1c]
mov dword [ebx], 0
mov dword [ebx + 8], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 4], eax
mov dword [eax], ebx
mov dword [ecx + 8], ebx
mov dword [ecx], ebx
mov dword [ebp + 8], ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.687d8170
test byte [0x687da0ac], 2
jne 0x687d85be
mov dword [esp + 8], ebx
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
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], edx
jmp 0x687d8279
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], str._p___p___p_n
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 8], str.NS_AddRemoteComputerAsNameServer
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x687da0ac
mov dword [esp], 3
call fcn.687d7d10
jmp 0x687d820b
test byte [0x687da0ac], 2
je 0x687d8470
mov dword [ebp + 0x14], str.no_memory_for_NS_node_n
mov dword [ebp + 0x10], str.NS_AddRemoteComputerAsNameServer
mov dword [ebp + 0xc], 0x687da0ac
mov dword [ebp + 8], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.687d7d10
mov eax, dword [ebx + 0xc]
lea edx, [eax + 8]
mov ecx, edx
shr ecx, 0x10
je 0x687d85a9
movzx edx, byte [eax + 0x17]
mov dword [esp + 0x2c], edx
movzx edx, byte [eax + 0x16]
mov dword [esp + 0x28], edx
movzx edx, byte [eax + 0x15]
mov dword [esp + 0x24], edx
movzx edx, byte [eax + 0x14]
mov dword [esp + 0x20], edx
movzx edx, byte [eax + 0x13]
mov dword [esp + 0x1c], edx
movzx edx, byte [eax + 0x12]
mov dword [esp + 0x18], edx
movzx edx, byte [eax + 0x11]
mov dword [esp + 0x14], edx
movzx edx, byte [eax + 0x10]
mov dword [esp + 0x10], edx
movzx edx, word [eax + 0xe]
mov dword [esp + 0xc], edx
movzx edx, word [eax + 0xc]
mov dword [esp + 8], edx
mov eax, dword [eax + 8]
mov dword [esp], str._08x__04x__04x__02x_02x__02x_02x_02x_02x_02x_02x
mov dword [esp + 4], eax
call fcn.687d7cb0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Duplicate_session_entry_for__s_removed___updated_version_kept_n
mov dword [esp + 8], str.NS_AddRemoteComputerAsNameServer
mov dword [esp + 4], 0x687da0ac
mov dword [esp], 3
call fcn.687d7d10
jmp 0x687d828d
movzx edx, dx
mov dword [esp], str._guid_0x_04hx_
mov dword [esp + 4], edx
call fcn.687d7cb0
jmp 0x687d857c
mov dword [esp + 0xc], str.no_memory_for_SESSIONDESC2_n
mov dword [esp + 8], str.NS_AddRemoteComputerAsNameServer
mov dword [esp + 4], 0x687da0ac
mov dword [esp], 1
call fcn.687d7d10
jmp 0x687d844d