Function at 0x4500a0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591e8b
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x612678]
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 esi, ecx
mov dword [ebp - 0x418], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x424], eax
lea eax, [esi + 0x18]
push eax
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x45c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x458], 1
cmp byte [esi + 0xd0], 0
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0
mov dword [ebp - 0x440], eax
jne 0x45076e
mov eax, dword [esi + 0xa8]
lea ebx, [esi + 0xa8]
lea ecx, [esi + 0xc0]
mov dword [ebp - 0x430], ecx
mov dword [eax], 0
mov eax, dword [esi + 0xb4]
mov dword [ebx + 8], 0xffffffff
mov dword [eax], 0
mov dword [esi + 0xbc], 0xffffffff
mov eax, dword [ecx]
mov dword [eax], 0
mov dword [ecx + 8], 0xffffffff
xor ecx, ecx
mov eax, dword [ebx]
mov esi, dword [esi + 0x30]
mov edx, dword [eax]
test edx, edx
je 0x450181
add eax, 4
cmp dword [eax], esi
je 0x450198
inc ecx
add eax, 4
cmp ecx, edx
jb 0x450175
lea eax, [edx + 1]
mov ecx, ebx
push eax
call fcn.0044ff00
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov dword [ecx + eax*4 + 4], esi
mov eax, dword [ebx]
inc dword [eax]
mov ecx, dword [ebp - 0x418]
xor edi, edi
mov esi, dword [ecx + 0xcc]
test esi, esi
je 0x4501c4
nop word [eax + eax]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x4501e1
mov esi, dword [esi + 4]
test esi, esi
jne 0x4501b0
xor cl, cl
mov eax, dword [ebp - 0x418]
add eax, 0x3c
mov dword [ebp - 0x420], 3
mov dword [ebp - 0x43c], eax
jmp 0x4501f6
mov cl, 1
jmp 0x4501c6
mov cl, byte [ebp - 0x411]
mov edx, edi
mov dword [ebp - 0x428], edx
test cl, cl
jne 0x45020e
cmp dword [eax + 4], 0
mov byte [ebp - 0x411], cl
je 0x450215
mov byte [ebp - 0x411], 1
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x4502e3
mov ecx, dword [ebx]
mov edi, esi
mov esi, dword [esi]
mov dword [ebp - 0x454], edi
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebx + 4]
cmp dword [ebp - 0x41c], eax
jbe 0x4502c2
mov ecx, dword [ebp - 0x41c]
shr eax, 1
add eax, dword [ebx + 4]
cmp eax, ecx
cmovae ecx, eax
mov dword [ebp - 0x41c], ecx
lea eax, [ecx*4 + 4]
push eax
call fcn.00556257
mov ecx, dword [ebx]
add esp, 4
mov dword [ebp - 0x448], eax
mov ecx, dword [ecx]
mov dword [eax], ecx
xor ecx, ecx
mov edx, dword [ebx]
cmp dword [edx], ecx
jbe 0x4502a6
add eax, 4
mov dword [ebp - 0x450], eax
mov edi, eax
nop dword [eax + eax]
mov eax, dword [ebx]
mov eax, dword [eax + ecx*4 + 4]
mov dword [edi + ecx*4], eax
inc ecx
mov edx, dword [ebx]
cmp ecx, dword [edx]
jb 0x450290
mov edi, dword [ebp - 0x454]
push edx
call fcn.00556521
mov ecx, dword [ebp - 0x448]
add esp, 4
mov eax, dword [ebp - 0x41c]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov edx, dword [ecx]
mov eax, dword [edi + 8]
mov dword [ecx + edx*4 + 4], eax
mov eax, dword [ebx]
inc dword [eax]
mov eax, dword [ebp - 0x43c]
cmp esi, dword [eax]
jne 0x450221
mov edx, dword [ebp - 0x428]
jmp 0x4502e9
mov eax, dword [ebp - 0x43c]
mov edi, dword [ebx + 8]
cmp edi, edx
cmovbe edi, edx
add eax, 0x1c
add ebx, 0xc
mov dword [ebp - 0x43c], eax
sub dword [ebp - 0x420], 1
jne 0x4501f0
cmp byte [ebp - 0x411], 0
mov esi, dword [ebp - 0x418]
jne 0x450329
cmp dword [esi + 0x94], 0
mov byte [ebp - 0x411], 0
je 0x450330
mov byte [ebp - 0x411], 1
mov ebx, dword [ebp - 0x424]
lea eax, [esi + 0x8c]
push ebx
push eax
lea ecx, [esi + 0xb4]
call fcn.00450a30
mov esi, dword [esi + 0xbc]
cmp esi, edi
mov eax, dword [ebp - 0x418]
cmovbe esi, edi
add eax, 0x8c
mov edi, dword [ebp - 0x430]
mov ecx, edi
push ebx
push eax
call fcn.00450a30
mov edx, dword [ebp - 0x418]
mov eax, dword [edx + 0xc8]
cmp eax, esi
cmovbe eax, esi
mov dword [ebp - 0x448], eax
mov al, byte [ebp + 8]
test al, al
jne 0x450398
cmp byte [ebp - 0x411], al
je 0x450768
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
test al, al
je 0x4503f6
mov esi, dword [edx + 0xcc]
mov ecx, 0x11e1a300
test esi, esi
je 0x4503d1
nop
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xc]
mov esi, dword [esi + 4]
mov ecx, eax
test esi, esi
jne 0x4503c0
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x438], eax
imul eax, eax, 0xf4240
sub ecx, eax
mov dword [ebp - 0x434], ecx
push dword [ebp - 0x444]
call dword [ebp - 0x440]
call fcn.0053de50
mov ecx, dword [ebp - 0x418]
mov esi, dword [edi]
push 0
mov eax, dword [ecx + 0xa8]
mov edi, dword [ecx + 0xb4]
mov dword [ebp - 0x428], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, dword [ebp - 0x428]
test edx, edx
jne 0x450475
test edi, edi
jne 0x450475
test esi, esi
jne 0x450475
mov eax, 0x10624dd3
imul dword [ebp - 0x434]
imul eax, dword [ebp - 0x438], 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, eax
mov eax, 1
cmove ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0053de50
jmp 0x4505cb
cmp dword [ebp - 0x438], 0
jne 0x4504a3
mov ecx, dword [ebp - 0x434]
mov dword [ebp - 0x428], 0x3e8
lea eax, [ecx - 1]
cmp eax, 0x3e6
cmovbe ecx, dword [ebp - 0x428]
mov dword [ebp - 0x434], ecx
lea eax, [ebp - 0x438]
push eax
mov eax, dword [ebp - 0x448]
push esi
push edi
push edx
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
call fcn.0053de50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
js 0x4504d3
call fcn.0053de50
test edi, edi
jle 0x4505cb
mov esi, dword [ebp - 0x418]
push dword [esi + 0xa8]
push dword [esi + 0x30]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4505cb
lea eax, [ebp - 0x410]
mov dword [ebp - 0x44c], 0x400
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x42c], 0
call fcn.0053de50
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x42c]
push eax
push 0
push 1
lea eax, [ebp - 0x44c]
push eax
push dword [esi + 0x30]
call fcn.0044fae0
add esp, 0x14
cmp eax, 0x400
jne 0x4505ca
mov ebx, esi
nop word [eax + eax]
mov esi, dword [ebx + 0x30]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
lea eax, [ebp - 0x428]
mov dword [ebp - 0x420], 0
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x428], 0
push eax
push 1
lea eax, [ebp - 0x44c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call fcn.0053de50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x4505aa
cmp eax, 0x4d2
jne 0x4505af
call fcn.0053de50
test esi, esi
jne 0x4505c4
call fcn.0053de50
cmp dword [ebp - 0x420], 0x400
je 0x450550
mov ebx, dword [ebp - 0x424]
dec edi
push dword [ebp - 0x444]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, 1
mov byte [ebp - 0x411], al
mov byte [ebp - 0x458], al
test edi, edi
jle 0x450740
mov esi, dword [ebp - 0x418]
mov edi, dword [ebp - 0x430]
add esi, 0x8c
push ebx
push esi
mov ecx, edi
call fcn.0044f430
push ebx
push esi
mov esi, dword [ebp - 0x418]
lea ecx, [esi + 0xb4]
call fcn.0044f430
mov edx, 2
add esi, 0x88
mov dword [ebp - 0x420], edx
mov dword [ebp - 0x41c], esi
mov eax, dword [edi]
xor ecx, ecx
mov dword [ebp - 0x424], ecx
cmp dword [eax], ecx
jbe 0x45071f
mov edi, dword [eax + ecx*4 + 4]
mov ecx, dword [esi]
test ecx, ecx
je 0x450681
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [esi - 4]
mov esi, dword [esi - 0x14]
lea ecx, [eax + edx*8]
mov eax, dword [ecx]
cmp eax, esi
je 0x450684
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x45067b
nop dword [eax]
cmp dword [eax + 8], edi
je 0x4506cc
mov eax, dword [eax]
cmp eax, ecx
jne 0x450670
mov esi, dword [ebp - 0x41c]
mov esi, dword [esi - 0x14]
mov eax, esi
cmp esi, eax
je 0x4506f6
mov edi, dword [esi + 0xc]
test edi, edi
je 0x4506e5
mov eax, dword [edi + 0x2c]
push edi
call eax
add esp, 4
test al, al
je 0x4506f6
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4506b9
mov eax, dword [ecx + 0x14]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x4506b2
mov dword [esi + 0x10], eax
mov dword [ecx + 0x14], 0
mov dword [edi + 0x14], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x4506d9
mov dword [eax + 0x14], edi
jmp 0x4506db
mov esi, eax
mov eax, dword [ebp - 0x41c]
mov eax, dword [eax - 0x14]
jmp 0x450686
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov edi, dword [esi + 0xc]
test edi, edi
jne 0x450691
push esi
mov esi, dword [ebp - 0x41c]
lea ecx, [esi - 0x18]
call fcn.00432b30
jmp 0x4506fc
mov esi, dword [ebp - 0x41c]
mov edi, dword [ebp - 0x430]
mov ecx, dword [ebp - 0x424]
inc ecx
mov dword [ebp - 0x424], ecx
mov eax, dword [edi]
cmp ecx, dword [eax]
jb 0x450644
mov edx, dword [ebp - 0x420]
dec edx
sub esi, 0x1c
sub edi, 0xc
mov dword [ebp - 0x420], edx
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x430], edi
test edx, edx
jns 0x450632
mov eax, dword [ebp - 0x418]
mov esi, dword [eax + 0xcc]
test esi, esi
je 0x45075f
mov eax, dword [esi]
mov ecx, esi
push ebx
call dword [eax + 0x10]
mov esi, dword [esi + 4]
test esi, esi
jne 0x450750
cmp byte [ebp - 0x411], 0
je 0x450776
mov eax, dword [ebp - 0x440]
push dword [ebp - 0x444]
call eax
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.00556510
mov esp, ebp
pop ebp
ret 8