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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fc20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov eax, dword [0x429908]
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
cmp eax, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ebx
jne 0x40aabc
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
push esi
push str.__reading__d_bytes_n
push 0xa
push 0x42f668
call fcn.00405580
add esp, 0x10
test esi, esi
jle 0x40acd9
mov eax, dword [ebp + 8]
mov edx, dword [ebx + 0x108]
push 0
push esi
lea ecx, [edi + eax]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jne 0x40aa5e
push 0x42eb08
lea ecx, [ebp - 0x20]
call fcn.0040b170
lea eax, [ebp - 0x20]
push 0x4259b0
push eax
call fcn.00416244
cmp eax, 0xffffffff
jne 0x40aa99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Socket_error_while_reading__d_n
push 1
push 0x42f668
call fcn.00405580
add esp, 0x10
lea ecx, [ebp - 0x28]
push 0x42eb08
call fcn.0040b170
lea ecx, [ebp - 0x28]
push 0x4259b0
push ecx
call fcn.00416244
sub esi, eax
add edi, eax
jmp 0x40aa20
mov ecx, dword [ebp + 0xc]
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
mov edi, eax
mov eax, ecx
sar edi, 4
and eax, 0x8000000f
jns 0x40aada
dec eax
or eax, 0xfffffff0
inc eax
test edi, edi
mov dword [ebp + 0xc], eax
je 0x40abdb
shl edi, 4
mov ebx, edi
mov dword [ebp - 4], 2
push ebx
push str.__reading__d_bytes_n
push 0xa
push 0x42f668
mov esi, ebx
xor edi, edi
call fcn.00405580
add esp, 0x10
test esi, esi
jle 0x40ab88
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
push 0
push esi
lea eax, [edi + edx]
mov edx, dword [ecx + 0x108]
push eax
push edx
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jne 0x40ab47
push 0x42eb08
lea ecx, [ebp - 0x38]
call fcn.0040b170
lea eax, [ebp - 0x38]
push 0x4259b0
push eax
call fcn.00416244
cmp eax, 0xffffffff
jne 0x40ab82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Socket_error_while_reading__d_n
push 1
push 0x42f668
call fcn.00405580
add esp, 0x10
lea ecx, [ebp - 0x40]
push 0x42eb08
call fcn.0040b170
lea ecx, [ebp - 0x40]
push 0x4259b0
push ecx
call fcn.00416244
sub esi, eax
add edi, eax
jmp 0x40ab0a
mov eax, ebx
mov dword [ebp - 4], 0xffffffff
cdq
and edx, 0xf
add eax, edx
mov edi, eax
sar edi, 4
test edi, edi
jle 0x40abd5
mov esi, dword [ebp + 8]
mov ebx, edi
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x74]
push edx
push eax
push esi
call fcn.00402130
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x70]
mov ecx, esi
add esp, 0xc
add esi, 0x10
dec ebx
mov dword [ecx], edx
mov edx, dword [ebp - 0x6c]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x68]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
jne 0x40aba5
mov eax, dword [ebp + 0xc]
shl edi, 4
test eax, eax
je 0x40acd9
mov esi, 0x10
mov dword [ebp - 4], 4
push esi
push str.__reading__d_bytes_n
push 0xa
push 0x42f668
xor ebx, ebx
call fcn.00405580
add esp, 0x10
test esi, esi
jle 0x40aca6
mov edx, dword [ebp - 0x14]
push 0
lea ecx, [ebp + ebx - 0x74]
push esi
mov eax, dword [edx + 0x108]
push ecx
push eax
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jne 0x40ac62
push 0x42eb08
lea ecx, [ebp - 0x50]
call fcn.0040b170
lea ecx, [ebp - 0x50]
push 0x4259b0
push ecx
call fcn.00416244
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
lea ecx, [ebp - 0x48]
push edx
call fcn.0040b170
lea eax, [ebp - 0x48]
push 0x4259b0
push eax
call fcn.00416244
cmp eax, 0xffffffff
jne 0x40ac9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Socket_error_while_reading__d_n
push 1
push 0x42f668
call fcn.00405580
add esp, 0x10
lea ecx, [ebp - 0x58]
push 0x42eb08
call fcn.0040b170
lea edx, [ebp - 0x58]
push 0x4259b0
push edx
call fcn.00416244
sub esi, eax
add ebx, eax
jmp 0x40ac06
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x88]
push eax
lea edx, [ebp - 0x74]
push ecx
push edx
call fcn.00402130
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, ecx
lea esi, [ebp - 0x88]
add edi, eax
add esp, 0xc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc