Function at 0x6fac1d80
Capabilities:
Get process heap flags

Disassembly:
push ebp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
test ebx, ebx
je 0x6fac1dc2
mov ebx, edx
mov edx, dword [edx]
mov edi, ecx
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
cmp al, 0xa1
je 0x6fac1dd8
call sub.snmpapi.dll_SnmpUtilOidNCmp
sub esp, 0xc
mov ebp, eax
test eax, eax
jne 0x6fac1dc2
mov eax, dword [ebx]
lea edx, [eax + edi + 1]
cmp dword [esi], edx
je 0x6fac1e00
mov ebp, 2
add esp, 0x3c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.snmpapi.dll_SnmpUtilOidNCmp
sub esp, 0xc
test eax, eax
jns 0x6fac1ed0
mov eax, dword [esp + 0x64]
mov dword [eax], 1
mov eax, dword [esp + 0x68]
mov dword [eax], 1
xor ebp, ebp
jmp 0x6fac1dc7
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x64]
mov eax, dword [edx + eax*4]
mov dword [ecx], eax
test eax, eax
je 0x6fac1dc2
mov eax, dword [ebx]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x58]
mov dword [esp + 4], 0
lea eax, [edx + eax*4 + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 8], edi
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_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x6fac20f0
mov dword [esp + 4], eax
lea eax, [esp + 0x28]
mov dword [esp], eax
call dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
lea esi, [eax + 4]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x54]
mov eax, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [sym.imp.ucrtbase.dll_bsearch]
test eax, eax
je 0x6fac1f80
sub eax, esi
xor edx, edx
div dword [esp + 0x58]
lea esi, [eax + 1]
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
mov eax, dword [esp + 0x68]
mov dword [eax], esi
jmp 0x6fac1dc7
mov eax, dword [ebx]
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 8], eax
call sub.snmpapi.dll_SnmpUtilOidNCmp
sub esp, 0xc
test eax, eax
mov eax, dword [ebx]
jne 0x6fac1f30
lea edx, [eax + edi + 1]
cmp dword [esi], edx
jae 0x6fac1f30
mov eax, dword [esp + 0x68]
mov dword [eax], 1
mov eax, dword [ebx]
lea edx, [eax + 1]
cmp dword [esi], edx
jb 0x6fac1f1a
mov edx, dword [esi + 4]
mov edi, dword [esp + 0x64]
mov eax, dword [edx + eax*4]
mov dword [edi], eax
test eax, eax
jne 0x6fac1dfc
mov eax, dword [esp + 0x64]
xor ebp, ebp
mov dword [eax], 1
jmp 0x6fac1dc7
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.snmpapi.dll_SnmpUtilOidNCmp
sub esp, 0xc
test eax, eax
jne 0x6fac1dc2
mov eax, dword [ebx]
lea edx, [eax + edi + 1]
cmp dword [esi], edx
jne 0x6fac1dc2
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x64]
mov eax, dword [edx + eax*4]
mov dword [ecx], eax
test eax, eax
jne 0x6fac1f8c
mov eax, dword [esp + 0x68]
xor ebp, ebp
mov dword [eax], 1
mov dword [ecx], 1
jmp 0x6fac1dc7
mov ebp, 2
xor esi, esi
jmp 0x6fac1ea0
mov eax, dword [ebx]
mov dword [esp + 4], 0
mov esi, dword fs:[0x18]
mov dword [esp + 0x28], edi
lea eax, [edx + eax*4 + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x6fac20fc
mov dword [esp + 4], eax
lea eax, [esp + 0x28]
mov dword [esp], eax
call dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
lea ebx, [eax + 4]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x54]
mov eax, dword [eax]
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 8], eax
call dword [sym.imp.ucrtbase.dll_bsearch]
test eax, eax
je 0x6fac20a3
sub eax, ebx
xor edx, edx
mov ecx, dword [esp + 0x54]
div dword [esp + 0x58]
lea ebx, [eax + 2]
cmp dword [ecx], ebx
jb 0x6fac20e1
add eax, 1
imul eax, dword [esp + 0x58]
lea esi, [ecx + eax + 4]
jmp 0x6fac204f
mov eax, dword [esp + 0x54]
add ebx, 1
add esi, dword [esp + 0x58]
cmp dword [eax], ebx
jb 0x6fac20b5
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [esp + 0x60]
test eax, eax
je 0x6fac2040
mov dword [esp + 8], edi
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
mov eax, dword [esp + 0x68]
mov dword [eax], ebx
test ebx, ebx
je 0x6fac1dc2
mov eax, dword [esp + 0x54]
xor ecx, ecx
cmp dword [eax], ebx
setb cl
lea ebp, [ecx + ecx]
jmp 0x6fac1dc7
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [esp + 0x60]
shr eax, 0x1f
mov ebx, eax
jmp 0x6fac205e
mov dword [esp + 8], edi
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
mov eax, dword [esp + 0x68]
mov dword [eax], ebx
jmp 0x6fac2090
xor eax, eax
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [esi + 0x30]
jmp 0x6fac20ca
xor esi, esi
mov ebp, 2
jmp 0x6fac1ec4
mov eax, dword [esp + 0x68]
xor edx, edx
mov dword [eax], edx
jmp 0x6fac1dc2