Function at 0x506370
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x621253
mov eax, dword fs:[0]
push eax
mov eax, 0x31d8
call fcn.005fbb20
mov eax, dword [0x685e38]
xor eax, esp
mov dword [esp + 0x31d4], eax
push esi
push edi
mov eax, dword [0x685e38]
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 [0x686ac0]
mov dword [esp + 0x40], edi
test ecx, ecx
je 0x506413
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x506413
mov eax, esi
test esi, esi
jne 0x5063e8
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], 0x358
mov dword [esp + 0x44], 0x14
call fcn.0050c8a0
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.005029e0
lea eax, [esp + 0x10]
mov esi, 1
push eax
mov dword [esp + 0x31f0], esi
call fcn.0050a330
add esp, 4
push 0
call fcn.00506290
push eax
lea ecx, [esp + 0x18]
call fcn.00502680
push eax
lea ecx, [esp + 0x1e0]
call fcn.00513810
test al, al
je 0x506593
push str.authentication_type
lea ecx, [esp + 0x1d8]
call fcn.00512ed0
push 0
push 0x258
push 0
lea ecx, [esp + 0x1e0]
call fcn.00512f80
push eax
lea ecx, [esp + 0x38]
call fcn.005029e0
push 0
push 0x634bb4
lea ecx, [esp + 0x38]
mov byte [esp + 0x31f4], 2
call fcn.00502680
push eax
call dword [sym.imp.MSVCR90.dll_strtok]
add esp, 8
push eax
lea ecx, [esp + 0x20]
call fcn.005029e0
lea ecx, [esp + 0x1d4]
mov byte [esp + 0x31ec], 3
call fcn.00513770
mov ecx, dword [0x686ac0]
test ecx, ecx
je 0x50655d
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x50655d
lea ecx, [esp + 0x18]
call fcn.00502680
test eax, eax
je 0x50652d
lea ecx, [esp + 0x18]
call fcn.00502680
jmp 0x506532
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], 0x367
mov dword [esp + 0x34], 0x28
call fcn.0050c8a0
add esp, 0xc
push 0
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.005029b0
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], esi
mov byte [esp + 0x31ec], 2
call fcn.00502760
lea ecx, [esp + 0x30]
mov byte [esp + 0x31ec], 1
call fcn.00502760
jmp 0x5065e2
mov ecx, dword [0x686ac0]
test ecx, ecx
je 0x5065d3
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x28
jl 0x5065d3
lea eax, [esp + 0x20]
push str._EXITING__PzGetKindOfHost__:_NULL
push eax
mov dword [esp + 0x28], str..._xutil.cpp
mov dword [esp + 0x2c], 0x36b
mov dword [esp + 0x30], 0x28
call fcn.0050c8a0
add esp, 8
push 0
push 0
mov ecx, edi
call fcn.005029e0
mov dword [esp + 0xc], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x31ec], 0
call fcn.00502760
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.005fb9ce
add esp, 0x31e4
ret