Function at 0x10001dd0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
test ebx, ebx
je 0x10001e13
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 0x10001e28
call sub.snmpapi.dll_SnmpUtilOidNCmp
sub esp, 0xc
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x10001e13
mov eax, dword [ebx]
lea edx, [eax + edi + 1]
cmp dword [esi], edx
je 0x10001e50
mov ecx, 2
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.snmpapi.dll_SnmpUtilOidNCmp
sub esp, 0xc
test eax, eax
jns 0x10001f20
mov eax, dword [ebp + 0x1c]
mov dword [eax], 1
mov eax, dword [ebp + 0x20]
mov dword [eax], 1
xor ecx, ecx
jmp 0x10001e18
mov edx, dword [esi + 4]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp + 0x1c]
mov dword [edx], eax
test eax, eax
je 0x10001e13
mov edx, dword [ebx]
mov dword [ebp - 0x14], edi
mov eax, dword [esi + 4]
mov edi, dword [ebp + 0x10]
lea eax, [eax + edx*4 + 4]
mov dword [ebp - 0x10], eax
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_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x10002128
mov dword [esp + 4], eax
lea eax, [ebp - 0x14]
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], ebx
mov dword [esp + 8], eax
call dword [sym.imp.ucrtbase.dll_bsearch]
test eax, eax
je 0x10001fd0
sub eax, esi
xor edx, edx
mov ecx, dword [ebp - 0x18]
div dword [ebp + 0x10]
lea esi, [eax + 1]
mov dword [ebp - 0x18], ecx
mov eax, dword fs:[0x18]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0x18]
sub esp, 0xc
mov eax, dword [ebp + 0x20]
mov dword [eax], esi
jmp 0x10001e18
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 0x10001f80
lea edx, [eax + edi + 1]
cmp dword [esi], edx
jae 0x10001f80
mov eax, dword [ebp + 0x20]
mov dword [eax], 1
mov eax, dword [ebx]
lea edx, [eax + 1]
cmp dword [esi], edx
jb 0x10001f68
mov edx, dword [esi + 4]
mov edi, dword [ebp + 0x1c]
mov eax, dword [edx + eax*4]
mov dword [edi], eax
test eax, eax
jne 0x10001e4a
mov eax, dword [ebp + 0x1c]
xor ecx, ecx
mov dword [eax], 1
jmp 0x10001e18
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 0x10001e13
mov eax, dword [ebx]
lea edx, [eax + edi + 1]
cmp dword [esi], edx
jne 0x10001e13
mov edx, dword [esi + 4]
mov ecx, dword [ebp + 0x1c]
mov eax, dword [edx + eax*4]
mov dword [ecx], eax
test eax, eax
jne 0x10001fdc
mov eax, dword [ebp + 0x20]
mov dword [eax], 1
mov dword [ecx], 1
xor ecx, ecx
jmp 0x10001e18
mov ecx, 2
xor esi, esi
jmp 0x10001eeb
mov edx, dword [ebx]
mov dword [ebp - 0x14], edi
mov eax, dword [esi + 4]
mov esi, dword fs:[0x18]
lea eax, [eax + edx*4 + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 0
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 ebx, eax
test eax, eax
je 0x10002134
mov dword [esp + 4], eax
lea eax, [ebp - 0x14]
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]
test eax, eax
je 0x100020dd
sub eax, edi
xor edx, edx
mov ecx, dword [ebp + 0xc]
div dword [ebp + 0x10]
lea edi, [eax + 2]
cmp dword [ecx], edi
jb 0x10002119
add eax, 1
imul eax, dword [ebp + 0x10]
lea esi, [ecx + eax + 4]
jmp 0x1000208d
mov eax, dword [ebp + 0xc]
add edi, 1
add esi, dword [ebp + 0x10]
cmp dword [eax], edi
jb 0x100020ee
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [ebp + 0x18]
test eax, eax
je 0x10002080
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]
mov eax, dword [ebp + 0x20]
sub esp, 0xc
mov dword [eax], edi
test edi, edi
je 0x10001e13
mov eax, dword [ebp + 0xc]
xor ecx, ecx
cmp dword [eax], edi
setb cl
add ecx, ecx
jmp 0x10001e18
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [ebp + 0x18]
shr eax, 0x1f
mov edi, eax
jmp 0x1000209b
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]
mov eax, dword [ebp + 0x20]
sub esp, 0xc
mov dword [eax], edi
jmp 0x100020cc
xor eax, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [esi + 0x30]
jmp 0x10002103
xor esi, esi
mov ecx, 2
jmp 0x10001f15
mov eax, dword [ebp + 0x20]
xor edx, edx
mov dword [eax], edx
jmp 0x10001e13