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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x284
mov eax, dword [0x5ed284]
xor eax, esp
mov dword [esp + 0x280], eax
mov eax, dword [ebp + 8]
mov edx, 6
mov dword [esp + 0x98], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0xc0], edx
mov dword [esp + 0xdc], edx
push ebx
mov ecx, 3
lea edx, [esp + 0x94]
mov dword [esp + 0x24], edx
push esi
lea edx, [esp + 0x78]
push edi
mov edi, 1
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xc0], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0xc8], ecx
mov ecx, 0xa
mov dword [esp + 0x48], edx
lea edx, [esp + 0xf8]
mov dword [esp + 0x3c], eax
mov eax, 2
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], ecx
push edx
lea ecx, [esp + 0xc8]
push eax
mov dword [esp + 0xa4], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], edi
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], edi
mov dword [esp + 0xcc], edi
mov dword [esp + 0xd8], edi
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], edi
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], edi
mov dword [esp + 0x4c], 8
mov dword [esp + 0x2c], ecx
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x41ab11
push str.inetmib1.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, 0x20
mov dword [esp + 0x14], ebx
jb 0x41ab11
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 + 0x38], eax
call esi
push str.snmpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, 0x20
mov dword [esp + 0xc], eax
jae 0x41a94d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.0052bfb9
mov esp, ebp
pop ebp
ret
push str.SnmpUtilOidCpy
push eax
call esi
mov ebx, eax
mov eax, dword [esp + 0xc]
push str.SnmpUtilOidNCmp
push eax
call esi
mov ecx, dword [esp + 0xc]
push str.SnmpUtilVarBindFree
push ecx
mov dword [esp + 0x18], eax
call esi
lea edx, [esp + 0xf0]
mov esi, eax
push edx
lea eax, [esp + 0xf0]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [esp + 0x40]
xor eax, eax
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x44]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x18], ecx
xor ecx, ecx
push edx
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x24], edi
call ebx
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x20]
push eax
push 0xa1
call edi
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x24], 2
call ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x68]
push ecx
call ebx
mov bl, 0x54
jmp 0x41aa00
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0xa1
call edi
test eax, eax
je 0x41aaef
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x54]
push ecx
call dword [esp + 0x1c]
test eax, eax
jne 0x41aaef
cmp dword [esp + 0x58], 6
jne 0x41aa00
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x6c]
push ecx
call dword [esp + 0x1c]
test eax, eax
jne 0x41aaef
mov eax, dword [esp + 0x70]
test eax, eax
je 0x41aa00
mov cl, byte [eax]
cmp cl, 0x44
jne 0x41aa85
cmp byte [eax + 1], 0x45
jne 0x41aa85
cmp byte [eax + 2], 0x53
jne 0x41aa85
cmp byte [eax + 3], bl
jne 0x41aa85
cmp byte [eax + 4], 0
je 0x41aa00
test cl, cl
jne 0x41aaa6
cmp byte [eax + 1], cl
jne 0x41aaa6
cmp byte [eax + 2], cl
jne 0x41aaa6
cmp byte [eax + 3], cl
jne 0x41aaa6
cmp byte [eax + 4], cl
jne 0x41aaa6
cmp byte [eax + 5], cl
je 0x41aa00
mov edx, dword [eax]
mov ecx, dword [esp + 0x3c]
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 + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.0052bfb9
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x4c]
push edx
call esi
lea eax, [esp + 0x64]
push eax
call esi
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.0052bfb9
mov esp, ebp
pop ebp
ret