Function at 0x4063c0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2e4
mov eax, dword [0x4a2300]
xor eax, esp
mov dword [esp + 0x2e0], eax
push ebx
push esi
push edi
xor eax, eax
push 0x18e
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
call fcn.00451650
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x406415
push 0x480cd4
jmp 0x4066e7
push 0x63
lea eax, [esp + 0x285]
mov byte [esp + 0x284], 0
push 0
push eax
call fcn.00451650
add esp, 0xc
lea ecx, [esp + 0x1a0]
xorps xmm0, xmm0
movdqu xmmword [esp + 0x1a0], xmm0
call fcn.0040a0c0
test eax, eax
je 0x4066e2
lea eax, [esp + 0x1a0]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x64
mov esi, eax
mov dword [esp + 0x10], 6
lea eax, [esp + 0x284]
push 0
push eax
call fcn.00451650
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x284]
push eax
push 0
push esi
call dword [sym.imp.IPHLPAPI.DLL_SendARP]
neg eax
sbb eax, eax
inc eax
je 0x4066e2
call fcn.0040a230
test eax, eax
jne 0x4064b1
push 0x480d38
jmp 0x4066e7
call fcn.00402d00
call fcn.00402c00
mov ecx, dword [0x4a6884]
test eax, eax
mov ebx, 1
cmove ecx, ebx
mov dword [0x4a6884], ecx
call fcn.00402c80
mov ecx, dword [0x4a688c]
cmp eax, ebx
cmove ecx, ebx
cmp dword [0x6ae3b0], 0
mov dword [0x4a688c], ecx
jle 0x406501
test ecx, ecx
jne 0x406501
call fcn.00403310
cmp eax, ebx
je 0x4066ef
push 0x63
lea eax, [esp + 0x1b5]
mov byte [esp + 0x1b4], 0
push 0
push eax
call fcn.00451650
lea ecx, [esp + 0x1bc]
add esp, 0xc
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x406525
mov eax, dword [str.GlobaliGameDX_1_]
mov edx, 0x6ae3e4
mov dword [ecx], eax
mov esi, edx
mov eax, dword [0x480d70]
mov dword [ecx + 4], eax
mov eax, dword [0x480d74]
mov dword [ecx + 8], eax
mov eax, dword [0x480d78]
mov dword [ecx + 0xc], eax
mov ax, word [0x480d7c]
mov word [ecx + 0x10], ax
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x406560
lea edi, [esp + 0x1b0]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406571
mov ecx, edx
mov byte [esp + 0x218], al
shr ecx, 2
lea eax, [esp + 0x219]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x63
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.00451650
lea ecx, [esp + 0x224]
add esp, 0xc
dec ecx
lea ebx, [ebx]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4065b0
mov eax, dword [str.GlobaliGameDX_2_]
mov edx, 0x6ae3e4
mov dword [ecx], eax
mov esi, edx
mov eax, dword [0x480cc4]
mov dword [ecx + 4], eax
mov eax, dword [0x480cc8]
mov dword [ecx + 8], eax
mov eax, dword [0x480ccc]
mov dword [ecx + 0xc], eax
mov ax, word [0x480cd0]
mov word [ecx + 0x10], ax
lea ebx, [ebx]
mov al, byte [edx]
inc edx
test al, al
jne 0x4065f0
lea edi, [esp + 0x218]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406601
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1b0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x4a6aec
call fcn.00402bb0
test eax, eax
jne 0x406680
cmp dword [0x4a688c], eax
jne 0x4066ef
lea eax, [esp + 0x218]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov esi, eax
test esi, esi
je 0x4066ef
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call fcn.00404540
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e0]
xor ecx, esp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4a6ae8]
test eax, eax
je 0x406692
push str._STS_DUILIB_CreateLoadWnd
call eax
call eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0
push 0
push 0x4063a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4066bd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], 0
jne 0x4066cb
push 0x480d80
jmp 0x4066e7
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e0]
xor ecx, esp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
push 0x480d08
call fcn.00402630
add esp, 4
mov ecx, dword [esp + 0x2ec]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045094b
mov esp, ebp
pop ebp
ret