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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x572c40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x120], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, edx
mov ebx, eax
xor edx, edx
mov dword [ebp - 0x10c], ebx
cmp dword [esi + 0x18], 0xffffffff
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x118], edx
jne 0x45406b
pop edi
pop esi
lea eax, [edx + 3]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00481761
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 0xc], edx
jne 0x454092
mov ebx, dword [ebp - 0x120]
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x454080
sub ebx, ecx
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp - 0x10c]
cmp byte [ebp + 0x10], dl
je 0x4540aa
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4540aa
push dword [esi + 0x24]
push 0
call eax
add esp, 8
xor edx, edx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4542cc
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4540c5
cmp byte [eax], 0
jne 0x4542e1
mov eax, ecx
mov ecx, 0x5dc
sub eax, edx
cmp eax, 0x5dc
cmovg eax, ecx
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x11c], eax
jle 0x4541cc
mov ecx, dword [ebp - 0x120]
add ecx, edx
mov dword [ebp - 0x124], ecx
push eax
push ecx
push dword [esi + 0x610]
xor ebx, ebx
call fcn.00455cc0
mov edi, eax
add esp, 0xc
test edi, edi
jg 0x45412a
push edi
push dword [esi + 0x610]
call fcn.00455460
mov ebx, eax
add esp, 8
cmp ebx, 3
jne 0x45412a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
cmp edx, dword [ebp - 0x114]
ja 0x454169
jb 0x454144
mov ecx, dword [ebp - 0x10c]
cmp eax, ecx
jae 0x45416f
xorps xmm0, xmm0
movlpd qword [ebp - 0x110], xmm0
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x114], ecx
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x10c], ecx
jmp 0x45416f
mov ecx, dword [ebp - 0x10c]
sub eax, ecx
sbb edx, dword [ebp - 0x114]
test edx, edx
ja 0x454329
jb 0x45418a
cmp eax, dword [esi + 0x1c]
ja 0x454329
mov eax, dword [esi + 0x28]
test eax, eax
je 0x45419a
cmp byte [eax], 0
jne 0x4542e1
test edi, edi
jg 0x4541b3
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x124]
cmp ebx, 3
je 0x4540f4
mov ebx, dword [ebp - 0x11c]
cmp edi, ebx
jl 0x4542f9
mov edi, dword [ebp - 0x118]
jmp 0x454287
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
cmp edx, edi
ja 0x4541ff
jb 0x4541dc
cmp eax, ebx
jae 0x4541ff
xorps xmm0, xmm0
movlpd qword [ebp - 0x110], xmm0
mov edi, dword [ebp - 0x10c]
mov ebx, dword [ebp - 0x110]
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x10c], ebx
sub eax, ebx
sbb edx, edi
test edx, edx
ja 0x454329
jb 0x454216
cmp eax, dword [esi + 0x1c]
ja 0x454329
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x12c]
push eax
push 0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x12c], 0
push eax
push 0
push 0
mov dword [ebp - 0x128], 0x2710
mov dword [ebp - 0x108], 1
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
je 0x454311
test eax, eax
je 0x4542bb
mov eax, dword [ebp - 0x120]
mov ebx, dword [ebp - 0x11c]
mov edi, dword [ebp - 0x118]
add eax, edi
push 0
push ebx
push eax
push dword [esi + 0x18]
call sub.WSOCK32.dll_send
cmp eax, ebx
jl 0x4542f9
add edi, ebx
cmp byte [ebp + 0x10], 0
mov dword [ebp - 0x118], edi
je 0x4542a5
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4542a5
push dword [esi + 0x24]
push edi
call eax
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ebx, eax
mov edi, edx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x114], edi
mov edx, dword [ebp - 0x118]
mov ecx, dword [ebp + 0xc]
cmp edx, ecx
jl 0x4540b5
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00481761
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00481761
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00481761
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00481761
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov eax, 6
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00481761
mov esp, ebp
pop ebp
ret 0xc