Function at 0x422fd0
Capabilities:
Initialize winsock library
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x278
mov ecx, 3
mov eax, 6
mov dword [esp + 0x90], ecx
mov dword [esp + 0xb0], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0xb8], ecx
lea ecx, [esp + 0x8c]
push ebx
mov dword [esp + 0x98], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xdc], eax
push ebp
mov eax, 0xa
mov dword [esp + 0x28], ecx
push esi
lea ecx, [esp + 0xf4]
push edi
mov ebp, 2
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
mov edi, 1
lea edx, [esp + 0x7c]
lea eax, [esp + 0xc4]
push ecx
push ebp
mov dword [esp + 0xa4], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb8], edi
mov dword [esp + 0xbc], ebp
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xc4], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], ebp
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xa0], edi
mov dword [esp + 0xcc], edi
mov dword [esp + 0xd8], edi
mov dword [esp + 0xdc], ebp
mov dword [esp + 0xe0], edi
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xe8], ebp
mov dword [esp + 0xec], edi
mov dword [esp + 0x4c], 8
mov dword [esp + 0x50], edx
mov dword [esp + 0x30], eax
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x423322
push str.inetmib1.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, 0x20
mov dword [esp + 0x18], ebx
jb 0x423322
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SnmpExtensionInit
push ebx
call esi
push str.SnmpExtensionInitEx
push ebx
mov dword [esp + 0x3c], eax
call esi
push str.SnmpExtensionQuery
push ebx
call esi
push str.SnmpExtensionTrap
push ebx
mov dword [esp + 0x48], eax
call esi
push str.snmpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, 0x20
mov dword [esp + 0x10], eax
jae 0x423166
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x278
ret
push str.SnmpUtilOidCpy
push eax
call esi
mov edx, dword [esp + 0x10]
push str.SnmpUtilOidNCmp
push edx
mov ebx, eax
call esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
push str.SnmpUtilVarBindFree
push eax
call esi
lea ecx, [esp + 0xf0]
lea edx, [esp + 0xec]
push ecx
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [esp + 0x40]
xor ecx, ecx
lea eax, [esp + 0x4c]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x4c]
xor eax, eax
push ecx
push edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x28], edi
call ebx
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
push 0xa1
call edi
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x4c]
push eax
push ecx
mov dword [esp + 0x28], ebp
call ebx
lea edx, [esp + 0x24]
lea eax, [esp + 0x64]
push edx
push eax
call ebx
mov bl, 0x54
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
push 0xa1
call edi
test eax, eax
je 0x423300
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x50]
push edx
push eax
call dword [esp + 0x20]
test eax, eax
jne 0x423300
cmp dword [esp + 0x58], 6
jne 0x42320d
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x68]
push edx
push eax
call dword [esp + 0x20]
test eax, eax
jne 0x423300
mov eax, dword [esp + 0x70]
test eax, eax
je 0x42320d
mov cl, byte [eax]
cmp cl, 0x44
jne 0x423293
cmp byte [eax + 1], 0x45
jne 0x423293
cmp byte [eax + 2], 0x53
jne 0x423293
cmp byte [eax + 3], bl
jne 0x423293
mov dl, byte [eax + 4]
test dl, dl
je 0x42320d
test cl, cl
jne 0x4232be
mov cl, byte [eax + 1]
test cl, cl
jne 0x4232be
mov cl, byte [eax + 2]
test cl, cl
jne 0x4232be
mov cl, byte [eax + 3]
test cl, cl
jne 0x4232be
mov cl, byte [eax + 4]
test cl, cl
jne 0x4232be
mov cl, byte [eax + 5]
test cl, cl
je 0x42320d
mov ecx, dword [esp + 0x28c]
mov edx, dword [eax]
mov dword [ecx], edx
mov ax, word [eax + 4]
mov word [ecx + 4], ax
lea ecx, [esp + 0x4c]
push ecx
call esi
lea edx, [esp + 0x64]
push edx
call esi
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x278
ret
lea edx, [esp + 0x4c]
push edx
call esi
lea eax, [esp + 0x64]
push eax
call esi
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x278
ret