Function at 0x481510
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x16c
mov eax, dword [0x7f9c40]
xor eax, esp
mov dword [esp + 0x168], eax
mov ecx, dword [esp + 0x178]
mov edx, dword [esp + 0x184]
push ebp
mov ebp, dword [esp + 0x174]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
push esi
mov esi, dword [esp + 0x194]
cmp ebp, 0xffffffff
jne 0x4815cc
mov ecx, dword [0x7f5030]
mov eax, dword [0x7f5034]
cmp ecx, 0x257edfd1
jne 0x481569
cmp eax, 0xb2ab117a
je 0x481578
cmp ecx, 0x257edfd0
jne 0x48157c
cmp eax, 0xb2ab117a
jne 0x48157c
mov al, 1
jmp 0x481590
mov eax, dword [0x7f5028]
mov ecx, 0x7f5028
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [esp + 0x18], 0x2719
add eax, 2
mov dword [esp + 0x1c], 0x7f5028
movq xmm0, qword [esp + 0x18]
movq qword [esi], xmm0
mov dword [esi + 8], eax
xor eax, eax
pop esi
pop ebp
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.006def69
add esp, 0x16c
ret
push ebx
mov dword [esp + 0x10], 0x1ffff7
push edi
nop word [eax + eax]
push 0
push 0
push dword [esp + 0x1a0]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push edx
push dword [esp + 0x1a0]
push eax
push dword [esp + 0x1a4]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_WSASendTo]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x7f5028
push eax
lea ecx, [esp + 0x70]
call fcn.0044c740
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov edi, eax
mov dword [esi + 8], eax
cmp edi, 1
je 0x481641
mov eax, dword [esi]
mov ecx, eax
jmp 0x481654
mov eax, dword [esi + 4]
xor edx, edx
div dword [esp + 0x14]
mov ecx, dword [esi]
imul eax, edx, 0x3e8
add eax, ecx
cmp eax, 0x40
jne 0x4816b2
mov ecx, dword [0x7f5030]
mov eax, dword [0x7f5034]
cmp ecx, 0x257edfd1
jne 0x481673
cmp eax, 0xb2ab117a
je 0x481682
cmp ecx, 0x257edfd0
jne 0x481686
cmp eax, 0xb2ab117a
jne 0x481686
mov al, 1
jmp 0x48169a
mov eax, dword [0x7f5028]
mov ecx, 0x7f5028
push 0x2746
mov eax, dword [eax + 0x18]
call eax
mov dword [esp + 0x20], 0x2746
mov dword [esp + 0x24], 0x7f5028
movq xmm0, qword [esp + 0x20]
jmp 0x48172a
cmp edi, 1
jne 0x4816cb
mov eax, dword [esi + 4]
xor edx, edx
mov edi, 0x1ffff7
div edi
imul eax, edx, 0x3e8
add ecx, eax
cmp ecx, 0x4d2
jne 0x481737
mov ecx, dword [0x7f5030]
mov eax, dword [0x7f5034]
cmp ecx, 0x257edfd1
jne 0x4816ed
cmp eax, 0xb2ab117a
je 0x4816fc
cmp ecx, 0x257edfd0
jne 0x481700
cmp eax, 0xb2ab117a
jne 0x481700
mov al, 1
jmp 0x481714
mov eax, dword [0x7f5028]
mov ecx, 0x7f5028
push 0x274d
mov eax, dword [eax + 0x18]
call eax
mov dword [esp + 0x2c], 0x274d
mov dword [esp + 0x30], 0x7f5028
movq xmm0, qword [esp + 0x2c]
movzx eax, al
add eax, 2
movq qword [esi], xmm0
mov dword [esi + 8], eax
test ebx, ebx
jne 0x481751
mov eax, dword [esp + 0x10]
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], ebx
test eax, eax
jns 0x4818c2
test byte [esp + 0x184], 1
jne 0x4818c0
mov ebx, dword [0x7f5030]
mov edi, dword [0x7f5034]
cmp ebx, 0x257edfd1
jne 0x48177b
cmp edi, 0xb2ab117a
je 0x48178b
cmp ebx, 0x257edfd0
jne 0x48178f
cmp edi, 0xb2ab117a
jne 0x48178f
mov al, 1
jmp 0x4817af
mov eax, dword [0x7f5028]
mov ecx, 0x7f5028
push 0x2733
mov eax, dword [eax + 0x18]
call eax
mov edi, dword [0x7f5034]
mov ebx, dword [0x7f5030]
movzx eax, al
add eax, 2
mov dword [esp + 0x38], 0x2733
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x40], 0x7f5028
movq xmm0, qword [esp + 0x3c]
push esi
movq qword [esp + 0x4c], xmm0
call fcn.0046a970
add esp, 8
test al, al
jne 0x481857
cmp ebx, 0x257edfd1
jne 0x4817f7
cmp edi, 0xb2ab117a
je 0x481807
cmp ebx, 0x257edfd0
jne 0x48180b
cmp edi, 0xb2ab117a
jne 0x48180b
mov al, 1
jmp 0x48181f
mov eax, dword [0x7f5028]
mov ecx, 0x7f5028
push 0x4d5
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [esp + 0x50], 0x4d5
mov dword [esp + 0x64], eax
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x58], 0x7f5028
movq xmm0, qword [esp + 0x54]
push esi
movq qword [esp + 0x64], xmm0
call fcn.0046a970
add esp, 8
test al, al
je 0x4818c0
push 0
push 0
lea eax, [esp + 0x7c]
mov dword [esp + 0x80], ebp
push eax
push 0
lea eax, [ebp + 1]
mov dword [esp + 0x84], 1
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x48189d
mov ecx, dword [esp + 0x18]
xorps xmm0, xmm0
mov edx, dword [esp + 0x1c]
movq qword [esi], xmm0
mov dword [esi + 8], 0
jmp 0x4815e0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x7f5028
push eax
lea ecx, [esp + 0x70]
call fcn.0044c740
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
xor eax, eax
mov ecx, dword [esp + 0x178]
pop edi
pop ebx
pop esi
pop ebp
xor ecx, esp
call fcn.006def69
add esp, 0x16c
ret