Function at 0x401300
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x428044]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov eax, dword [ebp + 8]
mov dword [0x42a7d0], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x42a708
push 0x42a640
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0x3ac], eax
cmp dword [ebp - 0x3ac], 0
jne 0x401361
xor eax, eax
jmp 0x4016bc
xor edx, edx
mov word [ebp - 0x5b8], dx
push 0x206
push 0
lea eax, [ebp - 0x5b6]
push eax
call fcn.004145d0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x7c0], cx
push 0x206
push 0
lea edx, [ebp - 0x7be]
push edx
call fcn.004145d0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004145d0
add esp, 0xc
mov dword [ebp - 0x3a8], 0
lea edx, [ebp - 0x3a0]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x3a4], 0
mov dword [ebp - 0x7c4], 0
push 1
push 0x42af90
call fcn.00408870
add esp, 8
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
jne 0x4015b0
xor eax, eax
mov word [ebp - 0x800], ax
push 0x3a
push 0
lea ecx, [ebp - 0x7fe]
push ecx
call fcn.004145d0
add esp, 0xc
lea edx, [ebp - 0x800]
push edx
call fcn.00401850
add esp, 4
lea eax, [ebp - 0x800]
mov dword [ebp - 0x804], eax
mov dword [ebp - 0x808], 0x42b138
mov ecx, dword [ebp - 0x808]
mov dword [ebp - 0x80c], ecx
mov edx, dword [ebp - 0x804]
mov ax, word [edx]
mov word [ebp - 0x80e], ax
mov ecx, dword [ebp - 0x808]
mov dx, word [ebp - 0x80e]
mov word [ecx], dx
mov eax, dword [ebp - 0x804]
add eax, 2
mov dword [ebp - 0x804], eax
mov ecx, dword [ebp - 0x808]
add ecx, 2
mov dword [ebp - 0x808], ecx
cmp word [ebp - 0x80e], 0
jne 0x40145d
push 0x42660c
push 0x42af94
call fcn.00403b80
add esp, 8
mov edx, 0x51
mov word [0x42b014], dx
push 0x426628
push 0x42b016
call fcn.00403ba0
add esp, 8
push 0x426634
push 0x42b036
call fcn.00403b80
add esp, 8
mov eax, 0x2b66
mov word [0x42b0b6], ax
lea ecx, [ebp - 0x800]
mov dword [ebp - 0x814], ecx
mov dword [ebp - 0x818], 0x42b118
mov edx, dword [ebp - 0x818]
mov dword [ebp - 0x81c], edx
mov eax, dword [ebp - 0x814]
mov cx, word [eax]
mov word [ebp - 0x81e], cx
mov edx, dword [ebp - 0x818]
mov ax, word [ebp - 0x81e]
mov word [edx], ax
mov ecx, dword [ebp - 0x814]
add ecx, 2
mov dword [ebp - 0x814], ecx
mov edx, dword [ebp - 0x818]
add edx, 2
mov dword [ebp - 0x818], edx
cmp word [ebp - 0x81e], 0
jne 0x401514
mov eax, 0x42b118
add eax, 0xfffffffe
mov dword [ebp - 0x824], eax
mov ecx, dword [ebp - 0x824]
mov dx, word [ecx + 2]
mov word [ebp - 0x826], dx
add dword [ebp - 0x824], 2
cmp word [ebp - 0x826], 0
jne 0x40156a
mov edi, dword [ebp - 0x824]
mov eax, dword [0x426650]
mov dword [edi], eax
mov cx, word [0x426654]
mov word [edi + 4], cx
mov edx, dword [0x4294a4]
mov dword [0x42b158], edx
call fcn.004038e0
lea eax, [ebp - 0x5b8]
push eax
call fcn.00401850
add esp, 4
lea ecx, [ebp - 0x5b8]
mov dword [ebp - 0x82c], ecx
mov dword [ebp - 0x830], 0x42b190
mov edx, dword [ebp - 0x830]
mov dword [ebp - 0x834], edx
mov eax, dword [ebp - 0x82c]
mov cx, word [eax]
mov word [ebp - 0x836], cx
mov edx, dword [ebp - 0x830]
mov ax, word [ebp - 0x836]
mov word [edx], ax
mov ecx, dword [ebp - 0x82c]
add ecx, 2
mov dword [ebp - 0x82c], ecx
mov edx, dword [ebp - 0x830]
add edx, 2
mov dword [ebp - 0x830], edx
cmp word [ebp - 0x836], 0
jne 0x4015e6
push 0x42b190
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x3a8], eax
cmp dword [ebp - 0x3a8], 0
je 0x401660
mov eax, dword [ebp - 0x3a8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4016bc
push 0x42b190
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x3a8], eax
cmp dword [ebp - 0x3a8], 0
jne 0x401684
xor eax, eax
jmp 0x4016bc
push 0x42b620
call fcn.00403650
add esp, 4
mov ecx, dword [0x42b15c]
mov dword [0x42b628], ecx
push 0
push 0
push 0
push 0x403a00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4294bc], eax
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410595
mov esp, ebp
pop ebp
ret