Function at 0x502b60
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x61b463
mov eax, dword fs:[0]
push eax
mov eax, 0x31d8
call fcn.005f62d0
mov eax, dword [0x67dc50]
xor eax, esp
mov dword [esp + 0x31d4], eax
push esi
push edi
mov eax, dword [0x67dc50]
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 [0x67e8e0]
mov dword [esp + 0x40], edi
test ecx, ecx
je 0x502c03
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x502c03
mov eax, esi
test esi, esi
jne 0x502bd8
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.005090f0
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.004ff1d0
lea eax, [esp + 0x10]
mov esi, 1
push eax
mov dword [esp + 0x31f0], esi
call fcn.00506bf0
add esp, 4
push 0
call fcn.00502a80
push eax
lea ecx, [esp + 0x18]
call fcn.004fee70
push eax
lea ecx, [esp + 0x1e0]
call fcn.0050fc50
test al, al
je 0x502d83
push str.authentication_type
lea ecx, [esp + 0x1d8]
call fcn.0050f310
push 0
push 0x258
push 0
lea ecx, [esp + 0x1e0]
call fcn.0050f3c0
push eax
lea ecx, [esp + 0x38]
call fcn.004ff1d0
push 0
push 0x62e858
lea ecx, [esp + 0x38]
mov byte [esp + 0x31f4], 2
call fcn.004fee70
push eax
call dword [sym.imp.MSVCR90.dll_strtok]
add esp, 8
push eax
lea ecx, [esp + 0x20]
call fcn.004ff1d0
lea ecx, [esp + 0x1d4]
mov byte [esp + 0x31ec], 3
call fcn.0050fbb0
mov ecx, dword [0x67e8e0]
test ecx, ecx
je 0x502d4d
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x502d4d
lea ecx, [esp + 0x18]
call fcn.004fee70
test eax, eax
je 0x502d1d
lea ecx, [esp + 0x18]
call fcn.004fee70
jmp 0x502d22
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.005090f0
add esp, 0xc
push 0
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.004ff1a0
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], esi
mov byte [esp + 0x31ec], 2
call fcn.004fef50
lea ecx, [esp + 0x30]
mov byte [esp + 0x31ec], 1
call fcn.004fef50
jmp 0x502dd2
mov ecx, dword [0x67e8e0]
test ecx, ecx
je 0x502dc3
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x28
jl 0x502dc3
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.005090f0
add esp, 8
push 0
push 0
mov ecx, edi
call fcn.004ff1d0
mov dword [esp + 0xc], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x31ec], 0
call fcn.004fef50
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.005f617e
add esp, 0x31e4
ret