Function at 0x431020
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
xor eax, eax
test esi, esi
je 0x4313cd
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push edi
mov dword [esi + 0xc], eax
call fcn.00419d30
test eax, eax
mov edi, dword [esp + 0x10]
je 0x4310bb
push 0x28d
push str....._snmplib_snmpUDPDomain.c
push str.__s___d:_n
push str.trace
call fcn.00419d00
push 0x28d
push str....._snmplib_snmpUDPDomain.c
push str.__s___d:_n
push str.trace
call fcn.00419bb0
add esp, 0x20
test edi, edi
mov eax, edi
jne 0x431088
mov eax, str._NIL_
push eax
push esi
push str.addr__p__peername___s__n
push str.netsnmp_sockaddr_in
call fcn.00419d00
add esp, 0x10
test edi, edi
mov eax, edi
jne 0x4310a7
mov eax, str._NIL_
push eax
push esi
push str.addr__p__peername___s__n
push str.netsnmp_sockaddr_in
call fcn.00419bb0
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 0x4310dd
push eax
jmp 0x431101
push 3
push 0
call fcn.004075b0
add esp, 8
test eax, eax
jle 0x4310fc
push 3
push 0
call fcn.004075b0
add esp, 8
push eax
jmp 0x431101
push 0xa1
mov ebx, dword [sym.imp.WS2_32.dll_htons]
call ebx
test edi, edi
mov word [esi + 2], ax
je 0x4314f2
push ebp
push edi
call fcn.004636a1
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4313c8
push 0x3a
push ebp
call fcn.0044d3b0
mov edi, eax
add esp, 8
test edi, edi
je 0x4311cb
mov byte [edi], 0
add edi, 1
push edi
call fcn.0044d2b9
add esp, 4
test eax, eax
je 0x4311cb
call fcn.00419d30
test eax, eax
je 0x4311bb
push 0x2af
push str....._snmplib_snmpUDPDomain.c
push str.__s___d:_n
push str.trace
call fcn.00419d00
push 0x2af
push str....._snmplib_snmpUDPDomain.c
push str.__s___d:_n
push str.trace
call fcn.00419bb0
push edi
call fcn.0044d2b9
push eax
push str.port_number_suffix_:_d_n
push str.netsnmp_sockaddr_in
call fcn.00419d00
push edi
call fcn.0044d2b9
push eax
push str.port_number_suffix_:_d_n
push str.netsnmp_sockaddr_in
call fcn.00419bb0
add esp, 0x40
push edi
call fcn.0044d2b9
add esp, 4
push eax
call ebx
mov word [esi + 2], ax
cmp byte [ebp], 0
mov edi, ebp
je 0x4311ed
movsx eax, byte [edi]
push eax
call fcn.0044e66b
add esp, 4
test eax, eax
je 0x4311ed
add edi, 1
cmp byte [edi], 0
jne 0x4311d3
jmp 0x4311f6
cmp byte [edi], 0
jne 0x431282
push ebp
call fcn.0044d2b9
add esp, 4
test eax, eax
je 0x431282
call fcn.00419d30
test eax, eax
je 0x43126d
push 0x2ba
push str....._snmplib_snmpUDPDomain.c
push str.__s___d:_n
push str.trace
call fcn.00419d00
push 0x2ba
push str....._snmplib_snmpUDPDomain.c
push str.__s___d:_n
push str.trace
call fcn.00419bb0
push ebp
call fcn.0044d2b9
push eax
push str.totally_numeric:__d_n
push str.netsnmp_sockaddr_in
call fcn.00419d00
push ebp
call fcn.0044d2b9
push eax
push str.totally_numeric:__d_n
push str.netsnmp_sockaddr_in
call fcn.00419bb0
add esp, 0x40
push ebp
call fcn.0044d2b9
add esp, 4
push eax
call ebx
mov word [esi + 2], ax
jmp 0x431443
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push ebp
call edi
cmp eax, 0xffffffff
je 0x4312fa
call fcn.00419d30
test eax, eax
je 0x4312ec
push 0x2c0
push str....._snmplib_snmpUDPDomain.c
push str.__s___d:_n
push str.trace
call fcn.00419d00
push 0x2c0
push str....._snmplib_snmpUDPDomain.c
push str.__s___d:_n
push str.trace
call fcn.00419bb0
push str.IP_address_n
push str.netsnmp_sockaddr_in
call fcn.00419d00
push str.IP_address_n
push str.netsnmp_sockaddr_in
call fcn.00419bb0
add esp, 0x30
push ebp
call edi
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
jmp 0x431443
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x43135c
call fcn.00419d30
test eax, eax
je 0x4313bf
push 0x2ca
push str....._snmplib_snmpUDPDomain.c
push str.__s___d:_n
push str.trace
call fcn.00419d00
push 0x2ca
push str....._snmplib_snmpUDPDomain.c
push str.__s___d:_n
push str.trace
call fcn.00419bb0
push str.hostname__couldnt_resolve__n
push str.netsnmp_sockaddr_in
call fcn.00419d00
push str.hostname__couldnt_resolve__n
jmp 0x4313b2
cmp word [edi + 8], 2
je 0x4313cf
call fcn.00419d30
test eax, eax
je 0x4313bf
push 0x2d0
push str....._snmplib_snmpUDPDomain.c
push str.__s___d:_n
push str.trace
call fcn.00419d00
push 0x2d0
push str....._snmplib_snmpUDPDomain.c
push str.__s___d:_n
push str.trace
call fcn.00419bb0
push str.hostname__not_AF_INET___n
push str.netsnmp_sockaddr_in
call fcn.00419d00
push str.hostname__not_AF_INET___n
push str.netsnmp_sockaddr_in
call fcn.00419bb0
add esp, 0x30
push ebp
call fcn.0044ca3f
add esp, 4
pop ebp
pop ebx
xor eax, eax
pop edi
pop esi
ret
call fcn.00419d30
test eax, eax
je 0x43142b
push 0x2d5
push str....._snmplib_snmpUDPDomain.c
push str.__s___d:_n
push str.trace
call fcn.00419d00
push 0x2d5
push str....._snmplib_snmpUDPDomain.c
push str.__s___d:_n
push str.trace
call fcn.00419bb0
push str.hostname__resolved_okay__n
push str.netsnmp_sockaddr_in
call fcn.00419d00
push str.hostname__resolved_okay__n
push str.netsnmp_sockaddr_in
call fcn.00419bb0
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.00450550
add esp, 0xc
call fcn.00419d30
test eax, eax
je 0x4314df
push 0x2e5
push str....._snmplib_snmpUDPDomain.c
push str.__s___d:_n
push str.trace
call fcn.00419d00
push 0x2e5
push str....._snmplib_snmpUDPDomain.c
push str.__s___d:_n
push str.trace
call fcn.00419bb0
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.00419d00
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.00419bb0
add esp, 0x10
push ebp
call fcn.0044ca3f
add esp, 4
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
ret
call fcn.00419d30
test eax, eax
je 0x43154e
push 0x2e1
push str....._snmplib_snmpUDPDomain.c
push str.__s___d:_n
push str.trace
call fcn.00419d00
push 0x2e1
push str....._snmplib_snmpUDPDomain.c
push str.__s___d:_n
push str.trace
call fcn.00419bb0
push str.NULL_peername
push str.netsnmp_sockaddr_in
call fcn.00419d00
push str.NULL_peername
push str.netsnmp_sockaddr_in
call fcn.00419bb0
add esp, 0x30
pop ebx
pop edi
xor eax, eax
pop esi
ret