Function at 0x10002441
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
push 0x10
call fcn.100175e6
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
add ebx, 0xc
push ebx
push 0x10
call fcn.100175e6
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x1003239d
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
mov eax, 0x10032336
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.10002438
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x100024c9
push ebx
call fcn.100175ec
add esp, 4
call fcn.10002943
cmp dword [ebp + 0x18], 0
jne 0x100024df
mov dword [ebp + 0x14], 0
cmp dword [ebp + 0x20], 0
jne 0x100024f0
mov dword [ebp + 0x1c], 0
push 0
call fcn.10003011
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10002511
mov eax, 0
jmp 0x1000291f
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov word [ebx], 2
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10002554
push 0x1fd
push 0x4023d0e
push 6
call fcn.100175fe
add esp, 0xc
mov ebx, dword [ebp - 0x10]
mov word [ebx], ax
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0x10], ebx
push dword [ebp + 8]
call fcn.10001fb8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_inet_addr]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1000259a
push 0x24c
push 0x4023d0e
push 6
call fcn.100175fe
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x100025ad
push ebx
call fcn.100175ec
add esp, 4
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x10]
mov dword [ebx], eax
mov dword [ebp - 0x10], esp
push 0x10
mov eax, dword [ebp - 8]
push eax
push 0x10
call fcn.100175e6
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_connect]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10002637
push 0x29f
push 0x4023d0e
push 6
call fcn.100175fe
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x14]
push ebx
mov edi, dword [ebp - 0x18]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.10017a40
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x1000268e
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x1000268c
imul eax, dword [edi]
jmp 0x10002681
mov ecx, eax
cmp ecx, 8
jle 0x10002698
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 8
call fcn.100175ec
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x100028f4
push 1
lea eax, [ebp - 0xc]
push eax
call fcn.100042d2
fild dword [ebp - 0xc]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fadd qword [0x10032340]
fstp qword [ebp - 0x1c]
mov dword [ebp - 0x20], esp
push 0x10
mov eax, dword [ebp - 8]
push eax
push 0x10
call fcn.100175e6
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
fld qword [ebp - 0x1c]
call fcn.100014f8
push eax
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x10002762
push 0x309
push 0x4023d0e
push 6
call fcn.100175fe
add esp, 0xc
mov ebx, dword [ebp - 0x24]
push ebx
mov edi, dword [ebp - 0x28]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.10017a40
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x100027b8
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x100027b6
imul eax, dword [edi]
jmp 0x100027ab
mov ecx, eax
cmp ecx, 8
jle 0x100027c2
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 8
call fcn.100175ec
add esp, 4
mov dword [ebp - 0x10], esp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x100027ff
push 0x357
push 0x4023d0e
push 6
call fcn.100175fe
add esp, 0xc
push eax
push 0x2c
push dword [ebp - 0xc]
call fcn.10003f87
push dword [ebp + 0x14]
push 0x28
push dword [ebp - 0xc]
call fcn.10003f87
push htons
push 0
push dword [ebp + 0x10]
push 1
mov ebx, 0x9dc
call fcn.10017f00
add esp, 0x10
push eax
push 0x24
push dword [ebp - 0xc]
call fcn.10003f87
push dword [ebp - 4]
push 0x20
push dword [ebp - 0xc]
call fcn.10003f87
push dword [ebp - 4]
push 0x1c
push dword [ebp - 0xc]
call fcn.10003f87
push 0x7531
push 0x30
push dword [ebp - 0xc]
call fcn.10003f87
push dword [ebp + 0x1c]
push 0x40
push dword [ebp - 0xc]
call fcn.10003f87
mov dword [ebp - 0x10], esp
push 0
push dword [ebp - 0xc]
push dword [0x10032d6e]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x100028c3
push 0x460
push 0x4023d0e
push 6
call fcn.100175fe
add esp, 0xc
push dword [ebp - 0xc]
call fcn.10004ce1
mov eax, 0x10032348
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.100033f9
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x100028ec
push ebx
call fcn.100175ec
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x1000291f
mov eax, str.IOCP_l
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.100033f9
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10002915
push ebx
call fcn.100175ec
add esp, 4
mov eax, 0
jmp 0x1000291f
push eax
mov ebx, dword [ebp - 8]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.100175ec
add esp, 4
pop ebx
call fcn.100175ec
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x1c