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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [0x45e700]
xor eax, esp
mov dword [esp + 0x278], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [esp + 0xf0]
push ecx
mov esi, 2
push esi
mov dword [esp + 0x3c], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4092ff
push str.inetmib1.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, 0x20
jb 0x4092ff
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SnmpExtensionInit
push edi
call ebx
push str.SnmpExtensionInitEx
push edi
mov dword [esp + 0x38], eax
call ebx
push str.SnmpExtensionQuery
push edi
call ebx
push str.SnmpExtensionTrap
push edi
mov dword [esp + 0x18], eax
call ebx
lea edx, [esp + 0xe8]
push edx
lea eax, [esp + 0xe8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x5c], eax
mov eax, 3
mov edi, 1
mov dword [esp + 0xc0], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x98], eax
xor ecx, ecx
mov eax, 0xa
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x94]
mov dword [esp + 0x14], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x20], edx
lea eax, [esp + 0xbc]
lea ecx, [esp + 0x44]
lea edx, [esp + 0x3c]
mov ebx, 6
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ecx
push edx
lea eax, [esp + 0x48]
lea ecx, [esp + 0x78]
push eax
mov dword [esp + 0xc4], edi
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], edi
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd8], edi
mov dword [esp + 0xdc], esi
mov dword [esp + 0xe0], esi
mov dword [esp + 0xe4], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], edi
mov dword [esp + 0xc0], ebx
mov dword [esp + 0x44], 8
mov dword [esp + 0x48], ecx
mov dword [esp + 0x30], edi
call sub.snmpapi.dll_SnmpUtilOidCpy
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x2c]
push eax
push 0xa1
call dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x30], esi
call sub.snmpapi.dll_SnmpUtilOidCpy
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x60]
push ecx
call sub.snmpapi.dll_SnmpUtilOidCpy
xor esi, esi
cmp dword [esp + 0x50], esi
jle 0x4092eb
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0xa1
call dword [esp + 0x20]
test eax, eax
je 0x4092ae
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x4c]
push ecx
call sub.snmpapi.dll_SnmpUtilOidNCmp
test eax, eax
jne 0x4092ae
cmp dword [esp + 0x50], ebx
jne 0x4092ae
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x64]
push ecx
call sub.snmpapi.dll_SnmpUtilOidNCmp
test eax, eax
jne 0x4092ae
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4092ae
mov cl, byte [eax]
cmp cl, 0x44
jne 0x409291
cmp byte [eax + 1], 0x45
jne 0x409291
cmp byte [eax + 2], 0x53
jne 0x409291
cmp byte [eax + 3], 0x54
jne 0x409291
cmp byte [eax + 4], 0
je 0x4092ae
test cl, cl
jne 0x4092bc
cmp byte [eax + 1], cl
jne 0x4092bc
cmp byte [eax + 2], cl
jne 0x4092bc
cmp byte [eax + 3], cl
jne 0x4092bc
cmp byte [eax + 4], cl
jne 0x4092bc
cmp byte [eax + 5], cl
jne 0x4092bc
add esi, edi
cmp esi, dword [esp + 0x50]
jl 0x409214
jmp 0x4092eb
movzx edx, byte [eax + 5]
movzx ecx, byte [eax + 4]
push edx
movzx edx, byte [eax + 3]
push ecx
movzx ecx, byte [eax + 2]
push edx
movzx edx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push str._02X__02X__02X__02X__02X__02X
push ecx
call fcn.00402ef0
add esp, 0x20
lea edx, [esp + 0x44]
push edx
call sub.snmpapi.dll_SnmpUtilVarBindFree
lea eax, [esp + 0x5c]
push eax
call sub.snmpapi.dll_SnmpUtilVarBindFree
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042e0b9
mov esp, ebp
pop ebp
ret 4