Function at 0x6321ac60
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
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 [0x6321d0ac], 8
jne 0x6321aee0
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 0x6321acb1
mov esi, 1
mov eax, dword [ebx]
test esi, esi
je 0x6321ace8
cmp eax, ecx
je 0x6321ad20
mov ebx, eax
test ebx, ebx
je 0x6321ad20
mov eax, dword [ebx + 0xc]
mov edi, dword [edx]
lea esi, [eax + 8]
cmp dword [eax + 8], edi
jne 0x6321aca0
mov eax, dword [edx + 4]
cmp dword [esi + 4], eax
jne 0x6321aca0
mov eax, dword [edx + 8]
cmp dword [esi + 8], eax
jne 0x6321aca0
mov eax, dword [edx + 0xc]
cmp dword [esi + 0xc], eax
jne 0x6321aca0
xor esi, esi
mov eax, dword [ebx]
test esi, esi
jne 0x6321acab
lea esi, [esi]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebx + 4]
test eax, eax
je 0x6321aed0
mov dword [eax + 4], edx
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov dword [eax], edx
test byte [0x6321d0ac], 8
jne 0x6321af20
mov eax, ebx
call fcn.6321a670
jmp 0x6321ad23
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 - 0x2c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x24], eax
call eax
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
test eax, eax
mov ebx, eax
je 0x6321afd6
mov dword [esp + 8], edi
mov esi, dword [ebp - 0x24]
mov dword [esp + 4], 8
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x2c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [ebx + 0x10], eax
mov dword [esp + 8], edi
mov edi, dword [ebp - 0x28]
mov dword [esp], eax
mov dword [esp + 4], edi
call sub.ucrtbase.dll_memcpy
mov edx, dword [ebp - 0x2c]
mov dword [esp + 8], 0x50
mov dword [esp + 4], 8
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x28], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x28]
sub esp, 0xc
test eax, eax
mov dword [ebx + 0xc], eax
je 0x6321afe7
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x20]
mov edi, eax
mov ecx, 0x14
lea esi, [edx + 8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [edx + 0x5c]
mov dword [esp + 0x1c], 0
mov edi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 8], ecx
mov dword [ebp - 0x28], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
mov edx, dword [ebp - 0x2c]
mov esi, eax
mov eax, dword [ebx + 0xc]
sub esp, 0x20
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 0x30]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
mov ecx, dword [ebp - 0x20]
sub esp, 0xc
mov dword [ecx + 0x30], eax
test eax, eax
je 0x6321ae99
mov dword [esp + 0x1c], 0
mov ecx, dword [ebp - 0x28]
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], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
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.6321abf0
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], edx
jmp 0x6321acf9
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], 0x6321d0ac
mov dword [esp], 3
call fcn.6321a7b0
jmp 0x6321ac8b
mov eax, dword [ebx + 0xc]
lea edx, [eax + 8]
mov ecx, edx
shr ecx, 0x10
je 0x6321afc1
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.6321a6f0
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], 0x6321d0ac
mov dword [esp], 3
call fcn.6321a7b0
jmp 0x6321ad0d
movzx edx, dx
mov dword [esp], str._guid_0x_04hx_
mov dword [esp + 4], edx
call fcn.6321a6f0
jmp 0x6321af94
test byte [0x6321d0ac], 2
jne 0x6321b016
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x6321d0ac], 2
jne 0x6321b03e
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 dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x6321afdf
mov dword [ebp + 0x14], str.no_memory_for_NS_node_n
mov dword [ebp + 0x10], str.NS_AddRemoteComputerAsNameServer
mov dword [ebp + 0xc], 0x6321d0ac
mov dword [ebp + 8], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.6321a7b0
mov dword [esp + 0xc], str.no_memory_for_SESSIONDESC2_n
mov dword [esp + 8], str.NS_AddRemoteComputerAsNameServer
mov dword [esp + 4], 0x6321d0ac
mov dword [esp], 1
call fcn.6321a7b0
jmp 0x6321aff0