Function at 0x404d50
Capabilities:
Initialize winsock library
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x26c
lea eax, [esp + 0xdc]
push ebx
push ebp
push esi
push edi
mov ebp, 2
push eax
push ebp
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x404d83
call sub.WS2_32.dll_WSACleanup
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x26c
ret
mov eax, 1
mov ecx, 6
mov dword [esp + 0xb8], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xb0], eax
mov eax, 0xa
mov dword [esp + 0xc0], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x98], ecx
mov dword [esp + 0xb4], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x90]
lea eax, [esp + 0x70]
mov edx, 3
mov dword [esp + 0x14], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0xbc], edx
mov dword [esp + 0xdc], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x94], edx
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x40]
lea edx, [esp + 0xb8]
rep stosd dword es:[edi], eax
push str.inetmib1.dll
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xd4], ebp
mov dword [esp + 0xd8], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x8c], ebp
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xac], ebp
mov dword [esp + 0xb0], ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x3c], 8
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, 0x20
jae 0x404eb0
call sub.WS2_32.dll_WSACleanup
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x26c
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SnmpExtensionInit
push esi
call edi
push str.SnmpExtensionInitEx
push esi
mov dword [esp + 0x30], eax
call edi
push str.SnmpExtensionQuery
push esi
call edi
push str.SnmpExtensionTrap
push esi
mov dword [esp + 0x38], eax
call edi
lea ecx, [esp + 0xe4]
lea edx, [esp + 0xe0]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [esp + 0x34]
lea eax, [esp + 0x40]
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], eax
lea edx, [esp + 0x40]
xor eax, eax
push ecx
push edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x2c], 1
call sub.snmpapi.dll_SnmpUtilOidCpy
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
push 0xa1
call esi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x40]
push eax
push ecx
mov dword [esp + 0x2c], ebp
call sub.snmpapi.dll_SnmpUtilOidCpy
lea edx, [esp + 0x10]
lea eax, [esp + 0x58]
push edx
push eax
call sub.snmpapi.dll_SnmpUtilOidCpy
mov bl, 0x54
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
push 0xa1
call esi
test eax, eax
je 0x40502a
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x44]
push edx
push eax
call sub.snmpapi.dll_SnmpUtilOidNCmp
test eax, eax
jne 0x40502a
cmp dword [esp + 0x4c], 6
jne 0x404f68
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x5c]
push edx
push eax
call sub.snmpapi.dll_SnmpUtilOidNCmp
test eax, eax
jne 0x40502a
mov eax, dword [esp + 0x64]
test eax, eax
je 0x404f68
mov cl, byte [eax]
cmp cl, 0x44
jne 0x404fe8
cmp byte [eax + 1], 0x45
jne 0x404fe8
cmp byte [eax + 2], 0x53
jne 0x404fe8
cmp byte [eax + 3], bl
jne 0x404fe8
mov dl, byte [eax + 4]
test dl, dl
je 0x404f68
test cl, cl
jne 0x405013
mov cl, byte [eax + 1]
test cl, cl
jne 0x405013
mov cl, byte [eax + 2]
test cl, cl
jne 0x405013
mov cl, byte [eax + 3]
test cl, cl
jne 0x405013
mov cl, byte [eax + 4]
test cl, cl
jne 0x405013
mov cl, byte [eax + 5]
test cl, cl
je 0x404f68
mov ecx, dword [esp + 0x280]
mov esi, 6
sub eax, ecx
mov dl, byte [eax + ecx]
mov byte [ecx], dl
inc ecx
dec esi
jne 0x405021
lea eax, [esp + 0x40]
push eax
call sub.snmpapi.dll_SnmpUtilVarBindFree
lea ecx, [esp + 0x58]
push ecx
call sub.snmpapi.dll_SnmpUtilVarBindFree
call sub.WS2_32.dll_WSACleanup
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x26c
ret