Function at 0x100013f0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
test ebx, ebx
je 0x10001433
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 0x10001448
call sym._SnmpUtilOidNCmp_12
sub esp, 0xc
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x10001433
mov eax, dword [ebx]
lea edx, [eax + edi + 1]
cmp dword [esi], edx
je 0x10001480
mov ecx, 2
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._SnmpUtilOidNCmp_12
sub esp, 0xc
test eax, eax
jns 0x10001558
mov eax, dword [ebp + 0x1c]
xor ecx, ecx
mov dword [eax], 1
mov eax, dword [ebp + 0x20]
mov dword [eax], 1
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esi + 4]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp + 0x1c]
mov dword [edx], eax
test eax, eax
je 0x10001433
mov edx, dword [ebx]
mov eax, dword [esi + 4]
mov dword [ebp - 0x14], edi
mov dword [esp + 4], 0
lea eax, [eax + edx*4 + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x18]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x10001609
mov dword [esp + 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov dword [esp], eax
call dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
lea esi, [eax + 4]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 8], eax
call dword [sym.imp.ucrtbase.dll_bsearch]
mov dword [esp + 8], edi
mov dword [ebp - 0x18], eax
test eax, eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
je 0x10001600
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp + 0x20]
mov ecx, dword [ebp - 0x1c]
sub esp, 0xc
mov eax, edx
xor edx, edx
sub eax, esi
div dword [ebp + 0x10]
add eax, 1
mov dword [edi], eax
jmp 0x10001438
mov eax, dword [ebx]
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._SnmpUtilOidNCmp_12
mov ecx, eax
sub esp, 0xc
mov eax, dword [ebx]
test ecx, ecx
jne 0x100015b0
lea edx, [eax + edi + 1]
cmp dword [esi], edx
jae 0x100015b0
mov eax, dword [ebp + 0x20]
mov dword [eax], 1
mov eax, dword [ebx]
lea edx, [eax + 1]
cmp dword [esi], edx
jb 0x100015a2
mov edx, dword [esi + 4]
mov edi, dword [ebp + 0x1c]
mov eax, dword [edx + eax*4]
mov dword [edi], eax
test eax, eax
jne 0x10001438
mov eax, dword [ebp + 0x1c]
mov dword [eax], 1
jmp 0x10001438
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call sym._SnmpUtilOidNCmp_12
sub esp, 0xc
mov ecx, eax
test eax, eax
jne 0x10001433
mov eax, dword [ebx]
lea edx, [eax + edi + 1]
cmp dword [esi], edx
jne 0x10001433
mov edx, dword [esi + 4]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp + 0x1c]
mov dword [edx], eax
test eax, eax
jne 0x10001617
mov eax, dword [ebp + 0x20]
mov dword [eax], 1
mov dword [edx], 1
jmp 0x10001438
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov eax, dword [ebp + 0x20]
mov dword [eax], 0
jmp 0x10001433
mov edx, dword [ebx]
mov eax, dword [esi + 4]
mov dword [ebp - 0x14], edi
mov dword [esp + 4], 0
lea eax, [eax + edx*4 + 4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov esi, dword fs:[0x18]
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]
mov ecx, dword [ebp - 0x18]
sub esp, 0xc
test eax, eax
mov ebx, eax
je 0x10001609
mov dword [esp + 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], ecx
mov dword [esp], eax
call dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
lea edi, [eax + 4]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [sym.imp.ucrtbase.dll_bsearch]
mov ecx, dword [ebp - 0x18]
test eax, eax
je 0x10001731
sub eax, edi
xor edx, edx
div dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea edi, [eax + 2]
cmp edi, dword [edx]
ja 0x10001777
add eax, 1
imul eax, dword [ebp + 0x10]
lea esi, [edx + eax + 4]
mov eax, edi
mov edi, esi
mov esi, eax
jmp 0x100016dd
mov eax, dword [ebp + 0xc]
add esi, 1
add edi, dword [ebp + 0x10]
cmp esi, dword [eax]
ja 0x100016eb
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [ebp + 0x18]
test eax, eax
je 0x100016d0
mov dword [esp + 8], ebx
mov edi, esi
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]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 0x18]
sub esp, 0xc
test esi, esi
mov dword [eax], esi
je 0x10001433
mov eax, dword [ebp + 0xc]
cmp dword [eax], edi
jb 0x10001433
jmp 0x10001438
mov dword [ebp - 0x18], ecx
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [ebp + 0x18]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
test eax, eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
jns 0x10001600
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 0x18]
mov edi, 1
sub esp, 0xc
mov dword [eax], 1
jmp 0x10001721
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x18], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 0x18]
sub esp, 0xc
mov dword [eax], edi
jmp 0x10001721