Function at 0x513180
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0500
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x120]
mov eax, dword [esi + 0x58]
xor ebx, ebx
push eax
push 0x66a42c
push ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], ebx
call fcn.0057f2ea
add esp, 0xc
lea edx, [ebp - 0x120]
mov ecx, esi
push edx
call fcn.00508d80
mov eax, dword [esi + 0x60]
mov eax, dword [eax + 0x38]
cmp eax, ebx
je 0x5133ce
cmp dword [eax + 0x14], ebx
jne 0x5133ce
mov ebx, dword [eax]
test ebx, ebx
je 0x5133cc
mov eax, dword [ebx + 0x3c]
test eax, eax
jl 0x513217
jg 0x513204
cmp dword [ebx + 0x38], 0x40
jbe 0x513217
mov al, byte [ebx + 0x90]
test al, al
jne 0x513217
xor edx, edx
mov edi, 1
jmp 0x51321e
mov edi, 1
mov edx, edi
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
add eax, edi
adc ecx, 0
cmp eax, dword [ebx + 0x20]
jne 0x5133d5
cmp ecx, dword [ebx + 0x24]
jne 0x5133d5
test edx, edx
je 0x5133d5
mov ecx, dword [esi + 0x58]
mov edx, dword [ebx + 0x58]
push ecx
push edx
lea eax, [ebp - 0x120]
push 0x66a3e8
push eax
call fcn.0057f2ea
add esp, 0x10
lea ecx, [ebp - 0x120]
push ecx
mov ecx, esi
call fcn.00508d80
mov al, byte [ebx + 0x90]
test al, al
jne 0x513297
mov eax, dword [esi + 0x30dc]
mov edx, dword [ebx + 0x38]
mov edi, dword [eax + 0x148]
sub edi, edx
mov dword [eax + 0x148], edi
mov ecx, dword [ebx + 0x3c]
sbb dword [eax + 0x14c], ecx
mov byte [ebx + 0x90], 0
mov edx, dword [0x6692b0]
mov ax, word [0x6692b4]
mov cl, byte [0x6692b6]
mov dword [ebp - 0x18], edx
mov edx, dword [ebx + 0x58]
mov word [ebp - 0x14], ax
push edx
lea eax, [ebp - 0x120]
push 0x66a3c4
push eax
mov byte [ebp - 0x12], cl
call fcn.0057f2ea
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov ecx, esi
call fcn.00508d80
lea edi, [ebp - 0x18]
or ecx, 0xffffffff
xor eax, eax
push 0x6692a4
repne scasb al, byte es:[edi]
mov eax, dword [ebx + 0x30cc]
push 0
not ecx
dec ecx
lea edx, [ebp - 0x18]
push ecx
push edx
push eax
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.00508e20
test eax, eax
je 0x513318
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x18]
mov dword [ebx + 0x5c], 7
mov eax, dword [esi + 0x60]
xor edi, edi
mov ecx, dword [eax + 0x38]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x51339d
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov edx, dword [eax + 0x58]
lea eax, [ebp - 0x120]
push edx
push 0x66a3c4
push eax
call fcn.0057f2ea
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov ecx, esi
call fcn.00508d80
push 0x6692a4
push edi
lea edi, [ebp - 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x18]
repne scasb al, byte es:[edi]
mov edi, dword [ebp - 0x1c]
not ecx
mov eax, dword [edi + 0x30cc]
dec ecx
push ecx
push edx
push eax
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.00508e20
test eax, eax
je 0x513393
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x18]
mov dword [edi + 0x5c], 7
mov edi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x30dc]
push eax
add ecx, 0x48
call fcn.005028e0
xor eax, eax
cmp edi, eax
mov dword [ebx + 0x60], eax
je 0x5133bb
mov dword [edi + 0x60], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov edi, 1
jmp 0x5133d7
xor ebx, ebx
mov ecx, esi
call fcn.0050d140
cmp eax, ebx
je 0x513427
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov ecx, dword [esi + 0x30dc]
call fcn.00517ab0
cmp eax, ebx
je 0x51341e
lea ecx, [esi + 0x30c0]
mov dword [esi + 0x54], edi
mov dword [esi + 8], edi
call fcn.0053fbc0
mov dword [esi + 0x38], ebx
mov ecx, esi
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x30d4], edi
call fcn.0050d280
jmp 0x51342e
mov dword [esi + 0x5c], 0xe
jmp 0x51342e
mov dword [esi + 0x5c], 7
lea ecx, [esi + 0x10]
call fcn.0050c290
mov eax, dword [esi + 0x60]
push edi
mov ecx, esi
mov dword [eax + 0x14], edi
call fcn.0050ae70
mov ecx, dword [esi + 0x60]
mov eax, dword [ecx + 0x38]
cmp eax, ebx
je 0x51348e
mov eax, dword [eax]
cmp eax, ebx
je 0x51348e
mov edx, dword [eax + 0x58]
lea eax, [ebp - 0x120]
push edx
push 0x66a3b8
push eax
call fcn.0057f2ea
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov ecx, esi
call fcn.00508d80
mov dword [esi + 0x60], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x66a39c
mov ecx, esi
call fcn.00508d80
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x30]
sub eax, edi
sbb ecx, ebx
cmp edx, eax
jne 0x5134c4
mov eax, dword [esi + 0x34]
cmp eax, ecx
jne 0x5134c4
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x30dc]
mov eax, dword [ecx + 0x10]
mov dword [edx + 0xfc], eax
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x60], ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret