Function at 0x42d7a0
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x492e64]
xor eax, esp
mov dword [esp + 0x10], eax
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x42da61
cmp word [edi], 2
jne 0x42da61
push esi
push 0x40
call fcn.0044c354
mov esi, eax
add esp, 4
test esi, esi
jne 0x42d7e7
pop esi
pop edi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00448dba
add esp, 0x14
ret
push ebx
push ebp
push 0x10
push edi
push 0
call fcn.0042c770
add esp, 0xc
mov ebx, eax
call fcn.004051c0
test eax, eax
mov ebp, dword [esp + 0x2c]
je 0x42d88c
push 0x1f6
push str....._snmplib_snmpUDPDomain.c
push 0x473320
push 0x473318
call fcn.00405190
push 0x1f6
push str....._snmplib_snmpUDPDomain.c
push 0x473320
push 0x473318
call fcn.00405040
add esp, 0x20
test ebp, ebp
mov eax, str.local
jne 0x42d84c
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.00405190
add esp, 0x14
test ebp, ebp
mov eax, str.local
jne 0x42d873
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.00405040
add esp, 0x14
push ebx
call fcn.0044a992
push 0x40
push 0
push esi
call fcn.0044a680
add esp, 0x10
push 0
mov dword [esi], 0x48a4f4
mov eax, dword [0x48a510]
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 0x42da43
push ebp
push eax
call fcn.0042d230
add esp, 8
test ebp, ebp
je 0x42d959
push 6
call fcn.0044c354
add esp, 4
test eax, eax
mov dword [esi + 8], eax
je 0x42da43
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 0x42d94c
push esi
call fcn.0042cb70
push esi
call fcn.004214f0
add esp, 8
pop ebp
pop ebx
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00448dba
add esp, 0x14
ret
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
jmp 0x42da08
push 0xe
push 0
call fcn.004024d0
add esp, 8
test eax, eax
je 0x42d991
push 0
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0042d260
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.0044c354
push 6
mov dword [esi + 0x20], eax
call fcn.0044c354
add esp, 8
cmp dword [esi + 0x20], 0
mov dword [esi + 0x10], eax
je 0x42da43
test eax, eax
je 0x42da43
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], 0x42c810
mov dword [esi + 0x30], 0x42c9e0
mov dword [esi + 0x34], fcn.0042cb70
mov dword [esi + 0x3c], fcn.0042c770
mov eax, esi
pop esi
pop edi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00448dba
add esp, 0x14
ret
push esi
call fcn.004214f0
add esp, 4
pop ebp
pop ebx
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00448dba
add esp, 0x14
ret
mov ecx, dword [esp + 0x14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.00448dba
add esp, 0x14
ret