Function at 0x4155c0
Capabilities:
Connect socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4f600c]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0x17
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x20]
push edi
mov edi, ecx
mov dword [ebp - 0x124], eax
mov dword [esi], 0
jne 0x415608
mov eax, 0x10001
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret 0x1c
mov ebx, dword [ebp + 0x10]
xorps xmm0, xmm0
movups xmmword [ebp - 0x11c], xmm0
mov eax, 2
mov word [ebp - 0x11c], ax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x118], eax
mov ax, word [ebp + 0x1c]
mov word [ebp - 0x11a], ax
lea eax, [ebp - 0x11c]
push 0x10
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x41566a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov eax, 0x10002
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret 0x1c
push 0x100
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.004924b0
add esp, 0xc
mov word [ebp - 0x10c], 0xf7e9
lea eax, [ebp - 0x10c]
mov byte [ebp - 0x10a], 0xf6
push 0
push 3
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 3
je 0x4156c7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov eax, 0x10003
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret 0x1c
push 0
push 0x100
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov edx, eax
test edx, edx
jg 0x41570c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov eax, 0x10004
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret 0x1c
xor ecx, ecx
test edx, edx
jle 0x415739
movsx eax, byte [ebp + ecx - 0x10c]
not eax
sub eax, 7
and eax, 0x800000ff
jns 0x41572d
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp + ecx - 0x10c], al
inc ecx
cmp ecx, edx
jl 0x415712
cmp byte [ebp - 0x10c], 5
jne 0x415a8f
cmp byte [ebp - 0x10b], 2
jne 0x415a8f
cmp dword [edi + 0x5f4], 0x10
mov ebx, dword [edi + 0x5f0]
mov eax, dword [edi + 0x608]
mov byte [ebp - 0x10c], 1
mov byte [ebp - 0x10b], bl
mov dword [ebp - 0x120], eax
mov byte [ebp + ebx - 0x10a], al
lea eax, [edi + 0x5e0]
jb 0x41578a
mov eax, dword [eax]
push ebx
push eax
lea eax, [ebp - 0x10a]
push eax
call fcn.00492a90
lea eax, [edi + 0x5f8]
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x4157a9
mov eax, dword [eax]
mov edi, dword [ebp - 0x120]
push edi
push eax
lea eax, [ebp - 0x109]
add eax, ebx
push eax
call fcn.00492a90
add edi, 3
add esp, 0xc
add edi, ebx
xor ecx, ecx
test edi, edi
jle 0x4157f7
nop dword [eax]
movsx eax, byte [ebp + ecx - 0x10c]
add eax, 7
and eax, 0x800000ff
jns 0x4157e9
dec eax
or eax, 0xffffff00
inc eax
not al
mov byte [ebp + ecx - 0x10c], al
inc ecx
cmp ecx, edi
jl 0x4157d0
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x10c]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, edi
je 0x41582f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov eax, 0x10006
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret 0x1c
mov edi, dword [sym.imp.WS2_32.dll_recv]
lea eax, [ebp - 0x10c]
push 0
push 0x100
push eax
push ebx
mov dword [ebp - 0x10c], 0
call edi
mov edx, eax
test edx, edx
jg 0x415876
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov eax, 0x10007
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret 0x1c
xor ecx, ecx
test edx, edx
jle 0x4158a7
nop dword [eax]
movsx eax, byte [ebp + ecx - 0x10c]
not eax
sub eax, 7
and eax, 0x800000ff
jns 0x41589b
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp + ecx - 0x10c], al
inc ecx
cmp ecx, edx
jl 0x415880
cmp byte [ebp - 0x10b], 0
jne 0x415a8f
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x10c], 0xf7f8f7f3
mov eax, dword [ecx + 4]
mov dword [ebp - 0x108], eax
mov ax, word [ecx + 2]
mov word [ebp - 0x104], ax
movsx eax, byte [ebp - 0x108]
add eax, 7
and eax, 0x800000ff
jns 0x4158f0
dec eax
or eax, 0xffffff00
inc eax
not al
mov byte [ebp - 0x108], al
movsx eax, byte [ebp - 0x107]
add eax, 7
and eax, 0x800000ff
jns 0x415910
dec eax
or eax, 0xffffff00
inc eax
not al
mov byte [ebp - 0x107], al
movsx eax, byte [ebp - 0x106]
add eax, 7
and eax, 0x800000ff
jns 0x415930
dec eax
or eax, 0xffffff00
inc eax
not al
mov byte [ebp - 0x106], al
movsx eax, byte [ebp - 0x105]
add eax, 7
and eax, 0x800000ff
jns 0x415950
dec eax
or eax, 0xffffff00
inc eax
not al
mov byte [ebp - 0x105], al
movsx eax, byte [ebp - 0x104]
add eax, 7
and eax, 0x800000ff
jns 0x415970
dec eax
or eax, 0xffffff00
inc eax
not al
mov byte [ebp - 0x104], al
movsx eax, byte [ebp - 0x103]
add eax, 7
and eax, 0x800000ff
jns 0x415990
dec eax
or eax, 0xffffff00
inc eax
not al
push 0
mov byte [ebp - 0x103], al
lea eax, [ebp - 0x10c]
push 0xa
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xa
je 0x4159cf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov eax, 0x10009
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret 0x1c
push 0
push 0x100
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0
push eax
push ebx
call edi
mov edx, eax
test edx, edx
jg 0x415a10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov eax, 0x1000a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret 0x1c
xor ecx, ecx
test edx, edx
jle 0x415a47
nop word [eax + eax]
movsx eax, byte [ebp + ecx - 0x10c]
not eax
sub eax, 7
and eax, 0x800000ff
jns 0x415a3b
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp + ecx - 0x10c], al
inc ecx
cmp ecx, edx
jl 0x415a20
cmp byte [ebp - 0x10c], 5
jne 0x415a6e
cmp byte [ebp - 0x10b], 0
jne 0x415a6e
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret 0x1c
movzx eax, word [ebp - 0x10c]
mov dword [esi], eax
mov eax, 0x1000b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret 0x1c
movzx eax, word [ebp - 0x10c]
mov ecx, dword [ebp - 8]
pop edi
mov dword [esi], eax
xor ecx, ebp
pop esi
mov eax, 0x10008
pop ebx
call fcn.00467552
mov esp, ebp
pop ebp
ret 0x1c