Function at 0x431560
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x48ae5c]
xor eax, esp
mov dword [esp + 0x10], eax
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x431821
cmp word [edi], 2
jne 0x431821
push esi
push 0x40
call fcn.0044e481
mov esi, eax
add esp, 4
test esi, esi
jne 0x4315a7
pop esi
pop edi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0044ca30
add esp, 0x14
ret
push ebx
push ebp
push 0x10
push edi
push 0
call fcn.00430530
add esp, 0xc
mov ebx, eax
call fcn.00419d30
test eax, eax
mov ebp, dword [esp + 0x2c]
je 0x43164c
push 0x1f6
push str....._snmplib_snmpUDPDomain.c
push str.__s___d:_n
push str.trace
call fcn.00419d00
push 0x1f6
push str....._snmplib_snmpUDPDomain.c
push str.__s___d:_n
push str.trace
call fcn.00419bb0
add esp, 0x20
test ebp, ebp
mov eax, str.local
jne 0x43160c
mov eax, str.remote
movzx ecx, word [edi + 2]
push ecx
push ebx
push eax
push str.open__s__s:_d_n
push str.netsnmp_udp
call fcn.00419d00
add esp, 0x14
test ebp, ebp
mov eax, str.local
jne 0x431633
mov eax, str.remote
movzx edx, word [edi + 2]
push edx
push ebx
push eax
push str.open__s__s:_d_n
push str.netsnmp_udp
call fcn.00419bb0
add esp, 0x14
push ebx
call fcn.0044ca3f
push 0x40
push 0
push esi
call fcn.0044e830
add esp, 0x10
push 0
mov dword [esi], 0x4824f0
mov eax, dword [0x48250c]
push 2
push 2
mov dword [esi + 4], eax
call dword [sym.imp.WS2_32.dll_socket]
test eax, eax
mov dword [esi + 0x18], eax
jl 0x431803
push ebp
push eax
call fcn.00430ff0
add esp, 8
test ebp, ebp
je 0x431719
push 6
call fcn.0044e481
add esp, 4
test eax, eax
mov dword [esi + 8], eax
je 0x431803
mov ecx, dword [edi + 4]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
mov dword [eax], ecx
movzx edx, word [edi + 2]
push edx
call ebx
mov ecx, dword [esi + 8]
mov byte [ecx + 4], ah
movzx edx, word [edi + 2]
push edx
call ebx
mov ecx, dword [esi + 8]
push 0x10
mov byte [ecx + 5], al
mov edx, dword [esi + 0x18]
push edi
push edx
mov dword [esi + 0xc], 6
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x43170c
push esi
call fcn.00430930
push esi
call fcn.004255f0
add esp, 8
pop ebp
pop ebx
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0044ca30
add esp, 0x14
ret
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
jmp 0x4317c8
push 0xe
push 0
call fcn.004076f0
add esp, 8
test eax, eax
je 0x431751
push 0
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00431020
mov edx, dword [esi + 0x18]
add esp, 0xc
push 0x10
lea ecx, [esp + 0x14]
push ecx
push edx
mov word [esp + 0x1e], 0
call dword [sym.imp.WS2_32.dll_bind]
push 0x10
call fcn.0044e481
push 6
mov dword [esi + 0x20], eax
call fcn.0044e481
add esp, 8
cmp dword [esi + 0x20], 0
mov dword [esi + 0x10], eax
je 0x431803
test eax, eax
je 0x431803
mov ecx, dword [edi + 4]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
mov dword [eax], ecx
movzx edx, word [edi + 2]
push edx
call ebx
mov ecx, dword [esi + 0x10]
mov byte [ecx + 4], ah
movzx edx, word [edi + 2]
push edx
call ebx
mov ecx, dword [esi + 0x10]
mov byte [ecx + 5], al
mov eax, dword [esi + 0x20]
mov dword [esi + 0x14], 6
mov edx, dword [edi]
mov dword [eax], edx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov edx, dword [edi + 8]
mov dword [eax + 8], edx
mov ecx, dword [edi + 0xc]
mov dword [eax + 0xc], ecx
mov dword [esi + 0x24], 0x10
xor eax, eax
pop ebp
mov dword [esi + 0x38], eax
pop ebx
mov dword [esi + 0x28], 0xffe3
mov dword [esi + 0x2c], 0x4305d0
mov dword [esi + 0x30], 0x4307a0
mov dword [esi + 0x34], fcn.00430930
mov dword [esi + 0x3c], fcn.00430530
mov eax, esi
pop esi
pop edi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0044ca30
add esp, 0x14
ret
push esi
call fcn.004255f0
add esp, 4
pop ebp
pop ebx
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0044ca30
add esp, 0x14
ret
mov ecx, dword [esp + 0x14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0044ca30
add esp, 0x14
ret