Function at 0x40ac05
Capabilities:
Create thread

Disassembly:
mov eax, 0x433919
call fcn.0041f03c
sub esp, 0xa4
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x28]
test al, al
je 0x40ac28
xor al, al
jmp 0x40ae5c
push ebx
mov bx, word [ebp + 8]
push edi
xor edi, edi
cmp bx, di
jbe 0x40ae16
cmp dword [esi + 0x816], 0xffffffff
jne 0x40ac7c
push dword [ebp + 0x14]
mov ecx, 0x46451f
push 1
push dword [ebp + 0xc]
call fcn.0041170b
mov dword [esi + 0x816], eax
cmp eax, 0xffffffff
je 0x40ae16
push eax
mov ecx, 0x46451f
call fcn.004119af
movzx eax, ax
cmp ax, di
je 0x40ac7c
movzx eax, ax
mov dword [ebp + 0xc], eax
cmp word [esi + 7], di
jne 0x40ad52
cmp word [esi + 9], bx
jbe 0x40ac90
mov word [esi + 9], bx
mov word [esi + 7], bx
movzx ebx, bx
xor ecx, ecx
mov edi, 0x7f2
mov eax, ebx
mov edx, edi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0041f777
pop ecx
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
test eax, eax
je 0x40ace8
push fcn.004034bf
push 0x403479
push ebx
mov dword [eax], ebx
add eax, 4
push edi
push eax
mov dword [ebp + 8], eax
call fcn.0041f2f4
mov eax, dword [ebp + 8]
jmp 0x40acea
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x334], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp + 8], ebx
cmp ax, word [esi + 7]
jae 0x40ad43
mov eax, dword [esi + 0x334]
mov byte [ebx + eax], 0
fld qword [esi + 0x82a]
movzx eax, word [esi + 0x834]
push eax
movzx eax, word [esi + 0x832]
push eax
mov eax, dword [esi + 0x334]
push ecx
push ecx
lea ecx, [ebx + eax + 0xd]
fstp qword [esp]
call fcn.0040b1f6
movzx eax, word [esi + 7]
inc dword [ebp + 8]
add ebx, edi
cmp dword [ebp + 8], eax
jb 0x40ad01
push 0
lea ecx, [esi + 0x338]
call fcn.0040430b
xor edi, edi
mov al, byte [esi + 4]
test al, al
je 0x40ae38
push 0x400
lea eax, [esi + 0x3d1]
push edi
push eax
call fcn.0041e4c0
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x7e5], edi
mov dword [esi + 0x7e1], edi
mov dword [esi + 0x7dd], edi
mov dword [esi + 0x7d9], edi
mov byte [esi + 0x35c], 0
add esp, 0xc
mov ecx, esi
mov byte [esi + 4], 0
mov dword [esi + 0x812], eax
call fcn.00405137
lea eax, [ebp - 0xb0]
push eax
mov ecx, 0x46451f
call fcn.00411947
mov ax, word [ebp + 0xc]
mov word [esi + 0x231], ax
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x40adcd
cmp byte [eax], 0
jne 0x40add3
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi + 0x22d], eax
mov al, byte [esi + 5]
test al, al
jne 0x40ae31
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x40ab3b
push 0x200000
push edi
mov dword [ebp + 8], edi
call fcn.0041f8ec
add esp, 0x18
mov dword [esi + 0x369], eax
cmp eax, edi
jne 0x40ae1a
mov eax, dword [esi]
push edi
push edi
mov ecx, esi
call dword [eax + 0x24]
xor al, al
jmp 0x40ae5a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x369], edi
jmp 0x40ae31
push 0xa
call fcn.0040af26
pop ecx
mov al, byte [esi + 5]
test al, al
je 0x40ae29
cmp dword [esi + 0x3b1], edi
jbe 0x40ae58
mov eax, dword [esi + 0x3ad]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx]
push esi
call dword [eax + 8]
inc edi
cmp edi, dword [esi + 0x3b1]
jb 0x40ae40
mov al, 1
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0x10