Function at 0x4fbc60
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3094
call fcn.00531970
mov eax, dword [0x5d72e0]
xor eax, esp
mov dword [esp + 0x3090], eax
push ebx
mov ebx, dword [ebp + 0x5c0]
push esi
push edi
push 1
mov ecx, 0x16e
lea esi, [ebp + 8]
lea edi, [esp + 0x274c]
push 0x1388
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x18], 0
call dword [sym.imp.libonvifclient.dll_Ordinal_5_6]
mov eax, dword [esp + 0x291c]
cmp eax, 3
jne 0x4fbd33
mov esi, dword [sym.imp.libonvifclient.dll_Ordinal_7_4]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x2928]
push 0
mov edi, 2
push edi
push edi
lea ecx, [esp + 0x289c]
push ecx
lea edx, [esp + 0x2860]
push edx
push eax
lea ecx, [esp + 0x27e8]
push ecx
mov dword [esp + 0x2c98], edi
call esi
cmp dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
jne 0x4fbf1c
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x2928]
push 0
push edi
push 0
lea eax, [esp + 0x289c]
push eax
lea ecx, [esp + 0x2860]
push ecx
push edx
lea eax, [esp + 0x27e8]
push eax
jmp 0x4fbf16
test eax, eax
jne 0x4fbd96
lea ecx, [esp + 0x2ec8]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea edx, [esp + 0x27cc]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4fbd73
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3090]
xor ecx, esp
call fcn.0053042b
mov esp, ebp
pop ebp
ret 0x5bc
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea edx, [esp + 0x27cc]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x4fbd88
mov esi, dword [sym.imp.libonvifclient.dll_Ordinal_7_4]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x2928]
push 0
push 2
push 0
lea eax, [esp + 0x289c]
push eax
lea ecx, [esp + 0x2860]
push ecx
push edx
lea eax, [esp + 0x27e8]
push eax
call esi
test eax, eax
mov dword [esp + 0x14], eax
jg 0x4fbe33
cmp dword [esp + 0x2918], 1
jne 0x4fbe33
mov eax, dword [esp + 0x10]
cmp eax, 0xffffd3d9
je 0x4fbe37
cmp eax, 0xffffd3d8
je 0x4fbe37
cmp eax, 0xffffd3dc
je 0x4fbe37
cmp eax, 0xffffd3db
je 0x4fbe37
cmp eax, 0xffffd3da
je 0x4fbe37
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x2928]
push 0
push 2
push 0
lea edx, [esp + 0x289c]
push edx
lea eax, [esp + 0x2860]
push eax
push ecx
lea edx, [esp + 0x2828]
push edx
call esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x4fbf1c
push 0x40
lea eax, [esp + 0x305c]
push 0
push eax
call fcn.00530d30
movzx eax, byte [esp + 0x285a]
movzx ecx, byte [esp + 0x2858]
movzx edx, byte [esp + 0x2859]
add cl, 3
add al, 3
mov byte [esp + 0x3064], cl
movzx ecx, byte [esp + 0x285b]
add dl, 3
mov byte [esp + 0x3066], al
movzx eax, byte [esp + 0x285d]
mov byte [esp + 0x3065], dl
movzx edx, byte [esp + 0x285c]
add esp, 0xc
add cl, 3
add al, 3
mov byte [esp + 0x305b], cl
movzx ecx, byte [esp + 0x2852]
add dl, 3
mov byte [esp + 0x305d], al
lea eax, [esp + 0x10]
push eax
movzx eax, word [esp + 0x2928]
push 0
mov byte [esp + 0x3064], dl
movzx edx, byte [esp + 0x285b]
add cl, 3
push 2
push 0
mov byte [esp + 0x306e], cl
add dl, 3
lea ecx, [esp + 0x289c]
push ecx
mov byte [esp + 0x3073], dl
lea edx, [esp + 0x306c]
push edx
push eax
lea ecx, [esp + 0x27e8]
mov byte [esp + 0x307c], 0
push ecx
call esi
mov dword [esp + 0x14], eax
push 0x1c8
lea edx, [esp + 0x2d04]
push 0
push edx
call fcn.00530d30
mov edx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x1c8
lea ecx, [esp + 0x2d08]
push ecx
push 0xffffffffffffffff
push 0
push edx
call dword [sym.imp.libonvifclient.dll_Ordinal_15_2]
lea edi, [ebx + 0x2d8]
mov ecx, 0xf
lea esi, [esp + 0x2d00]
rep movsd dword es:[edi], dword [esi]
push 0xa0
movsw word es:[edi], word [esi]
lea eax, [esp + 0x24]
push 0
push eax
movsb byte es:[edi], byte [esi]
mov byte [ebx + 0x317], 0
call fcn.00530d30
mov esi, dword [esp + 0x20]
mov edi, dword [sym.imp.libonvifclient.dll_Ordinal_12_3]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x28]
push edx
push 0xffffffffffffffff
push 0
push esi
call edi
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x24]
mov dword [ebx + 0x320], eax
mov eax, dword [esp + 0x2e04]
mov dword [ebx + 0x324], ecx
xor ecx, ecx
cmp eax, ecx
mov dword [ebx + 0x31c], edx
je 0x4fc0a3
cmp eax, 2
je 0x4fc0a3
cmp eax, 3
jne 0x4fc0b3
lea eax, [esp + 0x18]
push eax
push 4
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x24]
push ecx
push 0xffffffffffffffff
push 0x2e
push esi
call dword [sym.imp.libonvifclient.dll_Ordinal_13_2]
push 0xa0
lea edx, [esp + 0xc4]
push 0
push edx
call fcn.00530d30
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x2684
lea ecx, [esp + 0xc8]
push ecx
push 0xffffffffffffffff
push 0xb
push esi
call edi
mov eax, dword [esp + 0x1c]
imul eax, eax, 0x130
lea esi, [esp + eax + 0x15c]
mov ecx, 0x26
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
add edx, ecx
add edx, dword [esp + 0x30]
lea esi, [esp + eax + 0xc4]
add edx, dword [esp + 0x24]
mov ecx, 0x26
add edx, dword [esp + 0x28]
lea edi, [esp + 0x20]
add edx, dword [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
mov dword [ebx + 0x318], edx
mov edx, dword [esp + 0x20]
add eax, edx
add eax, dword [esp + 0x30]
add eax, dword [esp + 0x24]
add eax, dword [esp + 0x28]
add eax, dword [esp + 0x2c]
mov dword [ebx + 0x33c], eax
jmp 0x4fc0b3
mov dword [ebx + 0x33c], ecx
mov dword [ebx + 0x318], 1
mov eax, dword [ebx + 0x33c]
add eax, dword [ebx + 0x318]
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x1c4], eax
pop edi
mov dword [ebx + 0x1cc], ecx
mov ecx, dword [esp + 0x3098]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0053042b
mov esp, ebp
pop ebp
ret 0x5bc