Function at 0x40aa50
Capabilities:
Connect socket
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
fldz
push ebx
fst qword [esp + 0x1c]
push ebp
fstp qword [esp + 0x20]
xor ebx, ebx
fldz
push esi
fst dword [esp + 0x14]
xor eax, eax
xor esi, esi
mov dword [esp + 0x1c], ebx
mov word [esp + 0x10], ax
fstp dword [esp + 0x18]
push edi
mov dword [0x4278cc], ebx
cmp dword [0x424ad8], ebx
je 0x40aab0
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push ebx
push esi
push 0x4019b0
push ebx
push ebx
mov dword [esi*4 + 0x427408], ebx
call edi
inc esi
cmp esi, dword [0x424ad8]
jne 0x40aa94
fld dword [esp + 0x18]
fsub qword [0x41f9d8]
fadd qword [0x41f9d0]
fcomp qword [0x41f9c8]
fnstsw ax
test ah, 0x44
jnp 0x40ab08
mov cx, word [esp + 0x14]
mov ax, word [0x425a5c]
movsx edx, cx
movsx ecx, ax
add edx, 0x1039d1a
cmp edx, ecx
jne 0x40ab08
fld dword [esp + 0x18]
fsubr qword [0x41f9c0]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x18]
fsub qword [0x41f358]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
fsub qword [0x41f9b8]
push 0xa
fstp dword [esp + 0x1c]
call edi
fld qword [0x423690]
mov edx, dword [esp + 0x20]
fsub qword [0x41f9b0]
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
mov ebp, dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, 0x424adc
faddp st(1)
fadd dword [0x42373c]
fstp dword [0x42373c]
fld dword [esp + 0x18]
fsub qword [0x41f9b8]
fstp dword [esp + 0x18]
mov ax, word [0x4236b8]
movsx ecx, ax
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
fmul qword [0x425a28]
fstp qword [0x425a28]
inc word [0x4236b8]
fld dword [esp + 0x1c]
fadd dword [esp + 0x18]
mov dx, word [esp + 0x14]
movsx eax, dx
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
faddp st(1)
fmul dword [0x4235ec]
fstp dword [0x4235ec]
fld dword [esp + 0x18]
fld1
fsub st(1), st(0)
fxch st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fsub st(1)
fstp dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
cmp ecx, 0x7fa59f89
je 0x40abfc
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fsub dword [esp + 0x18]
fsub dword [esp + 0x18]
fcomp qword [0x41f9a8]
fnstsw ax
test ah, 0x41
jp 0x40abfe
mov edx, 0x2dcd
mov word [0x423928], dx
jmp 0x40abfe
fstp st(0)
movzx eax, word [esi]
mov ecx, dword [eax*4 + 0x427408]
push ecx
call ebp
fld qword [esp + 0x28]
fld1
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x28]
mov dx, word [esp + 0x14]
movsx eax, dx
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fld dword [esp + 0x18]
fsub qword [esp + 0x28]
fsubp st(1)
call fcn.0040b510
movzx ecx, word [esi]
mov word [esp + 0x14], ax
cmp dword [ecx*4 + 0x427408], ebx
je 0x40ac8d
push 0xa
fstp st(0)
call edi
fld qword [esp + 0x28]
fld1
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x28]
mov dx, word [esp + 0x14]
movsx eax, dx
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fld dword [esp + 0x18]
fsub qword [esp + 0x28]
fsubp st(1)
call fcn.0040b510
movzx ecx, word [esi]
mov word [esp + 0x14], ax
cmp dword [ecx*4 + 0x427408], ebx
jne 0x40ac49
fld dword [esp + 0x1c]
add esi, 2
fadd dword [esp + 0x18]
mov dx, word [esp + 0x14]
movsx eax, dx
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
faddp st(1)
fmul dword [0x4235ec]
fstp dword [0x4235ec]
fld dword [esp + 0x18]
fsub st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fsub st(1)
fstp dword [esp + 0x1c]
cmp esi, 0x424ae4
jne 0x40abc1
mov cx, word [0x4259c8]
fstp st(0)
movsx edx, cx
add edx, 0x4483c038
mov dword [esp + 0x20], edx
inc word [0x4259c8]
call dword [0x4278cc]
stc
xor al, dh
mov dh, 0x6b
arpl word [edx + esi], cx
xchg ebx, eax
loope 0x40ad34
sub dword [ebp - 0x1b3bfdb], eax
je 0x40ad04
jle 0x40ad7e
cmp dword [edi - 0x54f52b5c], esp
invalid
mov al, byte [0x888d07c3]
invalid
xchg ebp, eax
test byte fs:[esi + 0x1e1aea30], ch
call ebp
mov eax, dword [0xe5618122]
xchg byte [ebp + 0x4132d337], ch
cmp dword [eax + 0x205bbaea], ecx
ret 0x6cd9