Function at 0x4011f0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
xor esi, esi
mov ecx, 1
mov eax, 2
xor ebp, ebp
push edi
mov edi, dword [sym.imp.netsnmp.dll_snmp_varlist_add_variable]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 3
mov dword [esp + 0x34], 6
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], esi
cmp dword [0x40bb68], esi
je 0x401355
push esi
push esi
push 5
mov dword [esp + 0x5c], eax
push 0xa
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
push ecx
call edi
mov eax, dword [0x40bb68]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401278
sub eax, edx
mov edx, dword [0x40bb30]
mov ebp, eax
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.netsnmp.dll_netsnmp_query_walk]
mov ebx, dword [esp + 0x18]
add esp, 8
test ebx, ebx
je 0x4012c4
mov ecx, dword [ebx + 0x10]
mov edx, dword [0x40bb68]
push ebp
push ecx
push edx
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4012be
cmp ebp, dword [ebx + 0x14]
je 0x4012ea
mov ebx, dword [ebx]
test ebx, ebx
jne 0x4012a0
mov eax, dword [0x40bb68]
push eax
push str._s:_unknown_interface_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.MSVCR90.dll_exit]
mov ebp, dword [sym.imp.MSVCR90.dll_calloc]
push 0xa4
push 1
call ebp
push 0xa4
push 1
mov dword [esp + 0x24], eax
call ebp
add esp, 0x10
mov ebp, eax
cmp dword [esp + 0x14], esi
je 0x401335
test ebp, ebp
je 0x401335
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx + 0x28]
push eax
mov dword [esp + 0x58], edx
call dword [sym.imp.netsnmp.dll_snmp_free_var]
add esp, 4
mov dword [esp + 0x10], esi
xor ebx, ebx
jmp 0x40137f
push str.internal_error_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR90.dll_exit]
mov ebx, dword [sym.imp.MSVCR90.dll_calloc]
push 0xa4
push ecx
call ebx
push 0xa4
push 1
mov esi, eax
call ebx
xor ebx, ebx
add esp, 0x10
mov dword [esp + 0x18], eax
cmp esi, ebx
je 0x401335
cmp eax, ebx
je 0x401335
mov eax, dword [esp + 0x5c]
mov dword [0x40b1c0], eax
cdq
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
call dword [sym.imp.MSVCR90.dll__time64]
add esp, 4
add eax, dword [esp + 0x24]
mov dword [esp + 0x1c], 1
adc edx, dword [esp + 0x28]
mov dword [0x40b1b8], eax
mov dword [0x40b1bc], edx
mov eax, dword [0x40bb68]
cmp eax, ebx
jne 0x4013c4
mov eax, str._Total_
push str.output
push eax
push str.input
push str._17s__14s__16s
call dword [sym.imp.MSVCR90.dll_printf]
push 0xa
call dword [sym.imp.MSVCR90.dll_putchar]
push str.colls
push str.bytes
push str.errs
push str.packets
push str.bytes
push str.errs
push str.packets
push str._10s__5s__10s__10s__5s__10s__5s
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 0x34
cmp dword [0x40bb4c], ebx
je 0x40142e
push str.drops
push 0x409214
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
push 0xa
call dword [sym.imp.MSVCR90.dll_putchar]
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x20
push eax
call dword [sym.imp.MSVCR90.dll_fflush]
add esp, 8
mov dword [esp + 0x20], 0x15
push ebx
push ebx
push 5
cmp dword [0x40bb68], ebx
je 0x401798
push 0xb
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x68], 0xa
call edi
push ebx
push ebx
push 5
push 0xb
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x80], 0x10
call edi
push ebx
push ebx
push 5
push 0xb
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x98], 0xb
call edi
add esp, 0x48
push ebx
push ebx
push 5
push 0xb
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x68], 0xc
call edi
push ebx
push ebx
push 5
push 0xb
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x80], 0xe
call edi
push ebx
push ebx
push 5
push 0xb
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x98], 0x11
call edi
add esp, 0x48
push ebx
push ebx
push 5
push 0xb
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x68], 0x12
call edi
push ebx
push ebx
push 5
push 0xb
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x80], 0x14
call edi
mov dword [esp + 0x80], 0x15
push ebx
push ebx
push 5
push 0xb
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x54]
push eax
call edi
add esp, 0x48
cmp dword [0x40bb4c], ebx
je 0x401587
push ebx
push ebx
push 5
push 0xb
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x68], 0x13
call edi
add esp, 0x18
mov eax, dword [0x40bb30]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.netsnmp.dll_netsnmp_query_get]
mov dword [ebp + 0x84], ebx
mov dword [ebp + 0x88], ebx
mov dword [ebp + 0x8c], ebx
mov dword [ebp + 0x90], ebx
mov dword [ebp + 0x94], ebx
mov dword [ebp + 0x98], ebx
mov dword [ebp + 0x9c], ebx
mov dword [ebp + 0xa0], ebx
mov ebx, dword [esp + 0x18]
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0x28]
add esp, 8
mov dword [ebp + 0x80], eax
mov edx, ebx
lea ecx, [ecx]
mov eax, dword [edx + 0x10]
test eax, eax
je case.0x4015f5.13
mov ecx, dword [edx + 4]
mov ecx, dword [ecx + 0x24]
add ecx, 0xfffffff6
cmp ecx, 0xb
ja case.0x4015f5.13
jmp dword [ecx*4 + 0x401b54]
mov eax, dword [eax]
mov dword [ebp + 0x88], eax
jmp case.0x4015f5.13
mov ecx, dword [eax]
add dword [ebp + 0x84], ecx
jmp case.0x4015f5.13
mov eax, dword [eax]
add dword [ebp + 0x84], eax
jmp case.0x4015f5.13
mov ecx, dword [eax]
mov dword [ebp + 0x8c], ecx
jmp case.0x4015f5.13
mov eax, dword [eax]
mov dword [ebp + 0x94], eax
jmp case.0x4015f5.13
mov ecx, dword [eax]
add dword [ebp + 0x90], ecx
jmp case.0x4015f5.13
mov eax, dword [eax]
add dword [ebp + 0x90], eax
jmp case.0x4015f5.13
mov ecx, dword [eax]
mov dword [ebp + 0xa0], ecx
jmp case.0x4015f5.13
mov eax, dword [eax]
mov dword [ebp + 0x98], eax
jmp case.0x4015f5.13
mov ecx, dword [eax]
mov dword [ebp + 0x9c], ecx
mov edx, dword [edx]
test edx, edx
jne 0x4015e0
push ebx
call dword [sym.imp.netsnmp.dll_snmp_free_varbind]
mov ebx, dword [esp + 0x18]
add esp, 4
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0
jne 0x401731
mov edx, dword [ebp + 0x9c]
sub edx, dword [ebx + 0x9c]
mov eax, dword [ebp + 0x94]
sub eax, dword [ebx + 0x94]
mov ecx, dword [ebp + 0x98]
sub ecx, dword [ebx + 0x98]
push edx
mov edx, dword [ebp + 0x90]
sub edx, dword [ebx + 0x90]
push eax
mov eax, dword [ebp + 0x88]
sub eax, dword [ebx + 0x88]
push ecx
mov ecx, dword [ebp + 0x8c]
sub ecx, dword [ebx + 0x8c]
push edx
mov edx, dword [ebp + 0x84]
sub edx, dword [ebx + 0x84]
push eax
push ecx
push edx
push str._10lu__5lu__10lu__10lu__5lu__10lu__5lu
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 0x20
cmp dword [0x40bb4c], 0
je 0x401716
mov eax, dword [ebp + 0xa0]
sub eax, dword [ebx + 0xa0]
push eax
push str.__5lu
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
push 0xa
call dword [sym.imp.MSVCR90.dll_putchar]
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x20
push eax
call dword [sym.imp.MSVCR90.dll_fflush]
add esp, 8
mov ecx, dword [ebp + 0x84]
mov edx, dword [ebp + 0x8c]
mov eax, dword [ebp + 0x88]
mov dword [ebx + 0x84], ecx
mov ecx, dword [ebp + 0x90]
mov dword [ebx + 0x8c], edx
mov edx, dword [ebp + 0x98]
mov dword [ebx + 0x88], eax
mov eax, dword [ebp + 0x94]
mov dword [ebx + 0x90], ecx
mov ecx, dword [ebp + 0x9c]
mov dword [ebx + 0x98], edx
mov edx, dword [ebp + 0xa0]
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x9c], ecx
mov dword [ebx + 0xa0], edx
xor ebx, ebx
jmp 0x401b13
push 0xa
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esp + 0x68], 0xb
call edi
push ebx
push ebx
push 5
push 0xa
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x80], 0xc
call edi
push ebx
push ebx
push 5
push 0xa
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x98], 0xe
call edi
add esp, 0x48
push ebx
push ebx
push 5
push 0xa
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x68], 0x11
call edi
push ebx
push ebx
push 5
push 0xa
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x80], 0x12
call edi
push ebx
push ebx
push 5
push 0xa
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x98], 0x14
call edi
add esp, 0x48
push ebx
push ebx
push 5
push 0xa
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x68], 0x15
call edi
push ebx
push ebx
mov dword [esp + 0x70], 0xa
push 5
push 0xa
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x3c]
push eax
call edi
push ebx
push ebx
push 5
push 0xa
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x98], 0x10
call edi
add esp, 0x48
cmp dword [0x40bb4c], ebx
je 0x4018eb
push ebx
push ebx
push 5
push 0xa
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x68], 0x13
call edi
add esp, 0x18
mov edx, dword [0x40bb30]
mov eax, dword [esp + 0x10]
push edx
push eax
mov dword [esp + 0x58], 0xb
call dword [sym.imp.netsnmp.dll_netsnmp_query_getnext]
add esp, 8
test eax, eax
jne 0x4019e4
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
push 9
push edx
lea eax, [esp + 0x34]
push 9
push eax
call dword [sym.imp.netsnmp.dll_snmp_oid_compare]
add esp, 0x10
test eax, eax
jne 0x4019e4
mov edx, dword [esp + 0x10]
cmp edx, ebx
je 0x4019cc
mov edi, edi
mov eax, dword [edx + 0x10]
cmp eax, ebx
je case.0x401955.13
mov ecx, dword [edx + 4]
mov ecx, dword [ecx + 0x24]
add ecx, 0xfffffff6
cmp ecx, 0xb
ja case.0x401955.13
jmp dword [ecx*4 + 0x401b84]
mov eax, dword [eax]
add dword [esi + 0x88], eax
jmp case.0x401955.13
mov ecx, dword [eax]
add dword [esi + 0x84], ecx
jmp case.0x401955.13
mov eax, dword [eax]
add dword [esi + 0x84], eax
jmp case.0x401955.13
mov ecx, dword [eax]
add dword [esi + 0x8c], ecx
jmp case.0x401955.13
mov eax, dword [eax]
add dword [esi + 0x94], eax
jmp case.0x401955.13
mov ecx, dword [eax]
add dword [esi + 0x90], ecx
jmp case.0x401955.13
mov eax, dword [eax]
add dword [esi + 0x90], eax
jmp case.0x401955.13
mov ecx, dword [eax]
add dword [esi + 0xa0], ecx
jmp case.0x401955.13
mov eax, dword [eax]
add dword [esi + 0x98], eax
jmp case.0x401955.13
mov ecx, dword [eax]
add dword [esi + 0x9c], ecx
mov edx, dword [edx]
cmp edx, ebx
jne 0x401940
mov edx, dword [esp + 0x10]
mov eax, dword [0x40bb30]
push eax
push edx
call dword [sym.imp.netsnmp.dll_netsnmp_query_getnext]
add esp, 8
test eax, eax
je 0x401910
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.netsnmp.dll_snmp_free_varbind]
add esp, 4
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x1c], ebx
jne 0x401aaf
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x9c]
sub edx, dword [eax + 0x9c]
mov ecx, dword [esi + 0x94]
sub ecx, dword [eax + 0x94]
push edx
mov edx, dword [esi + 0x98]
sub edx, dword [eax + 0x98]
push ecx
mov ecx, dword [esi + 0x90]
sub ecx, dword [eax + 0x90]
push edx
mov edx, dword [esi + 0x88]
sub edx, dword [eax + 0x88]
push ecx
mov ecx, dword [esi + 0x8c]
sub ecx, dword [eax + 0x8c]
push edx
mov edx, dword [esi + 0x84]
sub edx, dword [eax + 0x84]
push ecx
push edx
push str._10lu__5lu__10lu__10lu__5lu__10lu__5lu
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 0x20
cmp dword [0x40bb4c], ebx
je 0x401a94
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0xa0]
sub eax, dword [ecx + 0xa0]
push eax
push str.__5lu
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
push 0xa
call dword [sym.imp.MSVCR90.dll_putchar]
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x20
push eax
call dword [sym.imp.MSVCR90.dll_fflush]
add esp, 8
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x84]
mov ecx, dword [esi + 0x8c]
mov dword [eax + 0x84], edx
mov edx, dword [esi + 0x88]
mov dword [eax + 0x8c], ecx
mov ecx, dword [esi + 0x90]
mov dword [eax + 0x88], edx
mov edx, dword [esi + 0x98]
mov dword [eax + 0x90], ecx
mov ecx, dword [esi + 0x94]
mov dword [eax + 0x98], edx
mov edx, dword [esi + 0x9c]
mov dword [eax + 0x94], ecx
mov ecx, dword [esi + 0xa0]
mov dword [eax + 0x9c], edx
mov dword [eax + 0xa0], ecx
call fcn.00401190
mov edx, dword [esp + 0x5c]
push ebx
mov dword [0x40b1c0], edx
call dword [sym.imp.MSVCR90.dll__time64]
add esp, 4
add eax, dword [esp + 0x24]
mov dword [esp + 0x1c], ebx
adc edx, dword [esp + 0x28]
sub dword [esp + 0x20], 1
mov dword [0x40b1b8], eax
mov dword [0x40b1bc], edx
jne 0x401451
jmp 0x4013b6