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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558d50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
mov esi, eax
xor edx, edx
or esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
je 0x4c8504
mov edi, dword [ebx + 0x30]
mov esi, dword [ebx + 0x20]
sub edi, esi
mov esi, dword [ebx + 0x34]
sbb esi, dword [ebx + 0x24]
add edi, 1
mov dword [ebp - 0x24], edi
adc esi, edx
mov edx, edi
or edx, esi
mov dword [ebp - 0x20], esi
jne 0x4c8510
or eax, ecx
je 0x4c8510
push str.Completed0._n
mov ecx, ebx
call fcn.004c7490
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor edi, edi
xor esi, esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
jmp 0x4c84df
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x4c8523
cmp eax, 0x2da0
jg 0x4c8551
mov dword [ebp - 0x1c], eax
jmp 0x4c8558
test esi, esi
jl 0x4c8551
jg 0x4c852d
test edi, edi
jbe 0x4c8551
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x3c]
mov ecx, edx
add ecx, 0x2da0
adc eax, 0
cmp eax, esi
jl 0x4c8551
jg 0x4c8548
cmp ecx, edi
jbe 0x4c8551
mov eax, edi
sub eax, edx
mov dword [ebp - 0x1c], eax
jmp 0x4c8558
mov dword [ebp - 0x1c], 0x2da0
mov eax, dword [ebx + 0x7c]
cmp dword [eax + 0x24], 2
jne 0x4c86ec
mov ecx, dword [ebx + 0x38]
xor eax, eax
mov edx, dword [ebx]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x3c]
push eax
push ecx
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push ecx
mov ecx, ebx
call dword [edx + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x4c8707
cmp ecx, dword [ebp - 0x18]
jne 0x4c86ad
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4c86ad
mov eax, ecx
cdq
add eax, dword [ebx + 0x38]
adc edx, dword [ebx + 0x3c]
cmp edx, esi
jl 0x4c85c3
jg 0x4c85b9
cmp eax, edi
jb 0x4c85c3
mov edx, edi
or edx, esi
jne 0x4c86ad
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
test eax, eax
je 0x4c85f6
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x4c8709
sub eax, 0x2733
neg eax
sbb eax, eax
and al, 0xfd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov al, byte [ebx + 0xa1]
test al, al
je 0x4c860f
mov ecx, dword [ebp - 0x14]
mov byte [ebx + 0xa1], 0
jmp 0x4c8707
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebx]
cdq
add eax, dword [ebx + 0x38]
mov dword [ebp + 0xc], ecx
mov ecx, ebx
adc edx, dword [ebx + 0x3c]
push edx
lea edx, [ebp - 0x28]
push eax
push edx
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x30]
push eax
call dword [edx + 0xc]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
add dword [ebp - 0x18], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp + 0x10]
add ecx, eax
test edx, edx
mov dword [ebp - 0x14], ecx
je 0x4c8707
cmp ecx, dword [ebp - 0x18]
jne 0x4c8707
test eax, eax
jne 0x4c8686
mov al, byte [ebx + 0x8b]
test al, al
je 0x4c8707
mov eax, dword [ebx + 0xa4]
test eax, eax
je 0x4c8707
mov al, byte [ebx + 0xa2]
test al, al
je 0x4c8707
mov eax, ecx
cdq
add eax, dword [ebx + 0x38]
adc edx, dword [ebx + 0x3c]
cmp edx, esi
jl 0x4c85c3
jg 0x4c86a1
cmp eax, edi
jb 0x4c85c3
mov eax, edi
or eax, esi
je 0x4c85c3
jmp 0x4c8707
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4c8707
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4c8707
test ecx, ecx
jne 0x4c8709
mov edx, dword [ebx + 0x3c]
cmp edx, esi
jl 0x4c86d7
jg 0x4c86cf
mov eax, dword [ebx + 0x38]
cmp eax, edi
jb 0x4c86d7
or edi, esi
jne 0x4c8aae
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
push 0
lea edx, [ebx + 0xcc]
push ecx
push edx
push eax
call sub.WSOCK32.dll_recv
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
jle 0x4c8a4b
mov edx, dword [ebx + 0x7c]
cmp dword [edx + 0x24], 2
je 0x4c8857
mov al, byte [ebx + 0x8b]
test al, al
je 0x4c8745
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x18]
push eax
lea edx, [ebp - 0x14]
push ecx
lea eax, [ebx + 0xcc]
push edx
push eax
mov ecx, ebx
call fcn.004c7ff0
jmp 0x4c8851
lea edx, [ebp + 0xc]
lea esi, [ebx + 0xcc]
push edx
push esi
push ecx
mov ecx, ebx
mov dword [ebp + 0xc], 0
call fcn.004c8b30
test eax, eax
je 0x4c8840
mov eax, dword [ebp + 0xc]
cmp eax, 0xfffffff6
jne 0x4c8982
mov eax, dword [ebp - 0x14]
add eax, 0x30
push eax
call fcn.005380a1
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
jne 0x4c87a1
mov eax, 0xfffffff7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebx + 0x7c]
mov eax, dword [ebp + 8]
mov edi, eax
mov edx, dword [ecx + 0x1c0]
mov ecx, 0xc
mov esi, dword [edx]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14]
lea edi, [eax + 0x30]
mov eax, ecx
lea esi, [ebx + 0xcc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x14]
add esi, 0x30
test eax, eax
mov dword [ebp - 0x14], esi
jl 0x4c8816
jg 0x4c87eb
mov eax, dword [ebp - 0x24]
test eax, eax
jbe 0x4c8816
mov edi, dword [ebx + 0x38]
mov eax, esi
cdq
mov ecx, eax
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x34], ecx
add ecx, edi
adc edx, eax
mov eax, dword [ebp - 0x20]
cmp edx, eax
jl 0x4c8811
mov eax, dword [ebp - 0x24]
jg 0x4c880d
cmp ecx, eax
jbe 0x4c8811
sub eax, edi
jmp 0x4c8818
mov eax, dword [ebp - 0x34]
jmp 0x4c8818
mov eax, esi
cmp eax, esi
jge 0x4c8821
mov esi, eax
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x18]
push ecx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebx + 0x10]
push esi
call fcn.004c9b80
push esi
mov dword [ebp + 0x10], eax
call fcn.005380ca
add esp, 4
jmp 0x4c8854
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push eax
push esi
lea ecx, [ebx + 0x10]
call fcn.004c9b80
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4c8995
cmp ecx, dword [ebp - 0x18]
jne 0x4c8995
mov edi, dword [ebx + 0x38]
mov eax, ecx
mov ecx, dword [ebx + 0x40]
cdq
add edi, eax
mov dword [ebx + 0x38], edi
mov esi, dword [ebx + 0x3c]
adc esi, edx
add ecx, eax
mov dword [ebx + 0x40], ecx
mov edi, dword [ebx + 0x44]
mov ecx, dword [ebx + 0x64]
mov dword [ebx + 0x3c], esi
adc edi, edx
mov dword [ebx + 0x44], edi
mov esi, dword [ecx]
add esi, eax
mov dword [ecx], esi
mov edi, dword [ecx + 4]
adc edi, edx
mov dword [ecx + 4], edi
mov ecx, dword [ebx + 0x68]
mov eax, dword [ebp - 0x14]
mov esi, dword [ecx]
cdq
add esi, eax
mov dword [ecx], esi
mov eax, dword [ecx + 4]
lea esi, [ebx + 0xbc]
adc eax, edx
push esi
mov dword [ecx + 4], eax
call fcn.0051dd2e
mov eax, dword [esi]
mov ecx, dword [ebx + 0xb0]
mov esi, dword [ebx + 0x7c]
add esp, 4
sub eax, ecx
mov dword [ebx + 0xc8], eax
mov dword [ebp + 0xc], eax
je 0x4c896f
mov edi, dword [esi + 0x3e4]
test edi, edi
mov dword [ebp + 8], edi
je 0x4c8948
fild dword [ebp + 8]
lea ecx, [edi + 1]
fstp qword [ebp - 0x3c]
fild dword [ebp + 0xc]
mov dword [ebp + 0xc], ecx
fstp qword [ebp - 0x24]
fild dword [ebp + 0xc]
fst qword [ebp - 0x2c]
fld qword [ebp - 0x3c]
fmul qword [esi + 0x3b8]
fadd qword [ebp - 0x24]
fdivrp st(1)
fst qword [ebp - 0x34]
fstp qword [esi + 0x3b8]
fld qword [ebp - 0x24]
fsub qword [ebp - 0x34]
fld qword [0x566688]
call fcn.0051e750
fdiv qword [ebp - 0x2c]
fld qword [ebp - 0x3c]
fmul qword [esi + 0x3c8]
fdiv qword [ebp - 0x2c]
faddp st(1)
fstp qword [esi + 0x3c8]
fld qword [ebp - 0x24]
jmp 0x4c8951
fild dword [ebp + 0xc]
fst qword [esi + 0x3b8]
fcom qword [esi + 0x3d8]
fnstsw ax
test ah, 0x41
jne 0x4c8966
fstp qword [esi + 0x3d8]
jmp 0x4c8968
fstp st(0)
inc edi
mov dword [esi + 0x3e4], edi
mov ecx, ebx
call fcn.004c7fd0
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x74], 0
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x18]
mov esi, eax
mov eax, dword [ebp - 0x14]
push esi
push edx
push eax
lea ecx, [ebp - 0xfc]
push str.File_write_error__Received__d_bytes__wrote__d_bytes__errCode___ld_n
push ecx
call fcn.0051d0e8
add esp, 0x14
lea edx, [ebp - 0xfc]
mov ecx, ebx
push edx
call fcn.004c7490
cmp esi, 5
jne 0x4c89db
mov eax, dword [0x5bb38c]
mov ecx, dword [ebx + 0x6c]
push eax
call fcn.004c9920
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x38]
xor edx, edx
add eax, ecx
mov dword [ebx + 0x38], eax
mov edi, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x64]
adc edi, edx
mov dword [ebx + 0x3c], edi
mov esi, dword [eax]
add esi, ecx
mov dword [eax], esi
mov ecx, dword [eax + 4]
adc ecx, edx
mov dword [eax + 4], ecx
mov ecx, ebx
call fcn.004c9510
test eax, eax
je 0x4c8a24
mov eax, 0xfffffffb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebx + 0x60]
mov edx, dword [ecx + 0x10]
lea ecx, [ebx + 0x10]
push edx
call fcn.004c9af0
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp ecx, 0xffffffff
jne 0x4c8aae
call sub.WSOCK32.dll_WSAGetLastError
mov esi, eax
mov eax, dword [ebp + 8]
push eax
push esi
lea ecx, [ebp - 0x7c]
push str.Error_code___d__socket___d_n
push ecx
call fcn.0051d0e8
add esp, 0x10
cmp esi, 0x2733
je 0x4c8a8e
mov edx, dword [0x5bb65c]
mov ecx, ebx
push edx
call fcn.004c73d0
lea eax, [ebp - 0x7c]
mov ecx, ebx
push eax
call fcn.004c7490
mov eax, esi
sub eax, 0x2733
neg eax
sbb eax, eax
and al, 0xfd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x4c8980
test ecx, ecx
jne 0x4c8980
mov ecx, dword [0x5bb658]
push ecx
mov ecx, ebx
call fcn.004c73d0
mov eax, 0xfffffffc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc