Function at 0x40bab0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x4466b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [0x43a09c]
push esi
push edi
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x438], ecx
xor edi, edi
push edi
lea edx, [ebp - 0x14]
push str.mhxy_d
push edx
call fcn.004179f6
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0
push 0
call ebx
mov esi, eax
test esi, esi
je 0x40bb1d
call dword [0x43a048]
cmp eax, 0xb7
jne 0x40bb3c
push esi
call dword [0x43a044]
push esi
call dword [0x43a098]
inc edi
cmp edi, 6
jl 0x40bae0
push 0
push 0x43b628
push 0x43b600
push 0
call dword [0x43a200]
jmp 0x40be0d
push edi
call fcn.0040b850
push 0x1000
xor ebx, ebx
push ebx
push 0x447828
call fcn.00416060
add esp, 0x10
push 0x447828
push 0x1000
call dword [0x43a074]
mov eax, 0x447828
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bb70
sub eax, edx
cmp eax, 1
jl 0x40bb8e
mov cl, 0x5c
cmp byte [eax + 0x447827], cl
je 0x40bb8e
mov byte [eax + 0x447828], cl
lea ecx, [ebp - 0x430]
push ecx
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
jne 0x40be0f
push 0x447828
call fcn.0040ac50
add esp, 4
push 1
mov esi, 0xf
push 0x43afc0
lea ecx, [ebp - 0x268]
mov dword [0x447820], eax
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x258], ebx
mov byte [ebp - 0x268], bl
call fcn.004049f0
push 0xa
push str.SubVersion
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 0x24c], bl
call fcn.004049f0
push 0xa
push str.update.ini
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x220], ebx
mov byte [ebp - 0x230], bl
call fcn.004049f0
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x284]
push edx
call fcn.00406100
mov edi, 0x10
add esp, 0x10
cmp dword [ebp - 0x21c], edi
jb 0x40bc68
mov eax, dword [ebp - 0x230]
push eax
call fcn.004158bc
add esp, 4
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x220], ebx
mov byte [ebp - 0x230], bl
cmp dword [ebp - 0x238], edi
jb 0x40bc91
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.004158bc
add esp, 4
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 0x24c], bl
cmp dword [ebp - 0x254], edi
jb 0x40bcba
mov edx, dword [ebp - 0x268]
push edx
call fcn.004158bc
add esp, 4
mov esi, dword [ebp - 0x274]
mov eax, esi
cmp esi, 1
jb 0x40bccc
mov eax, 1
mov ecx, dword [ebp - 0x284]
cmp dword [ebp - 0x270], edi
jae 0x40bce0
lea ecx, [ebp - 0x284]
push eax
push 0x43afc0
push ecx
call fcn.00401070
add esp, 0xc
cmp eax, ebx
jne 0x40bd2a
cmp esi, 1
jb 0x40bd2a
xor eax, eax
cmp esi, 1
setne al
cmp eax, ebx
jne 0x40bd2a
test byte [0x447820], 1
je 0x40bd17
push 1
call fcn.004098d0
add esp, 4
test byte [0x447820], 2
je 0x40bd2a
push 2
call fcn.004098d0
add esp, 4
mov esi, dword [ebp - 0x438]
cmp byte [esi], bl
jne 0x40bd43
mov eax, dword [ebp - 0x43c]
push eax
call fcn.0040a350
add esp, 4
mov eax, esi
mov byte [ebp - 0x431], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bd50
sub eax, edx
lea edi, [esi + eax]
mov dword [ebp - 0x43c], eax
cmp esi, edi
je 0x40bd84
lea ebx, [ebp - 0x214]
sub ebx, esi
mov edi, edi
movsx ecx, byte [esi]
push ecx
call fcn.00418068
mov byte [ebx + esi], al
inc esi
add esp, 4
cmp esi, edi
jne 0x40bd70
lea edx, [ebp - 0x214]
push str..mhr
push edx
call fcn.00418400
add esp, 8
test eax, eax
je 0x40be22
mov eax, dword [ebp - 0x438]
push eax
call fcn.0040b8d0
add esp, 4
mov ecx, dword [ebp - 0x438]
imul eax, eax, 0x64
push eax
push ecx
call fcn.0040b5f0
add esp, 8
test eax, eax
je 0x40bddf
mov edx, dword [ebp - 0x438]
push edx
mov dword [0x448828], 3
call fcn.0040ba00
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [0x448830]
test eax, eax
je 0x40bdf5
push eax
call dword [0x43a088]
cmp dword [ebp - 0x270], 0x10
jb 0x40be0d
mov eax, dword [ebp - 0x284]
push eax
call fcn.004158bc
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004168e6
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x438]
push str.___only__for_xyq__restart__game___
push ecx
call fcn.00418400
add esp, 8
xor ebx, ebx
test eax, eax
je 0x40be71
mov edx, dword [ebp - 0x43c]
movsx eax, byte [ebp + edx - 0x215]
sub eax, 0x30
mov byte [ebp - 0x431], 1
mov dword [0x44882c], eax
cmp eax, 3
jne 0x40be66
mov dword [0x44882c], ebx
jmp 0x40be71
lea esi, [eax + 0x64]
cmp esi, ebx
jne 0x40c075
push 1
mov esi, 0xf
push 0x43afc0
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x28c], esi
mov dword [ebp - 0x290], ebx
mov byte [ebp - 0x2a0], 0
call fcn.004049f0
push 0xc
push str.DefaultStyle
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x258], ebx
mov byte [ebp - 0x268], 0
call fcn.004049f0
push 7
push str.xy1.ini
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 0x24c], 0
call fcn.004049f0
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x268]
push ecx
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x230]
push eax
call fcn.00406100
mov edi, 0x10
add esp, 0x10
cmp dword [ebp - 0x238], edi
jb 0x40bf25
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.004158bc
add esp, 4
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 0x24c], 0
cmp dword [ebp - 0x254], edi
jb 0x40bf4f
mov edx, dword [ebp - 0x268]
push edx
call fcn.004158bc
add esp, 4
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x258], ebx
mov byte [ebp - 0x268], 0
cmp dword [ebp - 0x28c], edi
jb 0x40bf79
mov eax, dword [ebp - 0x2a0]
push eax
call fcn.004158bc
add esp, 4
mov esi, dword [ebp - 0x220]
mov ecx, esi
cmp esi, 1
jb 0x40bf8b
mov ecx, 1
mov edi, dword [ebp - 0x21c]
mov ebx, dword [ebp - 0x230]
mov eax, ebx
cmp edi, 0x10
jae 0x40bfa4
lea eax, [ebp - 0x230]
push ecx
push 0x43afc0
push eax
call fcn.00401070
add esp, 0xc
test eax, eax
jne 0x40c030
cmp esi, 1
jb 0x40c030
cmp esi, 1
setne al
test eax, eax
jne 0x40c030
push eax
push 0x43aafa
call fcn.0040b6f0
add esp, 8
mov esi, eax
cmp esi, 0x66
jne 0x40c058
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, 0x10
cmp dword [ebp - 0x21c], esi
jb 0x40bffd
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.004158bc
add esp, 4
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
cmp dword [ebp - 0x270], esi
jb 0x40be0d
mov edx, dword [ebp - 0x284]
push edx
jmp 0x40be05
mov eax, ebx
cmp edi, 0x10
jae 0x40c03d
lea eax, [ebp - 0x230]
push eax
call fcn.00417bde
lea esi, [eax + 0x63]
add esp, 4
cmp esi, 0x64
jl 0x40c053
cmp esi, 0x65
jle 0x40bfd6
mov esi, 0x64
cmp dword [ebp - 0x21c], 0x10
jb 0x40c070
mov eax, dword [ebp - 0x230]
push eax
call fcn.004158bc
add esp, 4
mov eax, dword [0x44882c]
mov ecx, esi
sub ecx, 0x64
lea edi, [esi - 0x64]
mov dword [0x448828], edi
je 0x40c08f
dec ecx
jne 0x40c099
call fcn.00406650
jmp 0x40c094
call fcn.00406890
mov eax, dword [0x44882c]
mov bl, byte [ebp - 0x431]
test bl, bl
je 0x40c0ab
cmp eax, dword [0x448828]
je 0x40c0b7
add esi, 0xffffff9d
push esi
call fcn.00409090
add esp, 4
mov eax, edi
test bl, bl
je 0x40bdaf
imul eax, eax, 0x64
inc eax
push eax
push 0x43aafa
jmp 0x40bdba