Function at 0x42d260
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
xor eax, eax
test esi, esi
je 0x42d60d
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push edi
mov dword [esi + 0xc], eax
call fcn.004051c0
test eax, eax
mov edi, dword [esp + 0x10]
je 0x42d2fb
push 0x28d
push str....._snmplib_snmpUDPDomain.c
push 0x473320
push 0x473318
call fcn.00405190
push 0x28d
push str....._snmplib_snmpUDPDomain.c
push 0x473320
push 0x473318
call fcn.00405040
add esp, 0x20
test edi, edi
mov eax, edi
jne 0x42d2c8
mov eax, str._NIL_
push eax
push esi
push str.addr__p__peername___s__n
push str.netsnmp_sockaddr_in
call fcn.00405190
add esp, 0x10
test edi, edi
mov eax, edi
jne 0x42d2e7
mov eax, str._NIL_
push eax
push esi
push str.addr__p__peername___s__n
push str.netsnmp_sockaddr_in
call fcn.00405040
add esp, 0x10
push ebx
lea ebx, [esi + 4]
push 0
mov dword [esp + 0x14], ebx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebx], eax
mov eax, dword [esp + 0x18]
test eax, eax
mov word [esi], 2
jle 0x42d31d
push eax
jmp 0x42d341
push 3
push 0
call fcn.00402390
add esp, 8
test eax, eax
jle 0x42d33c
push 3
push 0
call fcn.00402390
add esp, 8
push eax
jmp 0x42d341
push 0xa1
mov ebx, dword [sym.imp.WS2_32.dll_htons]
call ebx
test edi, edi
mov word [esi + 2], ax
je 0x42d732
push ebp
push edi
call fcn.0045ece5
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x42d608
push 0x3a
push ebp
call fcn.00448de0
mov edi, eax
add esp, 8
test edi, edi
je 0x42d40b
mov byte [edi], 0
add edi, 1
push edi
call fcn.0044a98d
add esp, 4
test eax, eax
je 0x42d40b
call fcn.004051c0
test eax, eax
je 0x42d3fb
push 0x2af
push str....._snmplib_snmpUDPDomain.c
push 0x473320
push 0x473318
call fcn.00405190
push 0x2af
push str....._snmplib_snmpUDPDomain.c
push 0x473320
push 0x473318
call fcn.00405040
push edi
call fcn.0044a98d
push eax
push str.port_number_suffix_:_d_n
push str.netsnmp_sockaddr_in
call fcn.00405190
push edi
call fcn.0044a98d
push eax
push str.port_number_suffix_:_d_n
push str.netsnmp_sockaddr_in
call fcn.00405040
add esp, 0x40
push edi
call fcn.0044a98d
add esp, 4
push eax
call ebx
mov word [esi + 2], ax
cmp byte [ebp], 0
mov edi, ebp
je 0x42d42d
movsx eax, byte [edi]
push eax
call fcn.0044c8ed
add esp, 4
test eax, eax
je 0x42d42d
add edi, 1
cmp byte [edi], 0
jne 0x42d413
jmp 0x42d436
cmp byte [edi], 0
jne 0x42d4c2
push ebp
call fcn.0044a98d
add esp, 4
test eax, eax
je 0x42d4c2
call fcn.004051c0
test eax, eax
je 0x42d4ad
push 0x2ba
push str....._snmplib_snmpUDPDomain.c
push 0x473320
push 0x473318
call fcn.00405190
push 0x2ba
push str....._snmplib_snmpUDPDomain.c
push 0x473320
push 0x473318
call fcn.00405040
push ebp
call fcn.0044a98d
push eax
push str.totally_numeric:__d_n
push str.netsnmp_sockaddr_in
call fcn.00405190
push ebp
call fcn.0044a98d
push eax
push str.totally_numeric:__d_n
push str.netsnmp_sockaddr_in
call fcn.00405040
add esp, 0x40
push ebp
call fcn.0044a98d
add esp, 4
push eax
call ebx
mov word [esi + 2], ax
jmp 0x42d683
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push ebp
call edi
cmp eax, 0xffffffff
je 0x42d53a
call fcn.004051c0
test eax, eax
je 0x42d52c
push 0x2c0
push str....._snmplib_snmpUDPDomain.c
push 0x473320
push 0x473318
call fcn.00405190
push 0x2c0
push str....._snmplib_snmpUDPDomain.c
push 0x473320
push 0x473318
call fcn.00405040
push str.IP_address_n
push str.netsnmp_sockaddr_in
call fcn.00405190
push str.IP_address_n
push str.netsnmp_sockaddr_in
call fcn.00405040
add esp, 0x30
push ebp
call edi
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
jmp 0x42d683
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x42d59c
call fcn.004051c0
test eax, eax
je 0x42d5ff
push 0x2ca
push str....._snmplib_snmpUDPDomain.c
push 0x473320
push 0x473318
call fcn.00405190
push 0x2ca
push str....._snmplib_snmpUDPDomain.c
push 0x473320
push 0x473318
call fcn.00405040
push str.hostname__couldnt_resolve__n
push str.netsnmp_sockaddr_in
call fcn.00405190
push str.hostname__couldnt_resolve__n
jmp 0x42d5f2
cmp word [edi + 8], 2
je 0x42d60f
call fcn.004051c0
test eax, eax
je 0x42d5ff
push 0x2d0
push str....._snmplib_snmpUDPDomain.c
push 0x473320
push 0x473318
call fcn.00405190
push 0x2d0
push str....._snmplib_snmpUDPDomain.c
push 0x473320
push 0x473318
call fcn.00405040
push str.hostname__not_AF_INET___n
push str.netsnmp_sockaddr_in
call fcn.00405190
push str.hostname__not_AF_INET___n
push str.netsnmp_sockaddr_in
call fcn.00405040
add esp, 0x30
push ebp
call fcn.0044a992
add esp, 4
pop ebp
pop ebx
xor eax, eax
pop edi
pop esi
ret
call fcn.004051c0
test eax, eax
je 0x42d66b
push 0x2d5
push str....._snmplib_snmpUDPDomain.c
push 0x473320
push 0x473318
call fcn.00405190
push 0x2d5
push str....._snmplib_snmpUDPDomain.c
push 0x473320
push 0x473318
call fcn.00405040
push str.hostname__resolved_okay__n
push str.netsnmp_sockaddr_in
call fcn.00405190
push str.hostname__resolved_okay__n
push str.netsnmp_sockaddr_in
call fcn.00405040
add esp, 0x30
movsx edx, word [edi + 0xa]
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.0044e790
add esp, 0xc
call fcn.004051c0
test eax, eax
je 0x42d71f
push 0x2e5
push str....._snmplib_snmpUDPDomain.c
push 0x473320
push 0x473318
call fcn.00405190
push 0x2e5
push str....._snmplib_snmpUDPDomain.c
push 0x473320
push 0x473318
call fcn.00405040
movzx eax, word [esi + 2]
mov edi, dword [sym.imp.WS2_32.dll_ntohs]
add esp, 0x20
push eax
call edi
mov edx, dword [esp + 0x14]
mov ebx, dword [sym.imp.WS2_32.dll_inet_ntoa]
movzx ecx, ax
mov eax, dword [edx]
push ecx
push eax
call ebx
push eax
push str.return__AF_INET___s:_hu__n
push str.netsnmp_sockaddr_in
call fcn.00405190
movzx ecx, word [esi + 2]
add esp, 0x10
push ecx
call edi
movzx edx, ax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push ecx
call ebx
push eax
push str.return__AF_INET___s:_hu__n
push str.netsnmp_sockaddr_in
call fcn.00405040
add esp, 0x10
push ebp
call fcn.0044a992
add esp, 4
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
ret
call fcn.004051c0
test eax, eax
je 0x42d78e
push 0x2e1
push str....._snmplib_snmpUDPDomain.c
push 0x473320
push 0x473318
call fcn.00405190
push 0x2e1
push str....._snmplib_snmpUDPDomain.c
push 0x473320
push 0x473318
call fcn.00405040
push str.NULL_peername
push str.netsnmp_sockaddr_in
call fcn.00405190
push str.NULL_peername
push str.netsnmp_sockaddr_in
call fcn.00405040
add esp, 0x30
pop ebx
pop edi
xor eax, eax
pop esi
ret