Function at 0x10018ac
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x10], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x30], eax
xor eax, eax
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
cmp esi, eax
push 4
sete cl
pop ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ecx
call fcn.010013f3
cmp dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], eax
je 0x1001929
push edi
push dword [0x1005cb4]
push 0x2711
push 2
call fcn.01002a8e
add esp, 0x10
push 1
call dword [sym.imp.msvcrt.dll_exit]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x24]
call fcn.010015dd
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100194c
push dword [ebp - 0x24]
push dword [0x1005cb4]
push 0x2712
jmp 0x1001917
cmp dword [ebp - 0x20], 0
jne 0x100197f
lea eax, [ebp - 0x18]
push eax
push 2
call fcn.01003c04
mov edi, eax
test edi, edi
je 0x1001cbf
push esi
call fcn.01001379
push edi
mov dword [ebp - 0x10], eax
call fcn.01002c30
cmp dword [ebp - 0x10], 0xffffffff
jne 0x100197f
push esi
jmp 0x100190c
mov esi, 0xc8
push esi
call sub.snmpapi.dll_SnmpUtilMemAlloc
test eax, eax
jne 0x10019a8
push dword [0x1005cb4]
push 0x2714
push 2
call fcn.01002a8e
add esp, 0xc
jmp 0x1001921
push 0xf
pop edi
push dword [ebp - 0x10]
lea edx, [ebp - 0x1c]
push 1
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x90], edi
call fcn.01001305
mov eax, dword [ebp - 0x10]
push esi
mov byte [ebp - 0x88], 2
mov dword [ebp - 0x84], eax
call sub.snmpapi.dll_SnmpUtilMemAlloc
test eax, eax
je 0x100198e
push dword [ebp - 0x10]
lea edx, [ebp - 0x1c]
push 2
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], edi
call fcn.01001305
and dword [ebp - 0x64], 0
lea eax, [ebp - 0xc]
push esi
mov byte [ebp - 0x70], bl
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], 6
call sub.snmpapi.dll_SnmpUtilMemAlloc
test eax, eax
je 0x100198e
push dword [ebp - 0x10]
lea edx, [ebp - 0x1c]
push 3
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], edi
call fcn.01001305
and dword [ebp - 0x4c], 0
mov eax, edx
push esi
mov byte [ebp - 0x58], 0x40
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], ebx
call sub.snmpapi.dll_SnmpUtilMemAlloc
xor esi, esi
cmp eax, esi
je 0x100198e
push dword [ebp - 0x10]
lea edx, [ebp - 0x1c]
push ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], edi
call fcn.01001305
mov byte [ebp - 0x40], 2
mov dword [ebp - 0x3c], ebx
cmp dword [ebp - 0x20], esi
jne 0x1001a80
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
push 0xa3
call dword [0x1005cd0]
jmp 0x1001c95
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x24], esi
call fcn.01003c04
mov dword [ebp - 0x20], eax
mov edi, 0xa3
cmp eax, esi
je 0x1001b52
mov esi, dword [eax]
cmp esi, eax
je 0x1001b52
mov al, byte [ebp - 0x1c]
or ebx, 0xffffffff
and al, 0xc0
je 0x1001ade
cmp al, 0x40
je 0x1001ade
cmp al, 0x80
jne 0x1001ac0
mov ebx, 0xffff
jmp 0x1001ae3
cmp al, 0xc0
jne 0x1001ae3
mov al, byte [ebp - 0x1c]
and al, 0x30
movzx ebx, al
neg ebx
sbb ebx, ebx
and ebx, 0xff000000
add ebx, 0xffffff
jmp 0x1001ae3
mov ebx, 0xff
mov eax, dword [esi + 0x18]
mov ecx, ebx
and ecx, dword [ebp - 0x1c]
and eax, ebx
cmp eax, ecx
jne 0x1001b40
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x84], eax
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x84]
mov dword [eax + 0x28], ecx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
push edi
call dword [0x1005cd0]
cmp dword [ebp - 0x14], 0
je 0x1001b49
mov esi, dword [esi]
cmp esi, dword [ebp - 0x20]
jne 0x1001ae3
jmp 0x1001b52
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x1001c62
lea eax, [ebp - 0x18]
push eax
push 2
call fcn.01003c04
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x1001c62
mov esi, dword [ebx]
cmp esi, ebx
je 0x1001c62
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1001be2
mov eax, dword [esi + 0x10]
mov edx, eax
and edx, dword [ebp - 0x1c]
and eax, ecx
cmp eax, edx
jne 0x1001be2
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x84], eax
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x84]
mov dword [eax + 0x28], ecx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
push edi
call dword [0x1005cd0]
cmp dword [ebp - 0x14], 0
je 0x1001bea
mov esi, dword [esi]
cmp esi, ebx
jne 0x1001b7e
jmp 0x1001bf8
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x1001c62
mov esi, dword [ebx]
jmp 0x1001c53
cmp byte [esi + 8], 0x7f
je 0x1001c51
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x84], eax
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x84]
mov dword [eax + 0x28], ecx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
push edi
call dword [0x1005cd0]
cmp dword [ebp - 0x14], 0
je 0x1001c59
mov esi, dword [esi]
cmp esi, ebx
jne 0x1001bfc
jmp 0x1001c62
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x10], eax
xor esi, esi
cmp dword [ebp - 0x20], esi
je 0x1001c71
push dword [ebp - 0x20]
call fcn.01002c30
cmp dword [ebp - 0x24], esi
je 0x1001c7e
push dword [ebp - 0x24]
call fcn.01002c30
cmp dword [ebp - 0x10], 0xffffffff
jne 0x1001c95
cmp dword [ebp - 0x14], esi
jne 0x1001c95
cmp dword [ebp - 0x18], esi
jne 0x1001c95
mov dword [ebp - 0x14], 5
push dword [ebp - 0x8c]
call sub.snmpapi.dll_SnmpUtilMemFree
push dword [ebp - 0x74]
call sub.snmpapi.dll_SnmpUtilMemFree
push dword [ebp - 0x5c]
call sub.snmpapi.dll_SnmpUtilMemFree
push dword [ebp - 0x44]
call sub.snmpapi.dll_SnmpUtilMemFree
mov eax, dword [ebp - 0x14]
cmp eax, esi
jne 0x1001cc2
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010024ef
leave
ret 0xc