Function at 0x4053f6
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x814
push esi
mov esi, ecx
push edi
push 1
mov eax, dword [esi + 8]
mov dword [esp + 0x10], esi
push eax
call fcn.00403690
test eax, eax
je 0x40575e
mov edx, dword [esi + 8]
mov ecx, 0x202
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
push eax
lea ecx, [esp + 0x18]
push 0x808
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
mov dword [esp + 0x10], eax
jg 0x405469
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40545e
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
mov eax, 1
pop esi
add esp, 0x814
ret
pop edi
xor eax, eax
pop esi
add esp, 0x814
ret
push ebx
lea eax, [esi + 0xc0]
push ebp
push eax
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.00403920
test eax, eax
je 0x4056fa
mov eax, dword [esi + 0xa7c]
test eax, eax
jne 0x4056fa
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0xc8]
lea ebx, [esi + 0xb0]
sub eax, edx
mov dword [esp + 0x10], eax
mov edx, dword [ebx + 8]
mov ebp, dword [ebx + 4]
mov eax, edx
cmp eax, edx
je 0x4054d4
mov esi, eax
mov edi, ebp
add eax, 0x80c
mov ecx, 0x203
add ebp, 0x80c
cmp eax, edx
rep movsd dword es:[edi], dword [esi]
jne 0x4054b6
mov esi, dword [esp + 0x14]
mov ecx, dword [ebx + 8]
push ecx
push ebp
mov ecx, ebx
call fcn.00405f50
mov dword [ebx + 8], ebp
mov eax, dword [ebx + 8]
lea edx, [esp + 0x18]
mov ebp, 1
push edx
push ebp
push eax
mov ecx, ebx
call fcn.004060c0
mov ecx, dword [esi + 0xa70]
call fcn.00402d30
test eax, eax
je 0x4055b6
mov ecx, dword [esi + 8]
push ebp
push ecx
mov ecx, esi
call fcn.00403690
test eax, eax
je 0x405578
mov ecx, 0x202
xor eax, eax
lea edi, [esp + 0x1c]
push eax
rep stosd dword es:[edi], eax
mov eax, dword [esi + 8]
lea edx, [esp + 0x20]
push 0x808
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
mov dword [esp + 0x18], eax
jg 0x40555d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4055b6
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405578
mov edi, dword [esp + 0x10]
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x18]
add edi, eax
push ecx
push ebp
push edx
mov ecx, ebx
mov dword [esp + 0x1c], edi
call fcn.004060c0
mov ecx, dword [esi + 0xc0]
lea eax, [esi + 0xc0]
test ecx, ecx
je 0x40558e
cmp dword [esp + 0x10], ecx
jge 0x4055b6
cmp dword [esi + 0xcc], ebp
jne 0x4055a3
push eax
push ebx
mov ecx, esi
call fcn.004040f0
test eax, eax
jne 0x4055b6
mov ecx, dword [esi + 0xa70]
call fcn.00402d30
test eax, eax
jne 0x40550c
lea eax, [esi + 0xc0]
mov ecx, esi
push eax
push ebx
call fcn.004042f0
mov ecx, eax
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x10], ecx
jne 0x4056b9
mov dword [esp + 0x10], ebp
mov eax, dword [ebx + 4]
test eax, eax
je 0x405683
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x7f411e53
imul ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ebp, edx
jae 0x405683
mov edi, dword [esi + 0xb4]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0xac]
add esi, 0x80
add edi, ecx
test eax, eax
je 0x405648
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
cmp eax, edx
je 0x405648
lea ecx, [eax + 0x80c]
push edi
cmp ecx, edx
mov dword [esi + 0x1c], ecx
push eax
jne 0x40565d
call fcn.004064a0
add esp, 8
mov ecx, esi
call fcn.00405f60
jmp 0x405665
mov ecx, esi
call fcn.00405f60
mov eax, dword [esi + 0x1c]
push edi
push eax
lea ecx, [eax + 0x80c]
mov dword [esi + 0x1c], ecx
call fcn.004064a0
add esp, 8
mov edx, dword [esi + 0x2c]
mov eax, dword [esp + 0x10]
inc edx
inc ebp
add eax, 0x80c
mov dword [esi + 0x2c], edx
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jmp 0x4055d9
mov ebp, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov eax, ebp
cmp eax, ebp
je 0x4056ad
mov esi, eax
mov edi, edx
add eax, 0x80c
mov ecx, 0x203
add edx, 0x80c
cmp eax, ebp
rep movsd dword es:[edi], dword [esi]
jne 0x40568f
mov esi, dword [esp + 0x14]
mov eax, dword [ebx + 8]
mov dword [ebx + 8], edx
mov dword [esp + 0x10], eax
jmp 0x4056fa
mov eax, dword [ebx + 8]
mov ebp, dword [ebx + 4]
mov edx, eax
cmp edx, eax
je 0x4056e8
mov esi, edx
mov edi, ebp
add edx, 0x80c
mov ecx, 0x203
add ebp, 0x80c
cmp edx, eax
rep movsd dword es:[edi], dword [esi]
jne 0x4056c5
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 8]
push ecx
mov ecx, esi
mov dword [esp + 0x14], edx
mov dword [ebx + 8], ebp
call fcn.00405da0
mov eax, dword [esi + 0xac]
add esi, 0x80
pop ebp
pop ebx
test eax, eax
je 0x40573a
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
cmp eax, edx
je 0x40573a
lea ecx, [eax + 0x80c]
cmp ecx, edx
mov dword [esi + 0x1c], ecx
jne 0x40574d
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.004064a0
add esp, 8
mov ecx, esi
call fcn.00405f60
jmp 0x40575b
mov ecx, esi
call fcn.00405f60
mov eax, dword [esi + 0x1c]
lea ecx, [eax + 0x80c]
mov dword [esi + 0x1c], ecx
lea edx, [esp + 0x10]
push edx
push eax
call fcn.004064a0
add esp, 8
inc dword [esi + 0x2c]
pop edi
mov eax, 1
pop esi
add esp, 0x814
ret