Function at 0x10001ad6
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push 0x10
call fcn.1000b9b8
add esp, 4
mov dword [ebp - 4], 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.1000b9b8
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x1003434c
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 - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
push eax
push 0x10
call fcn.1000b9b8
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
xor eax, eax
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10001bbd
push 0
push 0x4010152
push 6
call fcn.1000b9c4
add esp, 0xc
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.1000bd40
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 0x10001c13
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x10001c11
imul eax, dword [edi]
jmp 0x10001c06
mov ecx, eax
cmp ecx, 8
jle 0x10001c1d
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.1000b9be
add esp, 4
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push 1
push 0
push 1
call fcn.100020a3
cmp dword [0x10054e4e], 0xffffffff
jne 0x10001cb3
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esp
push dword [0x10054e56]
xor eax, eax
call dword [sym.imp.WS2_32.dll_htons]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x10001c93
push 0xd4
push 0x4010152
push 6
call fcn.1000b9c4
add esp, 0xc
mov ebx, dword [ebp - 0x18]
cmp word [ebx], ax
je 0x10001cb3
cmp dword [0x10054e5e], 0
jne 0x10001cb3
mov eax, 1
jmp 0x10001cb8
mov eax, 0
test eax, eax
jne 0x10001c31
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
push dword [0x10054e52]
xor eax, eax
call dword [sym.imp.WS2_32.dll_htons]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10001cf8
push 0x142
push 0x4010152
push 6
call fcn.1000b9c4
add esp, 0xc
mov ebx, dword [ebp - 0x10]
cmp word [ebx], ax
jne 0x10001d49
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
push dword [0x10054e4e]
xor eax, eax
call dword [sym.imp.WS2_32.dll_htons]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10001d3c
push 0x180
push 0x4010152
push 6
call fcn.1000b9c4
add esp, 0xc
mov ebx, dword [ebp - 0x10]
mov word [ebx], ax
mov dword [ebp - 8], 1
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, 0x100342f8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.100016d2
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10001d7a
push ebx
call fcn.1000b9be
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10001d8a
push ebx
call fcn.1000b9be
add esp, 4
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x10034313
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.100016d2
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10001dbb
push ebx
call fcn.1000b9be
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x10001dcb
push ebx
call fcn.1000b9be
add esp, 4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x10054e5a
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x18]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10001df2
push ebx
call fcn.1000b9be
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x10001e02
push ebx
call fcn.1000b9be
add esp, 4
mov dword [ebp - 0x10], esp
push dword [ebp + 0x10]
mov eax, dword [ebp - 4]
push eax
push 0x10
call fcn.1000b9b8
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 + 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_connect]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10001e82
push 0x363
push 0x4010152
push 6
call fcn.1000b9c4
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.1000bd40
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 0x10001ed9
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x10001ed7
imul eax, dword [edi]
jmp 0x10001ecc
mov ecx, eax
cmp ecx, 8
jle 0x10001ee3
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.1000b9be
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, 0x100342f8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.100016d2
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10001f2c
push ebx
call fcn.1000b9be
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10001f3c
push ebx
call fcn.1000b9be
add esp, 4
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x10034313
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.100016d2
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10001f6d
push ebx
call fcn.1000b9be
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x10001f7d
push ebx
call fcn.1000b9be
add esp, 4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x10054e5a
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10001fa4
push ebx
call fcn.1000b9be
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x10001fb4
push ebx
call fcn.1000b9be
add esp, 4
cmp dword [ebp - 8], 0
je 0x10002077
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, 0x100342f8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.100016d2
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10001fef
push ebx
call fcn.1000b9be
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10001fff
push ebx
call fcn.1000b9be
add esp, 4
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x10034313
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.100016d2
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10002030
push ebx
call fcn.1000b9be
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x10002040
push ebx
call fcn.1000b9be
add esp, 4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x10054e5a
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10002067
push ebx
call fcn.1000b9be
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x10002077
push ebx
call fcn.1000b9be
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x1000207f
push eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.1000b9be
add esp, 4
pop ebx
call fcn.1000b9be
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc