Function at 0x140058890
Capabilities:
Initialize winsock library
Link many functions at runtime

Disassembly:
push rbp
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x1400a45f8]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
xor eax, eax
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x58], eax
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x5c], rax
mov ecx, 2
lea rax, [rbp + 0x1a0]
mov dword [rbp + 0x1a0], 1
mov qword [rsp + 0x3c], rax
lea rax, [rbp + 0x180]
mov qword [rsp + 0x74], rax
lea rax, [rbp + 0x1c8]
mov qword [rsp + 0x4c], rax
mov dword [rbp + 0x1a4], 3
mov dword [rbp + 0x1a8], 6
mov dword [rbp + 0x1ac], 1
mov dword [rbp + 0x1b0], 2
mov dword [rbp + 0x1b4], 1
mov dword [rbp + 0x1b8], 2
mov dword [rbp + 0x1bc], 2
mov dword [rbp + 0x1c0], 1
mov dword [rbp + 0x1c4], 3
mov dword [rbp + 0x180], 1
mov dword [rbp + 0x184], 3
mov dword [rbp + 0x188], 6
mov dword [rbp + 0x18c], 1
mov dword [rbp + 0x190], 2
mov dword [rbp + 0x194], 1
mov dword [rbp + 0x198], 2
mov dword [rbp + 0x19c], 1
mov dword [rbp + 0x1c8], 1
mov dword [rbp + 0x1cc], 3
mov dword [rbp + 0x1d0], 6
mov dword [rbp + 0x1d4], 1
mov dword [rbp + 0x1d8], 2
mov dword [rbp + 0x1dc], 1
mov dword [rbp + 0x1e0], 2
mov dword [rbp + 0x1e4], 2
mov dword [rbp + 0x1e8], 1
mov dword [rbp + 0x1ec], 6
mov dword [rsp + 0x38], 0xa
mov dword [rsp + 0x70], 8
mov dword [rsp + 0x48], 0xa
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x140058a30
or eax, 0xffffffff
jmp 0x140058ccf
lea rcx, str.inetmib1.dll
mov qword [rsp + 0x348], rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
cmp rax, 0x20
jae 0x140058a56
or eax, 0xffffffff
jmp 0x140058cc7
mov qword [rsp + 0x318], r12
lea rdx, str.SnmpExtensionInit
mov qword [rsp + 0x310], r13
mov rcx, rdi
mov qword [rsp + 0x308], r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SnmpExtensionInitEx
mov rcx, rdi
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SnmpExtensionQuery
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SnmpExtensionTrap
mov rcx, rdi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.snmpapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r12, rax
cmp rax, 0x20
jae 0x140058adb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
or eax, 0xffffffff
jmp 0x140058caf
mov qword [rsp + 0x338], rbx
lea rdx, str.SnmpUtilOidCpy
mov qword [rsp + 0x340], rsi
mov rcx, r12
mov qword [rsp + 0x300], r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SnmpUtilOidNCmp
mov rcx, r12
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SnmpUtilVarBindFree
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x40]
call r13
mov ecx, dword [rsp + 0x60]
lea rax, [rbp - 0x80]
movsd xmm0, qword [rsp + 0x58]
lea rdx, [rsp + 0x70]
mov dword [rbp - 0x78], ecx
mov dword [rbp - 0x58], ecx
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x28], rax
movsd qword [rbp - 0x80], xmm0
movsd qword [rbp - 0x60], xmm0
mov dword [rsp + 0x30], 1
call rbx
lea r9, [rsp + 0x20]
mov cl, 0xa1
lea r8, [rsp + 0x24]
lea rdx, [rsp + 0x28]
call r14
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x30], 2
lea rcx, [rbp - 0x80]
call rbx
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x60]
call rbx
mov rbx, qword [rsp + 0x338]
nop
lea r9, [rsp + 0x20]
mov cl, 0xa1
lea r8, [rsp + 0x24]
lea rdx, [rsp + 0x28]
call r14
test eax, eax
je 0x140058c7c
mov r8d, dword [rsp + 0x38]
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x80]
call rsi
test eax, eax
jne 0x140058c7c
cmp dword [rbp - 0x70], 6
jne 0x140058bb0
mov r8d, dword [rsp + 0x48]
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x60]
call rsi
test eax, eax
jne 0x140058c7c
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140058bb0
movzx eax, byte [rcx]
cmp al, 0x44
jne 0x140058c26
cmp byte [rcx + 1], 0x45
jne 0x140058c26
cmp byte [rcx + 2], 0x53
jne 0x140058c26
cmp byte [rcx + 3], 0x54
jne 0x140058c26
cmp byte [rcx + 4], 0
je 0x140058bb0
test al, al
jne 0x140058c47
cmp byte [rcx + 1], al
jne 0x140058c47
cmp byte [rcx + 2], al
jne 0x140058c47
cmp byte [rcx + 3], al
jne 0x140058c47
cmp byte [rcx + 4], al
jne 0x140058c47
cmp byte [rcx + 5], al
je 0x140058bb0
mov eax, dword [rcx]
mov rdx, qword [rsp + 0x68]
mov dword [rdx], eax
movzx eax, word [rcx + 4]
lea rcx, [rbp - 0x80]
mov word [rdx + 4], ax
call r15
lea rcx, [rbp - 0x60]
call r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x140058c9f
lea rcx, [rbp - 0x80]
call r15
lea rcx, [rbp - 0x60]
call r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
or eax, 0xffffffff
mov rsi, qword [rsp + 0x340]
mov r15, qword [rsp + 0x300]
mov r12, qword [rsp + 0x318]
mov r13, qword [rsp + 0x310]
mov r14, qword [rsp + 0x308]
mov rdi, qword [rsp + 0x348]
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140077b10
add rsp, 0x320
pop rbp
ret