Function at 0x505610
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x61f343
mov eax, dword fs:[0]
push eax
mov eax, 0x31d8
call fcn.005f9c40
mov eax, dword [0x682d00]
xor eax, esp
mov dword [esp + 0x31d4], eax
push esi
push edi
mov eax, dword [0x682d00]
xor eax, esp
push eax
lea eax, [esp + 0x31e4]
mov dword fs:[0], eax
mov edi, dword [esp + 0x31f4]
mov esi, dword [esp + 0x31f8]
mov dword [esp + 0xc], 0
mov ecx, dword [0x683998]
mov dword [esp + 0x40], edi
test ecx, ecx
je 0x5056b3
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x5056b3
mov eax, esi
test esi, esi
jne 0x505688
mov eax, str._null_
push eax
lea eax, [esp + 0x34]
push str._ENTERING__PzGetKindOfHost_pHostName_s_
push eax
mov dword [esp + 0x3c], str..._xutil.cpp
mov dword [esp + 0x40], 0x2a9
mov dword [esp + 0x44], 0x14
call fcn.0050bb00
add esp, 0xc
push 0x2000
lea ecx, [esp + 0x1e0]
push 0
push ecx
mov dword [esp + 0x1e0], 0xffffffff
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp + 0x44]
push edx
push 0x101
call sub.WSOCK32.dll_WSAStartup
push 0
push esi
lea ecx, [esp + 0x18]
call fcn.00501c20
lea eax, [esp + 0x10]
mov esi, 1
push eax
mov dword [esp + 0x31f0], esi
call fcn.00509580
add esp, 4
push 0
call fcn.00505530
push eax
lea ecx, [esp + 0x18]
call fcn.005018c0
push eax
lea ecx, [esp + 0x1e0]
call fcn.00512660
test al, al
je 0x505833
push str.authentication_type
lea ecx, [esp + 0x1d8]
call fcn.00511d20
push 0
push 0x258
push 0
lea ecx, [esp + 0x1e0]
call fcn.00511dd0
push eax
lea ecx, [esp + 0x38]
call fcn.00501c20
push 0
push 0x632bac
lea ecx, [esp + 0x38]
mov byte [esp + 0x31f4], 2
call fcn.005018c0
push eax
call dword [sym.imp.MSVCR90.dll_strtok]
add esp, 8
push eax
lea ecx, [esp + 0x20]
call fcn.00501c20
lea ecx, [esp + 0x1d4]
mov byte [esp + 0x31ec], 3
call fcn.005125c0
mov ecx, dword [0x683998]
test ecx, ecx
je 0x5057fd
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x5057fd
lea ecx, [esp + 0x18]
call fcn.005018c0
test eax, eax
je 0x5057cd
lea ecx, [esp + 0x18]
call fcn.005018c0
jmp 0x5057d2
mov eax, str._null_
push eax
lea ecx, [esp + 0x24]
push str._EXITING__PzGetKindOfHost__:__s
push ecx
mov dword [esp + 0x2c], str..._xutil.cpp
mov dword [esp + 0x30], 0x2b8
mov dword [esp + 0x34], 0x28
call fcn.0050bb00
add esp, 0xc
push 0
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.00501bf0
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], esi
mov byte [esp + 0x31ec], 2
call fcn.005019a0
lea ecx, [esp + 0x30]
mov byte [esp + 0x31ec], 1
call fcn.005019a0
jmp 0x505882
mov ecx, dword [0x683998]
test ecx, ecx
je 0x505873
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x28
jl 0x505873
lea eax, [esp + 0x20]
push str._EXITING__PzGetKindOfHost__:_NULL
push eax
mov dword [esp + 0x28], str..._xutil.cpp
mov dword [esp + 0x2c], 0x2bc
mov dword [esp + 0x30], 0x28
call fcn.0050bb00
add esp, 8
push 0
push 0
mov ecx, edi
call fcn.00501c20
mov dword [esp + 0xc], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x31ec], 0
call fcn.005019a0
mov eax, edi
mov ecx, dword [esp + 0x31e4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x31d4]
xor ecx, esp
call fcn.005f9aee
add esp, 0x31e4
ret