Function at 0x401300
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x42a044]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov eax, dword [ebp + 8]
mov dword [0x42c710], 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 0x42c648
push 0x42c580
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.004157d0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x7c0], cx
push 0x206
push 0
lea edx, [ebp - 0x7be]
push edx
call fcn.004157d0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004157d0
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 0x42ced0
call fcn.00408900
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.004157d0
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], 0x42d078
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 0x428020
push 0x42ced4
call fcn.00403c40
add esp, 8
mov edx, 0x51
mov word [0x42cf54], dx
push 0x42803c
push 0x42cf56
call fcn.00403c60
add esp, 8
push 0x428048
push 0x42cf76
call fcn.00403c40
add esp, 8
mov eax, 0x2b66
mov word [0x42cff6], ax
lea ecx, [ebp - 0x800]
mov dword [ebp - 0x814], ecx
mov dword [ebp - 0x818], 0x42d058
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, 0x42d058
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 [0x428064]
mov dword [edi], eax
mov cx, word [0x428068]
mov word [edi + 4], cx
mov edx, dword [0x42b5f4]
mov dword [0x42d098], edx
call fcn.00403870
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], 0x42d0d0
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 0x42d0d0
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 0x42d0d0
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 0x42d568
call fcn.004035e0
add esp, 4
mov ecx, dword [0x42d09c]
mov dword [0x42d570], ecx
push 0
push 0
push 0
push 0x403990
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42b60c], eax
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004105ac
mov esp, ebp
pop ebp
ret