Function at 0x40d540
Capabilities:
Initialize winsock library

Disassembly:
push ebp
lea ebp, [esp - 0x1fc]
sub esp, 0x27c
mov eax, dword [0x5fd0b0]
xor eax, ebp
mov dword [ebp + 0x1f8], eax
mov eax, dword [ebp + 0x204]
push edi
mov dword [ebp + 0x38], eax
lea eax, [ebp + 0x68]
push eax
push 2
pop edi
push edi
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x40d5a4
push str.This_program_requires_Winsock_2.x__n
call fcn.0047681a
add eax, 0x40
push eax
call fcn.00476674
pop ecx
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp + 0x1f8]
xor ecx, ebp
pop edi
call fcn.0047209e
add ebp, 0x1fc
leave
ret
or dword [ebp + 0x60], 0xffffffff
push ebx
push esi
push 3
pop eax
push 6
pop ebx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x48], eax
push 0xa
pop eax
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x44], eax
lea eax, [ebp - 0x74]
xor esi, esi
inc esi
mov dword [ebp + 0x48], eax
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x24]
push str.inetmib1.dll
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp + 0x50], ecx
mov dword [ebp + 0x2c], 8
mov dword [ebp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp + 0x64], eax
cmp eax, 0x20
jae 0x40d64d
or esi, 0xffffffff
call sub.WSOCK32.dll_WSACleanup
mov eax, esi
pop esi
pop ebx
jmp 0x40d58e
push str.SnmpExtensionInit
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SnmpExtensionQuery
push dword [ebp + 0x64]
mov dword [ebp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 0x5c], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [ebp + 0x40]
lea eax, [ebp - 4]
mov dword [ebp + 0x54], eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x2c]
push eax
xor ecx, ecx
lea eax, [ebp - 4]
push eax
mov dword [ebp], ecx
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x58], esi
call sub.snmpapi.dll_SnmpUtilOidCpy
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp + 0x54]
push eax
mov esi, 0xa1
push esi
call dword [ebp + 0x5c]
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp - 4]
push eax
mov dword [ebp + 0x58], edi
call sub.snmpapi.dll_SnmpUtilOidCpy
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x14]
push eax
call sub.snmpapi.dll_SnmpUtilOidCpy
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp + 0x54]
push eax
push esi
call dword [ebp + 0x5c]
test eax, eax
je 0x40d79d
push dword [ebp + 0x44]
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp - 4]
push eax
call sub.snmpapi.dll_SnmpUtilOidNCmp
test eax, eax
jne 0x40d79d
cmp dword [ebp + 8], ebx
jne 0x40d6d7
push dword [ebp + 0x4c]
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x14]
push eax
call sub.snmpapi.dll_SnmpUtilOidNCmp
test eax, eax
jne 0x40d79d
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x40d6d7
mov cl, byte [eax]
cmp cl, 0x44
jne 0x40d746
cmp byte [eax + 1], 0x45
jne 0x40d746
cmp byte [eax + 2], 0x53
jne 0x40d746
cmp byte [eax + 3], 0x54
jne 0x40d746
cmp byte [eax + 4], 0
je 0x40d6d7
test cl, cl
jne 0x40d767
cmp byte [eax + 1], cl
jne 0x40d767
cmp byte [eax + 2], cl
jne 0x40d767
cmp byte [eax + 3], cl
jne 0x40d767
cmp byte [eax + 4], cl
jne 0x40d767
cmp byte [eax + 5], cl
je 0x40d6d7
movzx edx, byte [eax + 5]
push edx
movzx edx, byte [eax + 4]
push edx
movzx edx, byte [eax + 3]
push edx
movzx edx, byte [eax + 2]
movzx eax, byte [eax + 1]
push edx
push eax
movzx eax, cl
push eax
push 0x5cb640
push dword [ebp + 0x38]
call fcn.00471bce
add esp, 0x20
and dword [ebp + 0x60], 0
jmp 0x40d6d7
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 4]
push eax
call sub.snmpapi.dll_SnmpUtilVarBindFree
lea eax, [ebp + 0x14]
push eax
call sub.snmpapi.dll_SnmpUtilVarBindFree
mov esi, dword [ebp + 0x60]
jmp 0x40d63f