Function at 0x403650
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x437c20]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
mov word [ebp - 0x5b0], ax
push 0x206
push 0
lea ecx, [ebp - 0x5ae]
push ecx
call fcn.0041ac90
add esp, 0xc
xor edx, edx
mov word [ebp - 0x7b8], dx
push 0x206
push 0
lea eax, [ebp - 0x7b6]
push eax
call fcn.0041ac90
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.0041ac90
add esp, 0xc
mov dword [ebp - 0x3a4], 0
mov dword [ebp - 0x7bc], 0
mov dword [ebp - 0x3a8], 0
lea eax, [ebp - 0x3a0]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x43c4f0
push 1
call fcn.00402130
add esp, 8
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
jne 0x4038b2
xor ecx, ecx
mov word [ebp - 0x7f8], cx
push 0x3a
push 0
lea edx, [ebp - 0x7f6]
push edx
call fcn.0041ac90
add esp, 0xc
lea eax, [ebp - 0x7f8]
push eax
call fcn.004039d0
add esp, 4
lea ecx, [ebp - 0x7f8]
mov dword [ebp - 0x7fc], ecx
mov dword [ebp - 0x800], 0x43c698
mov edx, dword [ebp - 0x800]
mov dword [ebp - 0x804], edx
mov eax, dword [ebp - 0x7fc]
mov cx, word [eax]
mov word [ebp - 0x806], cx
mov edx, dword [ebp - 0x800]
mov ax, word [ebp - 0x806]
mov word [edx], ax
mov ecx, dword [ebp - 0x7fc]
add ecx, 2
mov dword [ebp - 0x7fc], ecx
mov edx, dword [ebp - 0x800]
add edx, 2
mov dword [ebp - 0x800], edx
cmp word [ebp - 0x806], 0
jne 0x403760
push 0x432c0c
push 0x43c4f4
call fcn.00406620
add esp, 8
push 0x432c28
push 0x43c576
call fcn.00406600
add esp, 8
push 0x432c34
push 0x43c596
call fcn.00406620
add esp, 8
mov eax, 0x51
mov word [0x43c574], ax
mov ecx, 0x2b70
mov word [0x43c616], cx
lea edx, [ebp - 0x7f8]
mov dword [ebp - 0x80c], edx
mov dword [ebp - 0x810], 0x43c678
mov eax, dword [ebp - 0x810]
mov dword [ebp - 0x814], eax
mov ecx, dword [ebp - 0x80c]
mov dx, word [ecx]
mov word [ebp - 0x816], dx
mov eax, dword [ebp - 0x810]
mov cx, word [ebp - 0x816]
mov word [eax], cx
mov edx, dword [ebp - 0x80c]
add edx, 2
mov dword [ebp - 0x80c], edx
mov eax, dword [ebp - 0x810]
add eax, 2
mov dword [ebp - 0x810], eax
cmp word [ebp - 0x816], 0
jne 0x403817
mov ecx, 0x43c678
add ecx, 0xfffffffe
mov dword [ebp - 0x81c], ecx
mov edx, dword [ebp - 0x81c]
mov ax, word [edx + 2]
mov word [ebp - 0x81e], ax
add dword [ebp - 0x81c], 2
cmp word [ebp - 0x81e], 0
jne 0x40386d
mov edi, dword [ebp - 0x81c]
mov ecx, dword [0x432c50]
mov dword [edi], ecx
mov dx, word [0x432c54]
mov word [edi + 4], dx
mov eax, dword [0x438fa4]
mov dword [0x43c6b8], eax
call fcn.00403ae0
lea ecx, [ebp - 0x5b0]
push ecx
call fcn.004039d0
add esp, 4
lea edx, [ebp - 0x5b0]
mov dword [ebp - 0x824], edx
mov dword [ebp - 0x828], 0x43c4b0
mov eax, dword [ebp - 0x828]
mov dword [ebp - 0x82c], eax
mov ecx, dword [ebp - 0x824]
mov dx, word [ecx]
mov word [ebp - 0x82e], dx
mov eax, dword [ebp - 0x828]
mov cx, word [ebp - 0x82e]
mov word [eax], cx
mov edx, dword [ebp - 0x824]
add edx, 2
mov dword [ebp - 0x824], edx
mov eax, dword [ebp - 0x828]
add eax, 2
mov dword [ebp - 0x828], eax
cmp word [ebp - 0x82e], 0
jne 0x4038e8
push 0x43c4b0
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x3a8], eax
cmp dword [ebp - 0x3a8], 0
je 0x403962
mov ecx, dword [ebp - 0x3a8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4039be
push 0x43c4b0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x3a8], eax
cmp dword [ebp - 0x3a8], 0
jne 0x403986
xor eax, eax
jmp 0x4039be
push 0x43c6f0
call fcn.00403e60
add esp, 4
mov edx, dword [0x43c6bc]
mov dword [0x43c6f8], edx
push 0
push 0
push 0
push 0x4046a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x438fac], eax
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004188aa
mov esp, ebp
pop ebp
ret