Function at 0x411600
Capabilities:
Connect socket
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x2f0
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
mov edi, 0x484760
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x300]
xor ebx, ebx
cmp eax, ebx
mov byte [esp + 0x18], 0x7f
mov byte [esp + 0x14], bl
mov byte [esp + 0x10], bl
mov byte [esp + 0xc], 1
mov byte [0x484762], 1
je 0x41169d
mov edx, dword [0x471dcc]
cmp edx, 0xffffffff
je 0x411908
push ebx
mov ecx, 0x40
xor eax, eax
mov edi, 0x484760
push 0x100
push 0x484760
rep stosd dword es:[edi], eax
push edx
mov byte [0x484762], 0xf
call fcn.00411920
mov eax, dword [0x471dcc]
add esp, 0x10
push 2
push eax
call sub.WS2_32.dll_shutdown
mov ecx, dword [0x471dcc]
push ecx
call sub.WS2_32.dll_closesocket
mov dword [0x471dcc], 0xffffffff
jmp 0x411908
mov eax, dword [0x471dcc]
cmp eax, 0xffffffff
jne 0x41189a
push ebx
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 8
lea edx, [esp + 0x16c]
push edx
push 0x102
call sub.WSOCK32.dll_WSAStartup
lea eax, [esp + 0x2c]
push 0x40
push eax
call sub.WSOCK32.dll_gethostname
lea ecx, [esp + 0x2c]
push ecx
call sub.WSOCK32.dll_gethostbyname
cmp eax, ebx
je 0x411717
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
mov dl, byte [ecx]
mov byte [esp + 0x18], dl
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov cl, byte [edx + 1]
mov byte [esp + 0x14], cl
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
mov dl, byte [ecx + 2]
mov byte [esp + 0x10], dl
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov dl, byte [ecx + 3]
mov byte [esp + 0xc], dl
lea eax, [esp + 0x6c]
push 0x100
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x6c]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, dword [str.LicSvrIP.ini]
push 0x46ec64
mov dword [eax], edx
mov ecx, dword [0x471de0]
mov dword [eax + 4], ecx
mov edx, dword [0x471de4]
mov dword [eax + 8], edx
mov cx, word [0x471de8]
lea edx, [esp + 0x78]
push edx
mov word [eax + 0xc], cx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x4117b7
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
push 0x471dd0
push esi
call dword [sym.imp.MSVCRT.dll_fscanf]
add esp, 0x18
cmp eax, 4
je 0x4117ad
mov byte [esp + 0x18], 0x7f
mov byte [esp + 0x14], bl
mov byte [esp + 0x10], bl
mov byte [esp + 0xc], 1
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
and ecx, 0xff
push ecx
mov ecx, dword [esp + 0x1c]
and edx, 0xff
and eax, 0xff
push edx
and ecx, 0xff
push eax
push ecx
lea edx, [esp + 0x3c]
push 0x471dd0
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
mov word [esp + 0x1c], 2
push 0x2465
call sub.WSOCK32.dll_htons
mov cl, byte [esp + 0x14]
mov dl, byte [esp + 0x10]
mov word [esp + 0x1e], ax
mov al, byte [esp + 0x18]
sub esp, 0x10
mov byte [esp + 0x31], cl
mov byte [esp + 0x30], al
mov al, byte [esp + 0x1c]
mov byte [esp + 0x32], dl
mov edx, dword [esp + 0x2c]
mov ecx, esp
mov byte [esp + 0x33], al
mov eax, dword [esp + 0x30]
mov dword [ecx], edx
mov edx, dword [esp + 0x34]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.00411ad0
add esp, 0x10
test eax, eax
je 0x411890
push ebx
push 1
push 2
call sub.WSOCK32.dll_socket
lea ecx, [esp + 0x1c]
push 0x10
push ecx
push eax
mov dword [0x471dcc], eax
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x411890
mov edx, dword [0x471dcc]
push edx
call sub.WS2_32.dll_closesocket
mov dword [0x471dcc], 0xffffffff
jmp 0x411908
mov eax, dword [0x471dcc]
cmp eax, 0xffffffff
je 0x411908
push ebx
push 0x100
push 0x484760
push eax
call fcn.00411920
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4118bd
push 1
call fcn.00411600
add esp, 4
mov eax, dword [0x471dcc]
push 0x1388
push eax
call fcn.00411a70
add esp, 8
cmp eax, 0xffffffff
jne 0x4118df
push 1
call fcn.00411600
add esp, 4
mov ecx, dword [0x471dcc]
push ebx
push 0x100
push 0x484760
push ecx
call fcn.00411a10
add esp, 0x10
cmp eax, 0xffffffff
jne 0x411908
push 1
call fcn.00411600
add esp, 4
mov al, byte [0x484763]
pop edi
neg al
sbb eax, eax
pop esi
and eax, 0x484763
pop ebx
add esp, 0x2f0
ret