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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564000
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 0x4d0ac4
mov esi, dword [ebx + 0x30]
mov edi, dword [ebx + 0x20]
sub esi, edi
mov edi, dword [ebx + 0x34]
sbb edi, dword [ebx + 0x24]
add esi, 1
mov dword [ebp - 0x20], esi
adc edi, edx
mov edx, esi
or edx, edi
mov dword [ebp - 0x1c], edi
jne 0x4d0ad0
or eax, ecx
je 0x4d0ad0
push str.Completed0._n
mov ecx, ebx
call fcn.004cfa50
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 esi, esi
xor edi, edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
jmp 0x4d0a9f
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x4d0ae3
cmp eax, 0x2da0
jg 0x4d0b11
mov dword [ebp - 0x24], eax
jmp 0x4d0b18
test edi, edi
jl 0x4d0b11
jg 0x4d0aed
test esi, esi
jbe 0x4d0b11
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x3c]
mov ecx, edx
add ecx, 0x2da0
adc eax, 0
cmp eax, edi
jl 0x4d0b11
jg 0x4d0b08
cmp ecx, esi
jbe 0x4d0b11
mov eax, esi
sub eax, edx
mov dword [ebp - 0x24], eax
jmp 0x4d0b18
mov dword [ebp - 0x24], 0x2da0
mov eax, dword [ebx + 0x7c]
cmp dword [eax + 0x24], 2
jne 0x4d0cc1
mov ecx, dword [ebx + 0x38]
xor eax, eax
mov edx, dword [ebx]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], 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 0x4d0cdc
cmp ecx, dword [ebp - 0x18]
jne 0x4d0c82
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4d0c82
mov eax, ecx
cdq
add eax, dword [ebx + 0x38]
adc edx, dword [ebx + 0x3c]
cmp edx, edi
jl 0x4d0b83
jg 0x4d0b79
cmp eax, esi
jb 0x4d0b83
mov edx, esi
or edx, edi
jne 0x4d0c82
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
test eax, eax
je 0x4d0bb6
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x4d0c72
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 + 0xa5]
test al, al
je 0x4d0bcf
mov ecx, dword [ebp - 0x14]
mov byte [ebx + 0xa5], 0
jmp 0x4d0cdc
mov al, byte [ebx + 0x8b]
test al, al
jne 0x4d0c13
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x38]
cdq
add ecx, eax
mov eax, dword [ebx + 0x3c]
mov esi, dword [ebx]
adc eax, edx
lea edx, [ebp - 0x28]
push eax
push ecx
lea ecx, [ebp - 0x30]
push ecx
push edx
mov ecx, ebx
call dword [esi + 0xc]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x30]
add ecx, esi
add edx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jmp 0x4d0c16
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4d0c72
cmp ecx, dword [ebp - 0x18]
jne 0x4d0c72
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4d0c47
mov al, byte [ebx + 0x8c]
test al, al
je 0x4d0c72
mov eax, dword [ebx + 0xa8]
test eax, eax
je 0x4d0c72
mov al, byte [ebx + 0xa6]
test al, al
je 0x4d0c72
mov esi, dword [ebx + 0x38]
mov eax, ecx
cdq
add esi, eax
mov eax, dword [ebx + 0x3c]
adc eax, edx
cmp eax, edi
jl 0x4d0b83
jg 0x4d0c67
cmp esi, dword [ebp - 0x20]
jb 0x4d0b83
mov edx, dword [ebp - 0x20]
or edx, edi
je 0x4d0b83
mov al, byte [ebx + 0x8b]
test al, al
jne 0x4d0b83
jmp 0x4d0cdc
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4d0cdc
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4d0cdc
test ecx, ecx
jne 0x4d0cde
mov eax, dword [ebx + 0x3c]
cmp eax, edi
jl 0x4d0cac
jg 0x4d0ca4
mov edx, dword [ebx + 0x38]
cmp edx, esi
jb 0x4d0cac
or esi, edi
jne 0x4d1083
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 eax, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebx + 0xd0]
push eax
push ecx
push edx
call sub.WSOCK32.dll_recv
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
jle 0x4d1020
mov eax, dword [ebx + 0x7c]
cmp dword [eax + 0x24], 2
je 0x4d0e2c
mov al, byte [ebx + 0x8c]
test al, al
je 0x4d0d1a
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x14]
push edx
lea ecx, [ebx + 0xd0]
push eax
push ecx
mov ecx, ebx
call fcn.004d05b0
jmp 0x4d0e26
lea edx, [ebp + 0xc]
lea esi, [ebx + 0xd0]
push edx
push esi
push ecx
mov ecx, ebx
mov dword [ebp + 0xc], 0
call fcn.004d1100
test eax, eax
je 0x4d0e15
mov eax, dword [ebp + 0xc]
cmp eax, 0xfffffff6
jne 0x4d0f57
mov eax, dword [ebp - 0x14]
add eax, 0x30
push eax
call fcn.0054276d
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
jne 0x4d0d76
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 + 0x1cc]
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 + 0xd0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
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 0x4d0deb
jg 0x4d0dc0
mov eax, dword [ebp - 0x20]
test eax, eax
jbe 0x4d0deb
mov edi, dword [ebx + 0x38]
mov eax, esi
cdq
mov ecx, eax
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x2c], ecx
add ecx, edi
adc edx, eax
mov eax, dword [ebp - 0x1c]
cmp edx, eax
jl 0x4d0de6
mov eax, dword [ebp - 0x20]
jg 0x4d0de2
cmp ecx, eax
jbe 0x4d0de6
sub eax, edi
jmp 0x4d0ded
mov eax, dword [ebp - 0x2c]
jmp 0x4d0ded
mov eax, esi
cmp eax, esi
jge 0x4d0df6
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.004d2150
push esi
mov dword [ebp + 0x10], eax
call fcn.00542796
add esp, 4
jmp 0x4d0e29
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push eax
push esi
lea ecx, [ebx + 0x10]
call fcn.004d2150
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4d0f6a
cmp ecx, dword [ebp - 0x18]
jne 0x4d0f6a
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 + 0xc0]
adc eax, edx
push esi
mov dword [ecx + 4], eax
call fcn.005283b0
mov eax, dword [esi]
mov ecx, dword [ebx + 0xb4]
mov esi, dword [ebx + 0x7c]
add esp, 4
sub eax, ecx
mov dword [ebx + 0xcc], eax
mov dword [ebp + 0xc], eax
je 0x4d0f44
mov edi, dword [esi + 0x3fc]
test edi, edi
mov dword [ebp + 8], edi
je 0x4d0f1d
fild dword [ebp + 8]
lea ecx, [edi + 1]
fstp qword [ebp - 0x3c]
fild dword [ebp + 0xc]
mov dword [ebp + 0xc], ecx
fstp qword [ebp - 0x20]
fild dword [ebp + 0xc]
fst qword [ebp - 0x34]
fld qword [ebp - 0x3c]
fmul qword [esi + 0x3d0]
fadd qword [ebp - 0x20]
fdivrp st(1)
fst qword [ebp - 0x2c]
fstp qword [esi + 0x3d0]
fld qword [ebp - 0x20]
fsub qword [ebp - 0x2c]
fld qword [0x571ef8]
call fcn.00528d80
fdiv qword [ebp - 0x34]
fld qword [ebp - 0x3c]
fmul qword [esi + 0x3e0]
fdiv qword [ebp - 0x34]
faddp st(1)
fstp qword [esi + 0x3e0]
fld qword [ebp - 0x20]
jmp 0x4d0f26
fild dword [ebp + 0xc]
fst qword [esi + 0x3d0]
fcom qword [esi + 0x3f0]
fnstsw ax
test ah, 0x41
jne 0x4d0f3b
fstp qword [esi + 0x3f0]
jmp 0x4d0f3d
fstp st(0)
inc edi
mov dword [esi + 0x3fc], edi
mov ecx, ebx
call fcn.004d0590
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.00527718
add esp, 0x14
lea edx, [ebp - 0xfc]
mov ecx, ebx
push edx
call fcn.004cfa50
cmp esi, 5
jne 0x4d0fb0
mov eax, dword [0x5c7fe4]
mov ecx, dword [ebx + 0x6c]
push eax
call fcn.004d1ef0
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.004d1ae0
test eax, eax
je 0x4d0ff9
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.004d20c0
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 0x4d1083
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.00527718
add esp, 0x10
cmp esi, 0x2733
je 0x4d1063
mov edx, dword [0x5c82b4]
mov ecx, ebx
push edx
call fcn.004cf990
lea eax, [ebp - 0x7c]
mov ecx, ebx
push eax
call fcn.004cfa50
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 - 0x24]
test eax, eax
jle 0x4d0f55
test ecx, ecx
jne 0x4d0f55
mov ecx, dword [0x5c82b0]
push ecx
mov ecx, ebx
call fcn.004cf990
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