Function at 0x10015c80
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a8fa3
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push 0
push 0x1f4
push dword [edi + 0x20]
mov dword [ebp - 0x8c], eax
push dword [edi]
call ebx
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x10015cee
call fcn.10015440
test eax, eax
js 0x10015f15
cmp eax, 1
jne 0x10015cf5
jmp 0x10015f15
mov eax, dword [edi + 0x20]
mov byte [ecx + eax], 0
push esi
mov edx, str.USER
lea ecx, [ebp - 0x58]
call fcn.10016ac0
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10016bb0
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x10015d2d
inc eax
push eax
push dword [ebp - 0x58]
call fcn.10017be0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov esi, dword [sym.imp.WS2_32.dll_send]
cmovae eax, dword [ebp - 0x40]
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x44], 0xf
push eax
push dword [edi]
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call esi
cmp eax, 0xffffffff
jne 0x10015d6b
call fcn.10015440
mov esi, eax
jmp 0x10015f01
push 0
push 0x1f4
push dword [edi + 0x20]
push dword [edi]
call ebx
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x10015e2f
call fcn.10015440
mov esi, eax
test esi, esi
js 0x10015f01
cmp esi, 1
je 0x10015f01
mov esi, dword [sym.imp.WS2_32.dll_send]
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.10016810
mov edx, 0x100b6d5c
mov ecx, eax
call fcn.10016be0
lea ecx, [ebp - 0x70]
mov bl, al
call fcn.10017ba0
test bl, bl
je 0x10015eff
push dword [ebp - 0x8c]
mov edx, str.PASS
lea ecx, [ebp - 0x88]
call fcn.10016ac0
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.10016bb0
add esp, 4
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 5
call fcn.10017ba0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [edi]
call esi
cmp eax, 0xffffffff
jne 0x10015e3b
call fcn.10015440
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.10017ba0
jmp 0x10015f01
mov eax, dword [edi + 0x20]
mov byte [ecx + eax], 0
jmp 0x10015da2
mov ecx, edi
call fcn.100167e0
mov esi, eax
test esi, esi
js 0x10015e22
cmp esi, 1
je 0x10015e22
lea eax, [ebp - 0x70]
xor esi, esi
push eax
mov ecx, edi
mov dword [ebp - 0x8c], esi
call fcn.10016810
mov edx, 0x100b6d68
mov ecx, eax
call fcn.10016a80
lea ecx, [ebp - 0x70]
mov bl, al
call fcn.10017ba0
test bl, bl
je 0x10015ef7
nop word [eax + eax]
cmp esi, 3
jge 0x10015f33
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10015e1b
mov ecx, edi
call fcn.100167e0
mov esi, eax
test esi, esi
js 0x10015e22
cmp esi, 1
je 0x10015e22
mov esi, dword [ebp - 0x8c]
lea eax, [ebp - 0x70]
inc esi
mov ecx, edi
push eax
mov dword [ebp - 0x8c], esi
call fcn.10016810
mov edx, 0x100b6d68
mov ecx, eax
call fcn.10016a80
lea ecx, [ebp - 0x70]
mov bl, al
call fcn.10017ba0
test bl, bl
jne 0x10015e80
lea ecx, [ebp - 0x28]
call fcn.10017ba0
xor esi, esi
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x10015f13
inc ecx
push ecx
push dword [ebp - 0x40]
call fcn.10017be0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x28]
mov esi, 0xe0036003
call fcn.10017ba0
jmp 0x10015f01