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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4228c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov eax, dword [0x42c9b0]
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 0x40b22c
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
push esi
push str.__reading__d_bytes_n
push 0xa
push 0x4333b0
call fcn.00405690
add esp, 0x10
test esi, esi
jle 0x40b449
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 0x40b1ce
push 0x4325fc
lea ecx, [ebp - 0x20]
call fcn.0040b8d0
lea eax, [ebp - 0x20]
push 0x4289b0
push eax
call fcn.00418ed4
cmp eax, 0xffffffff
jne 0x40b209
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Socket_error_while_reading__d_n
push 1
push 0x4333b0
call fcn.00405690
add esp, 0x10
lea ecx, [ebp - 0x28]
push 0x4325fc
call fcn.0040b8d0
lea ecx, [ebp - 0x28]
push 0x4289b0
push ecx
call fcn.00418ed4
sub esi, eax
add edi, eax
jmp 0x40b190
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 0x40b24a
dec eax
or eax, 0xfffffff0
inc eax
test edi, edi
mov dword [ebp + 0xc], eax
je 0x40b34b
shl edi, 4
mov ebx, edi
mov dword [ebp - 4], 2
push ebx
push str.__reading__d_bytes_n
push 0xa
push 0x4333b0
mov esi, ebx
xor edi, edi
call fcn.00405690
add esp, 0x10
test esi, esi
jle 0x40b2f8
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 0x40b2b7
push 0x4325fc
lea ecx, [ebp - 0x38]
call fcn.0040b8d0
lea eax, [ebp - 0x38]
push 0x4289b0
push eax
call fcn.00418ed4
cmp eax, 0xffffffff
jne 0x40b2f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Socket_error_while_reading__d_n
push 1
push 0x4333b0
call fcn.00405690
add esp, 0x10
lea ecx, [ebp - 0x40]
push 0x4325fc
call fcn.0040b8d0
lea ecx, [ebp - 0x40]
push 0x4289b0
push ecx
call fcn.00418ed4
sub esi, eax
add edi, eax
jmp 0x40b27a
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 0x40b345
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 0x40b315
mov eax, dword [ebp + 0xc]
shl edi, 4
test eax, eax
je 0x40b449
mov esi, 0x10
mov dword [ebp - 4], 4
push esi
push str.__reading__d_bytes_n
push 0xa
push 0x4333b0
xor ebx, ebx
call fcn.00405690
add esp, 0x10
test esi, esi
jle 0x40b416
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 0x40b3d2
push 0x4325fc
lea ecx, [ebp - 0x50]
call fcn.0040b8d0
lea ecx, [ebp - 0x50]
push 0x4289b0
push ecx
call fcn.00418ed4
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
lea ecx, [ebp - 0x48]
push edx
call fcn.0040b8d0
lea eax, [ebp - 0x48]
push 0x4289b0
push eax
call fcn.00418ed4
cmp eax, 0xffffffff
jne 0x40b40d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Socket_error_while_reading__d_n
push 1
push 0x4333b0
call fcn.00405690
add esp, 0x10
lea ecx, [ebp - 0x58]
push 0x4325fc
call fcn.0040b8d0
lea edx, [ebp - 0x58]
push 0x4289b0
push edx
call fcn.00418ed4
sub esi, eax
add ebx, eax
jmp 0x40b376
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