Function at 0x414b10
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1dc
mov eax, dword [0x5c6150]
xor eax, esp
mov dword [esp + 0x1d8], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0
mov dword [esp + 0x18], ebx
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x30
mov dword [ebx], eax
xorps xmm0, xmm0
lea eax, [esp + 0x24]
movq qword [esp + 0x18], xmm0
push 0
push eax
call fcn.004d9fe0
add esp, 0xc
lea eax, [esp + 0x50]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x414ba3
mov eax, dword [0x5d1f08]
test eax, eax
jne 0x414bbd
push str.inetmib1.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x5d1f08], eax
cmp eax, 0x20
jae 0x414bbd
mov dword [0x5d1f08], 0
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d8]
xor ecx, esp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
cmp dword [0x5d1ee8], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x414bdd
push str.SnmpExtensionInit
push eax
call esi
mov dword [0x5d1ee8], eax
test eax, eax
je 0x414ba3
push 0x5de144
push 0x5de01c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [0x5d1ee8]
cmp dword [0x5d1f04], 0
jne 0x414c13
push str.SnmpExtensionInitEx
push dword [0x5d1f08]
call esi
mov dword [0x5d1f04], eax
test eax, eax
je 0x414ba3
cmp dword [0x5d1eec], 0
jne 0x414c36
push str.SnmpExtensionQuery
push dword [0x5d1f08]
call esi
mov dword [0x5d1eec], eax
test eax, eax
je 0x414ba3
cmp dword [0x5d1f00], 0
jne 0x414c59
push str.SnmpExtensionTrap
push dword [0x5d1f08]
call esi
mov dword [0x5d1f00], eax
test eax, eax
je 0x414ba3
mov ecx, dword [0x5d1ef8]
lea eax, [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [0x5d1efc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], eax
mov eax, dword [0x5c6af0]
shl eax, 2
push eax
push 0x40
mov dword [esp + 0x28], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x414ca9
push 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x414cca
mov eax, dword [0x5c6af0]
shl eax, 2
push eax
push dword [0x5c6af4]
push ecx
call fcn.004d8ee0
mov eax, dword [0x5c6af0]
add esp, 0xc
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
push 0xa1
call dword [0x5d1eec]
test eax, eax
je 0x414e06
cmp dword [esp + 0xc], 0
jne 0x414e06
mov ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x20]
mov edx, 0x5c6b68
mov dword [esp + 0x18], 2
call fcn.00414a10
mov edx, 0x5c6b70
lea ecx, [esp + 0x38]
call fcn.00414a10
xor esi, esi
test ebx, ebx
jle 0x414dfb
nop dword [eax]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
push 0xa1
call dword [0x5d1eec]
test eax, eax
je 0x414df2
cmp dword [esp + 0xc], 0
jne 0x414df2
push dword [0x5c6b68]
mov edx, 0x5c6b68
lea ecx, [esp + 0x24]
call fcn.00414a60
test eax, eax
jne 0x414df2
cmp dword [esp + 0x2c], 6
jne 0x414df2
push dword [0x5c6b70]
mov edx, 0x5c6b70
lea ecx, [esp + 0x3c]
call fcn.00414a60
test eax, eax
jne 0x414df2
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x414df2
mov eax, dword [ecx]
mov edx, 0x5d1ef0
cmp eax, dword [edx]
jne 0x414db1
movzx eax, word [ecx + 4]
cmp ax, word [edx + 4]
je 0x414df2
mov eax, dword [edi]
inc eax
lea eax, [eax + eax*2]
add eax, eax
push eax
mov eax, dword [esp + 0x14]
push dword [eax]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x414dfb
mov ecx, dword [esp + 0x10]
push 6
push dword [esp + 0x48]
mov dword [ecx], eax
mov ecx, dword [edi]
lea ecx, [ecx + ecx*2]
lea eax, [eax + ecx*2]
push eax
call fcn.004d8ee0
add esp, 0xc
inc dword [edi]
inc esi
cmp esi, ebx
jl 0x414d30
mov esi, dword [edi]
neg esi
sbb esi, esi
neg esi
dec esi
jmp 0x414e0b
mov esi, 0xfffffffe
lea ecx, [esp + 0x20]
call fcn.00414ab0
lea ecx, [esp + 0x38]
call fcn.00414ab0
mov ecx, dword [esp + 0x1e4]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret